mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Updated regex and condition for iiif.enabled metadata check.
This commit is contained in:
@@ -606,7 +606,9 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
|
|||||||
this.bitstream.bundle.pipe(getFirstSucceededRemoteDataPayload(),
|
this.bitstream.bundle.pipe(getFirstSucceededRemoteDataPayload(),
|
||||||
mergeMap((bundle: Bundle) => bundle.item.pipe(getFirstSucceededRemoteDataPayload())))
|
mergeMap((bundle: Bundle) => bundle.item.pipe(getFirstSucceededRemoteDataPayload())))
|
||||||
.subscribe((item) => {
|
.subscribe((item) => {
|
||||||
if (item.firstMetadataValue('dspace.iiif.enabled').match('true') !== null) {
|
const regex = /(true|yes)/i;
|
||||||
|
if (item.firstMetadataValue('dspace.iiif.enabled') &&
|
||||||
|
item.firstMetadataValue('dspace.iiif.enabled').match(regex) !== null) {
|
||||||
this.isIIIF = true;
|
this.isIIIF = true;
|
||||||
this.formLayout.iiifLabel.grid.host = this.newFormatBaseLayout;
|
this.formLayout.iiifLabel.grid.host = this.newFormatBaseLayout;
|
||||||
this.formLayout.iiifToc.grid.host = this.newFormatBaseLayout;
|
this.formLayout.iiifToc.grid.host = this.newFormatBaseLayout;
|
||||||
|
Reference in New Issue
Block a user