Package org.dspace.app.iiif.service
Class AnnotationListService
java.lang.Object
org.dspace.app.iiif.service.AbstractResourceService
org.dspace.app.iiif.service.AnnotationListService
This service provides methods for creating an
Annotation List. There should be a single instance of
this service per request. The @RequestScope provides a single instance created and available during
complete lifecycle of the HTTP request.- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
Field Summary
Fields inherited from class org.dspace.app.iiif.service.AbstractResourceService
BITSTREAM_PATH_PREFIX, CLIENT_URL, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, defaultCanvasHeightFallback, defaultCanvasWidthFallback, DOCUMENT_VIEWING_HINT, IIIF_ENDPOINT, IIIF_LOGO_IMAGE, IMAGE_PATH, IMAGE_SERVICE, SEARCH_URL, THUMBNAIL_PATH -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationListService(org.dspace.services.ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptiongetSeeAlsoAnnotations(Context context, UUID id) Returns an AnnotationList for bitstreams in the OtherContent bundle.Methods inherited from class org.dspace.app.iiif.service.AbstractResourceService
getManifestId, setConfiguration, setDefaultCanvasDimensions
-
Constructor Details
-
AnnotationListService
public AnnotationListService(org.dspace.services.ConfigurationService configurationService)
-
-
Method Details
-
getSeeAlsoAnnotations
Returns an AnnotationList for bitstreams in the OtherContent bundle. These resources are not appended directly to the manifest but can be accessed via the seeAlso link. The semantics of this linking property may be extended to full text files, but machine readable formats like ALTO, METS, and schema.org descriptions are preferred.- Parameters:
context- DSpace contextid- bitstream uuid- Returns:
- AnnotationList as JSON
- Throws:
RuntimeException
-