Class IIIFSharedUtils

java.lang.Object
org.dspace.iiif.util.IIIFSharedUtils

public class IIIFSharedUtils extends Object
Shared utilities for IIIF processing.
Author:
Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
  • Field Details

  • Method Details

    • isIIIFItem

      public static boolean isIIIFItem(Item item)
    • getIIIFBundles

      public static List<Bundle> getIIIFBundles(Item item)
      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

      public static boolean isIIIFEnabled(Item item)
      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

      public static boolean isIIIFBundle(Bundle b)
      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

      public static String getInfoJsonPath(Bitstream bitstream)
      Returns url for retrieving info.json metadata from the image server.
      Parameters:
      bitstream -
      Returns: