diff --git a/src/fragmentarium/domain/Fragment.test.ts b/src/fragmentarium/domain/Fragment.test.ts
index 75836d057..3fa72e851 100644
--- a/src/fragmentarium/domain/Fragment.test.ts
+++ b/src/fragmentarium/domain/Fragment.test.ts
@@ -131,6 +131,7 @@ const config: Parameters[0] = {
alalahHpmNumber: '123',
australianinstituteofarchaeologyNumber: '123',
philadelphiaNumber: '123',
+ sealNumber: '123',
},
projects: [],
}
diff --git a/src/fragmentarium/domain/FragmentDtos.ts b/src/fragmentarium/domain/FragmentDtos.ts
index 179fecbf1..4f7c6a144 100644
--- a/src/fragmentarium/domain/FragmentDtos.ts
+++ b/src/fragmentarium/domain/FragmentDtos.ts
@@ -76,6 +76,7 @@ export const ExternalNumberTypes = [
'australianinstituteofarchaeologyNumber',
'philadelphiaNumber',
'yalePeabodyNumber',
+ 'sealNumber',
] as const
export type ExternalNumber = typeof ExternalNumberTypes[number]
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 63bd9479f..c6fd8d4a6 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:
- Adab
+ Alalakh
@@ -5852,11 +5852,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:
- Mari
+ Maškan-šāpir
@@ -5881,11 +5881,6 @@ exports[`Snapshot 1`] = `
class="text-secondary fragment-result__genre col-sm-4 col-12"
>
-
-
- ARCHIVE ➝ Administrative ➝ Lists
-
-
Other ➝ Fake ➝ Certain
@@ -5902,17 +5897,7 @@ exports[`Snapshot 1`] = `
-
- Romolini
- (
- Transliteration
- ,
-
-
- )
+ No record
@@ -5957,9 +5942,9 @@ exports[`Snapshot 1`] = `
- Garrido & Tinti, 2055: 5928983864541184-7552106621829120
+ Checcucci & Tomlinson, 2026: 4727451873705984-8024100712742912
[
- l. 4'.2., 1.
+ l. 3'., 1.
]
- Dong & Ducci, 2026: 3794580308754432-4010327748378624
+ Chirici & Borchi, 2066: 1964069523292160-4777479967342592
[
- l. 3'., 4'.2.
+ l. 4'.2., 2.
]
)
}
+export function sealLink({ number }: { number: string }): JSX.Element {
+ return (
+
+ )
+}
export function australianinstituteofarchaeologyLink({
number,
}: {
diff --git a/src/fragmentarium/ui/info/ExternalResources.test.tsx b/src/fragmentarium/ui/info/ExternalResources.test.tsx
index cc45c79c3..36867dbd0 100644
--- a/src/fragmentarium/ui/info/ExternalResources.test.tsx
+++ b/src/fragmentarium/ui/info/ExternalResources.test.tsx
@@ -23,6 +23,7 @@ const alalahHpmNumber = 'L123'
const australianinstituteofarchaeologyNumber = 'L123'
const philadelphiaNumber = 'P123'
const yalePeabodyNumber = 'y123'
+const sealNumber = 'L123'
let fragment: Fragment
let container: HTMLElement
@@ -48,6 +49,7 @@ describe('external resources', () => {
australianinstituteofarchaeologyNumber,
philadelphiaNumber,
yalePeabodyNumber,
+ sealNumber,
}),
},
}
@@ -111,6 +113,7 @@ describe('external resources', () => {
'https://collections.peabody.yale.edu/search/Record/YPM-',
yalePeabodyNumber,
],
+ ['SEAL Number', 'https://seal.huji.ac.il/node/', sealNumber],
])('%s number is shown', async (label, link, number) => {
expect(screen.getByLabelText(`${label} text ${number}`)).toHaveAttribute(
'href',
diff --git a/src/fragmentarium/ui/info/ExternalResources.tsx b/src/fragmentarium/ui/info/ExternalResources.tsx
index 305644e10..82f874a2b 100644
--- a/src/fragmentarium/ui/info/ExternalResources.tsx
+++ b/src/fragmentarium/ui/info/ExternalResources.tsx
@@ -18,6 +18,7 @@ import {
BmIdLink,
YalePeabodyLink,
OraccLinks,
+ sealLink,
} from './ExternalNumberLink'
import _ from 'lodash'
@@ -58,6 +59,7 @@ export default function ExternalResources({
],
[fragment.getExternalNumber('philadelphiaNumber'), PhiladelphiaLink],
[fragment.getExternalNumber('yalePeabodyNumber'), YalePeabodyLink],
+ [fragment.getExternalNumber('sealNumber'), sealLink],
]
return (
diff --git a/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap b/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap
index dca76c7ab..fba4ab588 100644
--- a/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap
+++ b/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap
@@ -185,6 +185,18 @@ exports[`external resources Snapshot 1`] = `
)
+ -
+ SEAL Number (
+
+ L123
+
+ )
+
`;
diff --git a/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap b/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap
index ee584969d..a786ab225 100644
--- a/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap
+++ b/src/fragmentarium/ui/search/__snapshots__/FragmentariumSearch.test.tsx.snap
@@ -788,11 +788,11 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="fragment-result__fragment-number"
>
- uc.9
+ hohoru.9
- (Hit)
+ (Par)
Accession no.:
- titeba.9
+ id.9
Excavation no.:
- jora.9
+ ovhun.9
Provenance:
- Lagaš
+ Kiš
@@ -817,11 +817,6 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="text-secondary fragment-result__genre col-sm-4 col-12"
>
-
-
- ARCHIVE ➝ Administrative ➝ Lists
-
-
Other ➝ Fake ➝ Certain
@@ -873,14 +868,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
- Giles & Alvarez, 2087: 5582194326110208-1406653725409280
+ Duran & Boon, 2075: 1233275364311040-5892501091123200
[
- l. 1., 3'.
+ l. 4'.2., 1.
]
- (C)
+ (E)
@@ -892,14 +887,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
- Shaw & Robert, 2046: 6150545542742016-5917511180615680
+ Hansen & van Ommen, 2050: 522493473325056-5682457787498496
[
- l. 2., 1.
+ l. 4'.2., 1.
]
- (P)
+ (D)
@@ -6603,9 +6598,9 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="fragment-result__fragment-number"
>
- mi.10
+ lezajo.10
(Uruk4)
@@ -6615,7 +6610,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
Accession no.:
- kuvina.10
+ siti.10
Excavation no.:
@@ -6683,14 +6678,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
- Sanna & Vivoli, 2086: 6039983651553280-8222076427042816
+ Biliotti & van Rijn, 2036: 1960181967618048-447775313494016
[
l. 4'.2., 2.
]
- (C)
+ (P)
@@ -6698,14 +6693,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
- Waters & Faure, 2073: 3028366718402560-7932536841830400
+ Duval & Burrows, 2077: 6062190752694272-6966757507989504
[
l. 3'., 4'.2.
]
- (C)
+ (P)
diff --git a/src/test-support/fragment-fixtures.ts b/src/test-support/fragment-fixtures.ts
index 530f9315c..4f3e652b0 100644
--- a/src/test-support/fragment-fixtures.ts
+++ b/src/test-support/fragment-fixtures.ts
@@ -169,6 +169,7 @@ export const externalNumbersFactory = Factory.define(
associations.australianinstituteofarchaeologyNumber ?? chance.string(),
philadelphiaNumber: associations.philadelphiaNumber ?? chance.string(),
yalePeabodyNumber: associations.yalePeabodyNumber ?? chance.string(),
+ sealNumber: associations.sealNumber ?? chance.string(),
}
}
)
diff --git a/src/test-support/test-fragment.ts b/src/test-support/test-fragment.ts
index 78cd57bf6..5a8c0c4b3 100644
--- a/src/test-support/test-fragment.ts
+++ b/src/test-support/test-fragment.ts
@@ -26,6 +26,7 @@ const externalNumbers = {
alalahHpmNumber: '123',
australianinstituteofarchaeologyNumber: '123',
philadelphiaNumber: '123',
+ sealNumber: '123',
}
export const lines: readonly TextLineDto[] = [