diff --git a/src/fragmentarium/domain/FragmentDtos.ts b/src/fragmentarium/domain/FragmentDtos.ts index 3d315042c..f0896c93f 100644 --- a/src/fragmentarium/domain/FragmentDtos.ts +++ b/src/fragmentarium/domain/FragmentDtos.ts @@ -64,6 +64,7 @@ export const ExternalNumberTypes = [ 'hilprechtJenaNumber', 'hilprechtHeidelbergNumber', 'metropolitanNumber', + 'yalePeabodyNumber', ] as const export type ExternalNumber = typeof ExternalNumberTypes[number] diff --git a/src/fragmentarium/domain/fragment.ts b/src/fragmentarium/domain/fragment.ts index 48247aabe..4e8b2c979 100644 --- a/src/fragmentarium/domain/fragment.ts +++ b/src/fragmentarium/domain/fragment.ts @@ -259,8 +259,8 @@ export class Fragment { get metropolitanNumber(): string { return this.getExternalNumber('metropolitanNumber') } - get yaleBabylonianNumber(): string { - return this.accession + get yalePeabodyNumber(): string { + return this.getExternalNumber('yalePeabodyNumber') } get hasExternalResources(): boolean { return _.some(