diff --git a/src/fragmentarium/domain/Fragment.test.ts b/src/fragmentarium/domain/Fragment.test.ts index 6ef1f0635..a2dd37d4d 100644 --- a/src/fragmentarium/domain/Fragment.test.ts +++ b/src/fragmentarium/domain/Fragment.test.ts @@ -128,6 +128,7 @@ const config: Parameters[0] = { achemenetNumber: '123', nabuccoNumber: '123', metropolitanNumber: '123', + pierpontMorganNumber: '123', louvreNumber: '123', dublinTcdNumber: '123', alalahHpmNumber: '123', diff --git a/src/fragmentarium/domain/FragmentDtos.ts b/src/fragmentarium/domain/FragmentDtos.ts index 16600e15a..50693d94a 100644 --- a/src/fragmentarium/domain/FragmentDtos.ts +++ b/src/fragmentarium/domain/FragmentDtos.ts @@ -73,6 +73,7 @@ export const ExternalNumberTypes = [ 'achemenetNumber', 'nabuccoNumber', 'metropolitanNumber', + 'pierpontMorganNumber', 'louvreNumber', 'dublinTcdNumber', 'alalahHpmNumber', 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 5abcb6fb5..3bbf37b1d 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.: - waloub.1 + am.1

Provenance: - Dilbat + Irisagrig

@@ -5851,9 +5851,9 @@ exports[`Snapshot 1`] = ` class="fragment-result__fragment-number" > - hapbig.2 + ewipidmif.2 (JN) @@ -5863,15 +5863,15 @@ exports[`Snapshot 1`] = `

Accession no.: - pehuvu.2 + uwhewjo.2

Excavation no.: - uf.2 + gi.2

Provenance: - Ḫuzirina + Tepe Gotvand

@@ -5899,17 +5899,7 @@ exports[`Snapshot 1`] = `
  • - Cavallini - ( - Transliteration - , - - - ) + No record
  • @@ -5973,14 +5963,14 @@ exports[`Snapshot 1`] = ` - Chirici & Borchi, 2055: 851575803215872-8906036102561792 + Chirici & Borchi, 2109: 7824054333472768-2832266722017280 [ - l. 1., 2. + l. 3'., 4'.2. ] - (D) + (E) diff --git a/src/fragmentarium/ui/info/ExternalNumberLink.tsx b/src/fragmentarium/ui/info/ExternalNumberLink.tsx index dc82e80e4..22ce3f58b 100644 --- a/src/fragmentarium/ui/info/ExternalNumberLink.tsx +++ b/src/fragmentarium/ui/info/ExternalNumberLink.tsx @@ -134,6 +134,19 @@ export function MetropolitanLink({ number }: { number: string }): JSX.Element { /> ) } +export function pierpontMorganLink({ + number, +}: { + number: string +}): JSX.Element { + return ( + + ) +} export function LouvreLink({ number }: { number: string }): JSX.Element { return ( { achemenetNumber, nabuccoNumber, metropolitanNumber, + pierpontMorganNumber, louvreNumber, dublinTcdNumber, alalahHpmNumber, @@ -93,6 +95,11 @@ describe('external resources', () => { 'https://www.metmuseum.org/art/collection/search/', metropolitanNumber, ], + [ + 'Pierpont Morgan Library', + 'https://www.themorgan.org/seals-and-tablets/', + pierpontMorganNumber, + ], ['Louvre', 'https://collections.louvre.fr/ark:/53355/', louvreNumber], [ 'Trinity College Dublin', @@ -153,6 +160,7 @@ describe('missing external resources', () => { 'Achemenet', 'NaBuCCo', 'The Metropolitan Museum of Art', + 'Pierpont Morgan Library', 'Louvre', 'Trinity College Dublin', 'Alalah HPM Number', diff --git a/src/fragmentarium/ui/info/ExternalResources.tsx b/src/fragmentarium/ui/info/ExternalResources.tsx index b6461bbdc..fd3b9a3be 100644 --- a/src/fragmentarium/ui/info/ExternalResources.tsx +++ b/src/fragmentarium/ui/info/ExternalResources.tsx @@ -12,6 +12,7 @@ import { AchemenetLink, NabuccoLink, MetropolitanLink, + pierpontMorganLink, LouvreLink, dublinTcdLink, alalahHpmLink, @@ -54,6 +55,7 @@ export default function ExternalResources({ [fragment.getExternalNumber('achemenetNumber'), AchemenetLink], [fragment.getExternalNumber('nabuccoNumber'), NabuccoLink], [fragment.getExternalNumber('metropolitanNumber'), MetropolitanLink], + [fragment.getExternalNumber('pierpontMorganNumber'), pierpontMorganLink], [fragment.getExternalNumber('louvreNumber'), LouvreLink], [fragment.getExternalNumber('dublinTcdNumber'), dublinTcdLink], [fragment.getExternalNumber('alalahHpmNumber'), alalahHpmLink], diff --git a/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap b/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap index 9748ea19b..0aebcfcc5 100644 --- a/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap +++ b/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap @@ -137,6 +137,18 @@ exports[`external resources Snapshot 1`] = ` ) +
  • + Pierpont Morgan Library ( + + P123 + + ) +
  • Louvre ( - hohoru.9 + fufca.9 - (Par) + (MB)

    Accession no.: - id.9 + ver.9

    Excavation no.: - zajo.9 + fitob.9

    Provenance: - Meturan (Tell al-Sib) + Kisurra

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