From 9e937050c4acf03ddce7c99779e264a58ec7e47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Jim=C3=A9nez?= Date: Sun, 14 Jul 2024 14:12:06 +0000 Subject: [PATCH] Add Chicago Links --- src/fragmentarium/domain/Fragment.test.ts | 1 + src/fragmentarium/domain/FragmentDtos.ts | 1 + .../LatestTransliterations.test.tsx.snap | 63 +++++++++-------- .../ui/info/ExternalNumberLink.tsx | 9 +++ .../ui/info/ExternalResources.test.tsx | 4 ++ .../ui/info/ExternalResources.tsx | 2 + .../ExternalResources.test.tsx.snap | 12 ++++ .../FragmentariumSearch.test.tsx.snap | 69 +++++++++---------- src/test-support/fragment-data-fixtures.tsx | 1 + src/test-support/test-fragment.ts | 1 + 10 files changed, 97 insertions(+), 66 deletions(-) diff --git a/src/fragmentarium/domain/Fragment.test.ts b/src/fragmentarium/domain/Fragment.test.ts index 75836d057..2ed98b720 100644 --- a/src/fragmentarium/domain/Fragment.test.ts +++ b/src/fragmentarium/domain/Fragment.test.ts @@ -121,6 +121,7 @@ const config: Parameters[0] = { bmIdNumber: 'W_1848-0720-117', archibabNumber: '42', bdtnsNumber: '99', + chicagoIsacNumber: 'd0be123f-2411-4dcd-b930-74d2eb9f19a4', urOnlineNumber: '123', hilprechtJenaNumber: '123', hilprechtHeidelbergNumber: '123', diff --git a/src/fragmentarium/domain/FragmentDtos.ts b/src/fragmentarium/domain/FragmentDtos.ts index 453a6547b..5d7fade5b 100644 --- a/src/fragmentarium/domain/FragmentDtos.ts +++ b/src/fragmentarium/domain/FragmentDtos.ts @@ -66,6 +66,7 @@ export const ExternalNumberTypes = [ 'bmIdNumber', 'archibabNumber', 'bdtnsNumber', + 'chicagoIsacNumber', 'urOnlineNumber', 'hilprechtJenaNumber', 'hilprechtHeidelbergNumber', 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 e506b0d32..c5cc6a1db 100644 --- a/src/fragmentarium/ui/front-page/__snapshots__/LatestTransliterations.test.tsx.snap +++ b/src/fragmentarium/ui/front-page/__snapshots__/LatestTransliterations.test.tsx.snap @@ -37,11 +37,11 @@ exports[`Snapshot 1`] = `

Excavation no.: - ucotes.1 + ed.1

Provenance: - Eridu + Dugirdkhan

@@ -5851,11 +5851,11 @@ exports[`Snapshot 1`] = ` class="fragment-result__fragment-number" > - ke.2 + etkoclo.2 - (Ur3) + (JN)

Accession no.: - wugutkoc.2 + baj.2

Excavation no.: - jozi.2 + jil.2

Provenance: - Qatara + Tall Imlīḥiyah

@@ -5883,11 +5883,6 @@ exports[`Snapshot 1`] = ` class="text-secondary fragment-result__genre col-sm-4 col-12" >