From 6a64034bb13ed46597e7109443120fb0dbfef365 Mon Sep 17 00:00:00 2001 From: fsimonjetz Date: Mon, 23 Oct 2023 10:21:46 +0000 Subject: [PATCH] add hasExternalResources attr --- src/fragmentarium/domain/fragment.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/fragmentarium/domain/fragment.ts b/src/fragmentarium/domain/fragment.ts index afdff261d..01ee9920a 100644 --- a/src/fragmentarium/domain/fragment.ts +++ b/src/fragmentarium/domain/fragment.ts @@ -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'