Skip to content

Commit

Permalink
add dublin_tcd number (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsomborfoldi authored Nov 25, 2024
1 parent 0a99bc6 commit 7ae09da
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 46 deletions.
1 change: 1 addition & 0 deletions src/fragmentarium/domain/Fragment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const config: Parameters<typeof Fragment['create']>[0] = {
nabuccoNumber: '123',
metropolitanNumber: '123',
louvreNumber: '123',
dublinTcdNumber: '123',
alalahHpmNumber: '123',
australianinstituteofarchaeologyNumber: '123',
philadelphiaNumber: '123',
Expand Down
1 change: 1 addition & 0 deletions src/fragmentarium/domain/FragmentDtos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const ExternalNumberTypes = [
'nabuccoNumber',
'metropolitanNumber',
'louvreNumber',
'dublinTcdNumber',
'alalahHpmNumber',
'australianinstituteofarchaeologyNumber',
'philadelphiaNumber',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ exports[`Snapshot 1`] = `
</p>
<p>
Excavation no.:
ed.1
waloub.1
</p>
<p>
Provenance:
Dugirdkhan
Dilbat
</p>
</small>
</div>
Expand Down Expand Up @@ -5851,9 +5851,9 @@ exports[`Snapshot 1`] = `
class="fragment-result__fragment-number"
>
<a
href="/fragmentarium/etkoclo.2"
href="/fragmentarium/hapbig.2"
>
etkoclo.2
hapbig.2
</a>
(JN)
</h4>
Expand All @@ -5863,15 +5863,15 @@ exports[`Snapshot 1`] = `
<small>
<p>
Accession no.:
baj.2
pehuvu.2
</p>
<p>
Excavation no.:
jil.2
uf.2
</p>
<p>
Provenance:
Tall Imlīḥiyah
Ḫuzirina
</p>
</small>
</div>
Expand Down Expand Up @@ -5899,7 +5899,17 @@ exports[`Snapshot 1`] = `
<li
class="Record__entry"
>
No record
Cavallini
(
Transliteration
,
<time
datetime="2061-06-11"
>
11/6/2061
</time>
)
</li>
</ol>
</div>
Expand Down Expand Up @@ -5963,14 +5973,14 @@ exports[`Snapshot 1`] = `
<span
class="reference-popover__citation"
>
Chirici & Borchi, 2066: 1964069523292160-4777479967342592
Chirici & Borchi, 2055: 851575803215872-8906036102561792
[
l. 4'.2., 2.
l. 1., 2.
]
<span
class="type-abbreviation"
>
(T)
(D)
</span>
</span>
</li>
Expand Down
9 changes: 9 additions & 0 deletions src/fragmentarium/ui/info/ExternalNumberLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ export function LouvreLink({ number }: { number: string }): JSX.Element {
/>
)
}
export function dublinTcdLink({ number }: { number: string }): JSX.Element {
return (
<ExternalNumberLink
number={number}
baseUrl={'https://digitalcollections.tcd.ie/concern/works/'}
label={'Trinity College Dublin'}
/>
)
}
export function alalahHpmLink({ number }: { number: string }): JSX.Element {
return (
<ExternalNumberLink
Expand Down
8 changes: 8 additions & 0 deletions src/fragmentarium/ui/info/ExternalResources.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const achemenetNumber = 'H00744'
const nabuccoNumber = 'H00765'
const metropolitanNumber = 'M123'
const louvreNumber = 'L123'
const dublinTcdNumber = 'L123'
const alalahHpmNumber = 'L123'
const australianinstituteofarchaeologyNumber = 'L123'
const philadelphiaNumber = 'P123'
Expand All @@ -44,6 +45,7 @@ describe('external resources', () => {
nabuccoNumber,
metropolitanNumber,
louvreNumber,
dublinTcdNumber,
alalahHpmNumber,
australianinstituteofarchaeologyNumber,
philadelphiaNumber,
Expand Down Expand Up @@ -92,6 +94,11 @@ describe('external resources', () => {
metropolitanNumber,
],
['Louvre', 'https://collections.louvre.fr/ark:/53355/', louvreNumber],
[
'Trinity College Dublin',
'https://digitalcollections.tcd.ie/concern/works/',
dublinTcdNumber,
],
[
'Alalah HPM Number',
'https://www.hethport.uni-wuerzburg.de/Alalach/bildpraep.php?fundnr=',
Expand Down Expand Up @@ -147,6 +154,7 @@ describe('missing external resources', () => {
'NaBuCCo',
'The Metropolitan Museum of Art',
'Louvre',
'Trinity College Dublin',
'Alalah HPM Number',
'Australian Institute of Archaeology',
'Penn Museum',
Expand Down
2 changes: 2 additions & 0 deletions src/fragmentarium/ui/info/ExternalResources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
NabuccoLink,
MetropolitanLink,
LouvreLink,
dublinTcdLink,
alalahHpmLink,
australianinstituteofarchaeologyLink,
PhiladelphiaLink,
Expand Down Expand Up @@ -54,6 +55,7 @@ export default function ExternalResources({
[fragment.getExternalNumber('nabuccoNumber'), NabuccoLink],
[fragment.getExternalNumber('metropolitanNumber'), MetropolitanLink],
[fragment.getExternalNumber('louvreNumber'), LouvreLink],
[fragment.getExternalNumber('dublinTcdNumber'), dublinTcdLink],
[fragment.getExternalNumber('alalahHpmNumber'), alalahHpmLink],
[
fragment.getExternalNumber('australianinstituteofarchaeologyNumber'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ exports[`external resources Snapshot 1`] = `
</a>
)
</li>
<li>
Trinity College Dublin (
<a
aria-label="Trinity College Dublin text L123"
href="https://digitalcollections.tcd.ie/concern/works/L123"
rel="noopener noreferrer"
target="_blank"
>
L123
</a>
)
</li>
<li>
Alalah HPM Number (
<a
Expand Down
Loading

0 comments on commit 7ae09da

Please sign in to comment.