Package org.dspace.app.iiif.service
Class AnnotationListService
- java.lang.Object
-
- org.dspace.app.iiif.service.AbstractResourceService
-
- org.dspace.app.iiif.service.AnnotationListService
-
@RequestScope @Component public class AnnotationListService extends AbstractResourceService
This service provides methods for creating anAnnotation List. There should be a single instance of this service per request. The@RequestScopeprovides 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
Constructors Constructor Description AnnotationListService(org.dspace.services.ConfigurationService configurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSeeAlsoAnnotations(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
-
-
-
-
Method Detail
-
getSeeAlsoAnnotations
public String getSeeAlsoAnnotations(Context context, UUID id) throws RuntimeException
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
-
-