Skip to content

Commit

Permalink
add yale number
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Oct 27, 2023
1 parent 8627245 commit 2683052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/fragmentarium/domain/FragmentDtos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const ExternalNumberTypes = [
'hilprechtJenaNumber',
'hilprechtHeidelbergNumber',
'metropolitanNumber',
'yalePeabodyNumber',
] as const
export type ExternalNumber = typeof ExternalNumberTypes[number]

Expand Down
4 changes: 2 additions & 2 deletions src/fragmentarium/domain/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2683052

Please sign in to comment.