Package org.dspace.iiif.util
Class IIIFSharedUtils
java.lang.Object
org.dspace.iiif.util.IIIFSharedUtils
Shared utilities for IIIF processing.
- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetIIIFBundles(Item item) This method returns the bundles holding IIIF resources if any.static StringgetInfoJsonPath(Bitstream bitstream) Returns url for retrieving info.json metadata from the image server.static booleanUtility method to check is a bundle can contain bitstreams to use as IIIF resourcesstatic booleanisIIIFEnabled(Item item) This method verify if the IIIF feature is enabled on the item or parent collection.static booleanisIIIFItem(Item item)
-
Field Details
-
METADATA_IIIF_ENABLED
- See Also:
-
OTHER_CONTENT_BUNDLE
- See Also:
-
IMAGE_SERVER_PATH
- See Also:
-
METADATA_IIIF_SCHEMA
- See Also:
-
METADATA_IIIF_IMAGE_ELEMENT
- See Also:
-
METADATA_IIIF_TOC_ELEMENT
- See Also:
-
METADATA_IIIF_LABEL_ELEMENT
- See Also:
-
METADATA_IIIF_HEIGHT_QUALIFIER
- See Also:
-
METADATA_IIIF_WIDTH_QUALIFIER
- See Also:
-
configurationService
-
-
Method Details
-
isIIIFItem
-
getIIIFBundles
This method returns the bundles holding IIIF resources if any. If there is no IIIF content available an empty bundle list is returned.- Parameters:
item- the DSpace item- Returns:
- list of DSpace bundles with IIIF content
-
isIIIFEnabled
This method verify if the IIIF feature is enabled on the item or parent collection.- Parameters:
item- the dspace item- Returns:
- true if the item supports IIIF
-
isIIIFBundle
Utility method to check is a bundle can contain bitstreams to use as IIIF resources- Parameters:
b- the DSpace bundle to check- Returns:
- true if the bundle can contain bitstreams to use as IIIF resources
-
getInfoJsonPath
Returns url for retrieving info.json metadata from the image server.- Parameters:
bitstream-- Returns:
-