Skip to content

Commit 317c359

Browse files
committed
Fix #12303: Evaluating IIIF metadata values dspace.iiif.enabled and iiif.search.enabled correctly
1 parent ffcca7d commit 317c359

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/core/utilities/item-iiif-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import { RouteService } from '../services/route.service';
1313
import { Item } from '../shared/item.model';
1414

1515
export const isIiifEnabled = (item: Item) => {
16-
return !!item.firstMetadataValue('dspace.iiif.enabled');
16+
return item.firstMetadataValue('dspace.iiif.enabled')?.toLowerCase() === 'true';
1717

1818
};
1919

2020
export const isIiifSearchEnabled = (item: Item) => {
21-
return !!item.firstMetadataValue('iiif.search.enabled');
21+
return item.firstMetadataValue('iiif.search.enabled')?.toLowerCase() === 'true';
2222

2323
};
2424

0 commit comments

Comments
 (0)