Class RecordSectionsResource

java.lang.Object
io.goobi.viewer.api.rest.v2.records.RecordSectionsResource

@Path("/records/{pi}/sections/{divId}") public class RecordSectionsResource extends Object
Author:
Florian Alpers
  • Constructor Details

  • Method Details

    • getRange

      @GET @Path("/range") @Produces("application/json") public de.intranda.api.iiif.presentation.v3.Range3 getRange() throws IndexUnreachableException, URISyntaxException, ViewerConfigurationException, DAOException, de.unigoettingen.sub.commons.util.datasource.media.PageSource.IllegalPathSyntaxException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
      Returns the IIIF 3.0 range for a single structural section (logical division) of the record.

      The range is built from the same structure tree used for the record's manifest and represents the requested section; if the section itself has pages, it starts with a canvas for the section's first page. Access requires the section's basic list permission.

      Returns:
      the Range3 for the requested section
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - if no section exists for the given div ID
      IndexUnreachableException
      URISyntaxException
      ViewerConfigurationException
      DAOException
      de.unigoettingen.sub.commons.util.datasource.media.PageSource.IllegalPathSyntaxException
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException