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"
>
+
+
+ ARCHIVE ➝ Administrative ➝ Lists
+
+
Other ➝ Fake ➝ Certain
@@ -5944,14 +5949,14 @@ exports[`Snapshot 1`] = `
- Checcucci & Tomlinson, 2027: 4727451873705984-8024100712742912
+ Pool & Franci, 2062: 915073268711424-3557031088750592
[
- l. 3'., 1.
+ l. 1., 2.
]
- (C)
+ (T)
@@ -5963,14 +5968,14 @@ exports[`Snapshot 1`] = `
- Chirici & Borchi, 2110: 7824054333472768-2832266722017280
+ Fernández & Maruyama, 2067: 681081137266688-1701799520108544
[
- l. 3'., 4'.2.
+ l. 2., 4'.2.
]
- (E)
+ (D)
diff --git a/src/fragmentarium/ui/info/ExternalNumberLink.tsx b/src/fragmentarium/ui/info/ExternalNumberLink.tsx
index ef84266a7..450dc54f7 100644
--- a/src/fragmentarium/ui/info/ExternalNumberLink.tsx
+++ b/src/fragmentarium/ui/info/ExternalNumberLink.tsx
@@ -187,6 +187,15 @@ export function dublinTcdLink({ number }: { number: string }): JSX.Element {
/>
)
}
+export function cambridgeMaaLink({ number }: { number: string }): JSX.Element {
+ return (
+
+ )
+}
export function alalahHpmLink({ number }: { number: string }): JSX.Element {
return (
{
pierpontMorganNumber,
louvreNumber,
dublinTcdNumber,
+ cambridgeMaaNumber,
alalahHpmNumber,
australianinstituteofarchaeologyNumber,
philadelphiaNumber,
@@ -113,6 +115,11 @@ describe('external resources', () => {
'https://digitalcollections.tcd.ie/concern/works/',
dublinTcdNumber,
],
+ [
+ 'MAA Cambridge',
+ 'https://collections.maa.cam.ac.uk/objects/',
+ cambridgeMaaNumber,
+ ],
[
'Alalah HPM Number',
'https://www.hethport.uni-wuerzburg.de/Alalach/bildpraep.php?fundnr=',
@@ -171,6 +178,7 @@ describe('missing external resources', () => {
'Pierpont Morgan Library',
'Louvre',
'Trinity College Dublin',
+ 'MAA Cambridge',
'Alalah HPM Number',
'Australian Institute of Archaeology',
'Penn Museum',
diff --git a/src/fragmentarium/ui/info/ExternalResources.tsx b/src/fragmentarium/ui/info/ExternalResources.tsx
index e82d1b310..78ca7e318 100644
--- a/src/fragmentarium/ui/info/ExternalResources.tsx
+++ b/src/fragmentarium/ui/info/ExternalResources.tsx
@@ -16,6 +16,7 @@ import {
pierpontMorganLink,
LouvreLink,
dublinTcdLink,
+ cambridgeMaaLink,
alalahHpmLink,
australianinstituteofarchaeologyLink,
PhiladelphiaLink,
@@ -63,6 +64,7 @@ export default function ExternalResources({
[fragment.getExternalNumber('pierpontMorganNumber'), pierpontMorganLink],
[fragment.getExternalNumber('louvreNumber'), LouvreLink],
[fragment.getExternalNumber('dublinTcdNumber'), dublinTcdLink],
+ [fragment.getExternalNumber('cambridgeMaaNumber'), cambridgeMaaLink],
[fragment.getExternalNumber('alalahHpmNumber'), alalahHpmLink],
[
fragment.getExternalNumber('australianinstituteofarchaeologyNumber'),
diff --git a/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap b/src/fragmentarium/ui/info/__snapshots__/ExternalResources.test.tsx.snap
index 0b78752df..420d07dc2 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`] = `
)
+ -
+ MAA Cambridge (
+
+ L123
+
+ )
+
-
Alalah HPM Number (
Excavation no.:
- fah.9
+ githeku.9
Provenance:
- Tall Bāz Musiyān
+ Nigin
@@ -6609,11 +6609,11 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="fragment-result__fragment-number"
>
- githeku.10
+ zigah.10
- (Uruk4)
+ (Per)
Accession no.:
- pesrab.10
+ jedef.10
Excavation no.:
- bubkiz.10
+ kozos.10
Provenance:
- Isin
+ Elam
@@ -6641,6 +6641,11 @@ 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
@@ -6692,14 +6697,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
- Fiorentini & Park, 2088: 1889334898720768-4690362255802368
+ Ferguson & Leach, 2067: 7989362744623104-961652459569152
[
- l. 3'., 2.
+ l. 2., 1.
]
- (T)
+ (C)
@@ -6711,14 +6716,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
- Foster & Austin, 2083: 3957977771933696-1202698707795968
+ Bravo & Chavez, 2076: 5490447709372416-7932761316786176
[
- l. 3'., 1.
+ l. 3'., 4'.2.
]
- (A)
+ (T)
@@ -12483,7 +12488,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="justify-content-left fragment-result__match-info text-secondary col"
>
@@ -12493,10 +12498,10 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
>
- Jel luno mavip no sishi opnidere idu odotocte dabeci laek ripe haknor jasuj.
+ Bu rilaek ripe haknor jasuj pufoti pirri jakajris zuhik pelu nebu pehero miunni jurzo ot.
>
- None Ru vom ovipehe avoluuro mekhejit vekozos icavofa mu kubial gelewozo le bejab felufad fum eti.
+ Uruk III-Jemdet Nasr Faki gevbial gelewozo le bejab felufad fum eti cuki luno mavip no sishi opnidere idu odotocte.
@@ -12519,14 +12524,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
(
- Par ugeko hitigpa gufra pa amu kum nuzizij gackionu muredsu heutadi pueh rib zu.
+ Rugkumfiz moslu baki susmured eteli fadsilbuh rib zu jetbu noppa miraw za.
)
@@ -12610,7 +12615,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
>
- Re pertagas vece tuc em gewbi bi heh owina sed ro ebagi soivufu rur.
+ Tu maldulab vewbab ven ivufu rur pifirfak ta leb un kum wi tubma.
|
@@ -12637,7 +12642,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
(
- Kovaviz kozokaeni palig ne comjualu nicju gopopkis wenzap vamusig evifobwu he sihe labpug.
+ Eluvawu he sihe labpug bifwefab gatco zezzave tiz ubfini duroriw ci couf ija furhoef didefi za bujaro.
)
@@ -12661,7 +12666,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="chapter-display__line-number"
>
@@ -12728,7 +12733,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
>
- Nefluz iwumu gi riw tor loamab bi zi koris hinot dubwos tizzacgow.
+ Gipwug jomab bi zi koris hinot dubwos tizzacgow wugrik obozaoza uzlejoru wezvo bagaci rej ceb.
@@ -12758,7 +12763,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="justify-content-left fragment-result__match-info text-secondary col"
>
@@ -12768,10 +12773,10 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
>
- Ubu mefuppip hiwbereco vesilwak diweb zog nonalkot he adi ujoifeuva vaepgaz ewoli.
+ Kelir ref tu jowa sijri obo nalmodco izaluew gawto od holoro arajiploh po zat.
>
- Middle Elamite Mihaw lagzuez uzudosez zug abeol obnutada tojase fagmu durito soiji iku vel jak did ri odu ke pem.
+ Hellenistic Wavol vugop wo vuvesil bipdiweb zog nonalkot he adi ujoifeuva vaepgaz ewoli ivmo me.
@@ -12794,14 +12799,14 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
(
- Deg puvi ra ih delunuc tiruzmul tepojitim lulpom woazugi kuk musligzuh heci.
+ Ijnu hilaf binkoib ne diger viw ob otbecdu fadbejuv zulate ciwsin or sej cejipek dot zidvev pe ebida.
)
@@ -12885,7 +12890,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
>
- Iji nuziv uba johtid mun futu pigze luojipis ugetebdev peib za udeta rimehric jur ehe guizi lebkos.
+ Iziejese rumvo wacaob jasifoak pa awpar vopvihi je rivaj cejbazo be fumubsa kazhog.
|
@@ -12912,7 +12917,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
(
- Mudibi ujifa larzah vippu koc ezirimeh selmudfa uwuvi aghevgap ika ozke odepoeci huzjevu ko re la ija.
+ Izjevu ko re la ija iktafo magan lo bukkaj pega hagevoc dena didmol lofu noma lufwojdiv cagul ajara.
)
@@ -12936,7 +12941,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
class="chapter-display__line-number"
>
@@ -13003,7 +13008,7 @@ exports[`Searching fragments by transliteration Displays corpus results when cli
>
- Coc bebascov wagrenu ca tow va mutu osrolih geggo ecuzuugu na nepe hirerhaw titivci atfi su kidoabu.
+ Su kidoabu nulor adpu tif nijkapog un tenwizme omviv civhoba gu mu efofa ocijewan po.
diff --git a/src/test-support/fragment-data-fixtures.tsx b/src/test-support/fragment-data-fixtures.tsx
index ba01fc2a6..6367bcfd5 100644
--- a/src/test-support/fragment-data-fixtures.tsx
+++ b/src/test-support/fragment-data-fixtures.tsx
@@ -172,6 +172,7 @@ export const externalNumbersFactory = Factory.define(
associations.digitaleKeilschriftBibliothekNumber ?? chance.string(),
louvreNumber: associations.louvreNumber ?? chance.string(),
dublinTcdNumber: associations.dublinTcdNumber ?? chance.string(),
+ cambridgeMaaNumber: associations.cambridgeMaaNumber ?? chance.string(),
alalahHpmNumber: associations.alalahHpmNumber ?? chance.string(),
australianinstituteofarchaeologyNumber:
associations.australianinstituteofarchaeologyNumber ?? chance.string(),
diff --git a/src/test-support/test-fragment.ts b/src/test-support/test-fragment.ts
index 284a1f138..ec48fbbbe 100644
--- a/src/test-support/test-fragment.ts
+++ b/src/test-support/test-fragment.ts
@@ -27,6 +27,7 @@ const externalNumbers = {
pierpontMorganNumber: '123',
louvreNumber: '123',
dublinTcdNumber: '123',
+ cambridgeMaaNumber: '123',
alalahHpmNumber: '123',
australianinstituteofarchaeologyNumber: '123',
philadelphiaNumber: '123',