Skip to content

Commit

Permalink
add hasExternalResources attr
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Oct 23, 2023
1 parent 1149aba commit 6a64034
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fragmentarium/domain/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ export class Fragment {
get hilprechtHeidelbergNumber(): string {
return this.getExternalNumber('hilprechtHeidelbergNumber')
}
get hasExternalResources(): boolean {
return _.some([
this.cdliNumber,
this.bmIdNumber,
this.archibabNumber,
this.bdtnsNumber,
this.urOnlineNumber,
this.hilprechtJenaNumber,
this.hilprechtHeidelbergNumber,
])
}

get atfHeading(): string {
const cdliNumber = this.cdliNumber || 'X000001'
Expand Down

0 comments on commit 6a64034

Please sign in to comment.