From 3996e37083103b2b01472bfe5bf62aad48c9a31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsombor=20F=C3=B6ldi?= Date: Fri, 17 Jan 2025 23:39:12 +0000 Subject: [PATCH] add MAA number --- src/fragmentarium/domain/Fragment.test.ts | 1 + src/fragmentarium/domain/FragmentDtos.ts | 1 + .../LatestTransliterations.test.tsx.snap | 33 +++++---- .../ui/info/ExternalNumberLink.tsx | 9 +++ .../ui/info/ExternalResources.test.tsx | 8 ++ .../ui/info/ExternalResources.tsx | 2 + .../ExternalResources.test.tsx.snap | 12 +++ .../FragmentariumSearch.test.tsx.snap | 73 ++++++++++--------- src/test-support/fragment-data-fixtures.tsx | 1 + src/test-support/test-fragment.ts | 1 + 10 files changed, 93 insertions(+), 48 deletions(-) diff --git a/src/fragmentarium/domain/Fragment.test.ts b/src/fragmentarium/domain/Fragment.test.ts index a10e93d51..2052e7194 100644 --- a/src/fragmentarium/domain/Fragment.test.ts +++ b/src/fragmentarium/domain/Fragment.test.ts @@ -132,6 +132,7 @@ const config: Parameters[0] = { pierpontMorganNumber: '123', louvreNumber: '123', dublinTcdNumber: '123', + cambridgeMaaNumber: '123', alalahHpmNumber: '123', australianinstituteofarchaeologyNumber: '123', philadelphiaNumber: '123', diff --git a/src/fragmentarium/domain/FragmentDtos.ts b/src/fragmentarium/domain/FragmentDtos.ts index d7da054cf..ef03ab4c6 100644 --- a/src/fragmentarium/domain/FragmentDtos.ts +++ b/src/fragmentarium/domain/FragmentDtos.ts @@ -78,6 +78,7 @@ export const ExternalNumberTypes = [ 'pierpontMorganNumber', 'louvreNumber', 'dublinTcdNumber', + 'cambridgeMaaNumber', 'alalahHpmNumber', 'australianinstituteofarchaeologyNumber', 'philadelphiaNumber', 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 6dcef29ac..e7363ee98 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.: - alfipa.1 + kibetih.1

Provenance: - Tall al-Hawa + Tall Ajrab

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

Accession no.: - ju.2 + kudfera.2

Excavation no.: - zunab.2 + sazkam.2

Provenance: - Tall Ghaḍaiyrīfah + Persepolis

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