From f6da0bf6991cda51d2a3938e4649fdd185116118 Mon Sep 17 00:00:00 2001 From: fsimonjetz Date: Tue, 5 Dec 2023 14:23:40 +0000 Subject: [PATCH] Remove deprecated editedInOraccProject --- src/fragmentarium/domain/Fragment.test.ts | 1 - src/fragmentarium/domain/FragmentDtos.ts | 1 - src/fragmentarium/domain/fragment.ts | 4 - .../LatestTransliterations.test.tsx.snap | 24 +++--- src/fragmentarium/ui/info/Details.test.tsx | 4 - .../FragmentariumSearch.test.tsx.snap | 73 +++++++++---------- src/test-support/fragment-fixtures.ts | 6 -- src/test-support/test-fragment.ts | 2 - 8 files changed, 46 insertions(+), 69 deletions(-) diff --git a/src/fragmentarium/domain/Fragment.test.ts b/src/fragmentarium/domain/Fragment.test.ts index ad052b92c..386675882 100644 --- a/src/fragmentarium/domain/Fragment.test.ts +++ b/src/fragmentarium/domain/Fragment.test.ts @@ -106,7 +106,6 @@ const config: Parameters[0] = { { category: ['ARCHIVAL', 'Administrative'], uncertain: false }, { category: ['CATALOGUE', 'Memos'], uncertain: true }, ]), - editedInOraccProject: 'ccp', introduction: { text: 'The introduction', parts: [{ text: 'The introduction', type: 'StringPart' }], diff --git a/src/fragmentarium/domain/FragmentDtos.ts b/src/fragmentarium/domain/FragmentDtos.ts index e72bdb9ee..d5560b9ff 100644 --- a/src/fragmentarium/domain/FragmentDtos.ts +++ b/src/fragmentarium/domain/FragmentDtos.ts @@ -83,7 +83,6 @@ export type ExternalNumbers = { export default interface FragmentDto { museumNumber: MuseumNumber accession: MuseumNumber | null - editedInOraccProject: string publication: string description: string collection: string diff --git a/src/fragmentarium/domain/fragment.ts b/src/fragmentarium/domain/fragment.ts index dfb5ca58e..0e56f83f1 100644 --- a/src/fragmentarium/domain/fragment.ts +++ b/src/fragmentarium/domain/fragment.ts @@ -99,7 +99,6 @@ export class Fragment { readonly atf: string, readonly hasPhoto: boolean, readonly genres: Genres, - readonly editedInOraccProject: string, readonly introduction: Introduction, readonly script: Script, readonly externalNumbers: ExternalNumbers, @@ -129,7 +128,6 @@ export class Fragment { atf, hasPhoto, genres, - editedInOraccProject, introduction, script, externalNumbers, @@ -157,7 +155,6 @@ export class Fragment { atf: string hasPhoto: boolean genres: Genres - editedInOraccProject: string introduction: Introduction script: Script externalNumbers: ExternalNumbers @@ -186,7 +183,6 @@ export class Fragment { atf, hasPhoto, genres, - editedInOraccProject, introduction, script, externalNumbers, diff --git a/src/fragmentarium/ui/front-page/__snapshots__/LatestTransliterations.test.tsx.snap b/src/fragmentarium/ui/front-page/__snapshots__/LatestTransliterations.test.tsx.snap index f3f3773cd..be19b03ef 100644 --- a/src/fragmentarium/ui/front-page/__snapshots__/LatestTransliterations.test.tsx.snap +++ b/src/fragmentarium/ui/front-page/__snapshots__/LatestTransliterations.test.tsx.snap @@ -22,7 +22,7 @@ exports[`Snapshot 1`] = ` > tichi.1 - (Fara) + (PElam)

Excavation no.: - noj.1 + radjo.1

@@ -5827,22 +5827,22 @@ exports[`Snapshot 1`] = ` class="fragment-result__fragment-number" > - cowjofke.2 + rikeluco.2 - (Unc) + (Ur3)

Accession no.: - ed.2 + jofkeku.2

Excavation no.: - pole.2 + wu.2

@@ -5899,14 +5899,14 @@ exports[`Snapshot 1`] = ` - Checcucci & Tomlinson, 2025: 4727451873705984-8024100712742912 + White & Manca, 2070: 6525764484726784-1000123435843584 [ - l. 3'., 1. + l. 3'., 2. ] - (C) + (T) @@ -5918,14 +5918,14 @@ exports[`Snapshot 1`] = ` - Chirici & Borchi, 2108: 7541452181602304-6009873588289536 + Martinez & Robin, 2112: 5946678584541184-5595938733162496 [ l. 3'., 4'.2. ] - (E) + (D) diff --git a/src/fragmentarium/ui/info/Details.test.tsx b/src/fragmentarium/ui/info/Details.test.tsx index 8090786f4..350219f61 100644 --- a/src/fragmentarium/ui/info/Details.test.tsx +++ b/src/fragmentarium/ui/info/Details.test.tsx @@ -151,7 +151,6 @@ describe('Missing details', () => { { collection: '', accession: '', - editedInOraccProject: '', }, { associations: { @@ -177,9 +176,6 @@ describe('Missing details', () => { it('Does not render colection', () => expect(screen.queryByText('Collection')).not.toBeInTheDocument()) - it('Does not render editedInOraccProject', () => - expect(screen.queryByText('EditedInOraccProject')).not.toBeInTheDocument()) - it(`Renders dash for joins`, () => { expect(screen.getByText(/Joins:/)).toHaveTextContent('-') }) diff --git a/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap b/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap index 52b62bb8a..61694c290 100644 --- a/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap +++ b/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap @@ -707,7 +707,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli > uc.9 - (Sarg) + (Hit)

Excavation no.: - dadiho.9 + omi.9

@@ -6496,22 +6496,22 @@ exports[`Searching fragments by transliteration Displays corpus results when cli class="fragment-result__fragment-number" > - fuv.10 + ronfow.10 - (JN) + (NA)

Accession no.: - ad.10 + fig.10

Excavation no.: - mici.10 + gorudzel.10

@@ -6519,11 +6519,6 @@ exports[`Searching fragments by transliteration Displays corpus results when cli class="text-secondary fragment-result__genre col" >