Updated iiif configuation.

This commit is contained in:
Michael W Spalti
2021-10-13 10:05:00 -07:00
parent 40e3291988
commit 2f74887c8f
3 changed files with 15 additions and 30 deletions

View File

@@ -497,7 +497,7 @@
<dependency>
<groupId>de.digitalcollections.iiif</groupId>
<artifactId>iiif-apis</artifactId>
<version>0.3.7</version>
<version>0.3.9</version>
<exclusions>
<exclusion>
<groupId>org.javassist</groupId>

View File

@@ -58,10 +58,10 @@ public abstract class AbstractResourceService {
* @param configurationService the DSpace configuration service
*/
protected void setConfiguration(ConfigurationService configurationService) {
IIIF_ENDPOINT = configurationService.getProperty("iiif.url");
IIIF_ENDPOINT = configurationService.getProperty("dspace.server.url") + "/iiif/";
IMAGE_SERVICE = configurationService.getProperty("iiif.image.server");
SEARCH_URL = configurationService.getProperty("iiif.search.url");
BITSTREAM_PATH_PREFIX = configurationService.getProperty("iiif.bitstream.url");
BITSTREAM_PATH_PREFIX = configurationService.getProperty("dspace.server.url") + "/api/core/bitstreams";
DOCUMENT_VIEWING_HINT = configurationService.getProperty("iiif.document.viewing.hint");
CLIENT_URL = configurationService.getProperty("dspace.ui.url");
IIIF_LOGO_IMAGE = configurationService.getProperty("iiif.logo.image");

View File

@@ -1,25 +1,18 @@
#### IIIF CONFIGURATION ####
# Base URL of the IIIF API endpoint. This is used when
# setting annotation identifiers. Some identifiers are used for
# linking and must reference a valid IIIF API endpoint.
iiif.url = ${dspace.server.url}/iiif/
# Base URL of the IIIF image server.
# Public base url of a iiif server able to serve DSpace images. The bitstream
# uuid is appended to this URL
iiif.image.server = http://localhost:8182/iiif/2/
# Base URL of the search service used to support the optional IIIF Search
# capability. The actual path will depend on how search is supported.
# (experimental)
# iiif.search.url = ${solr.server}/solr/word_highlighting
# Base URL of the search service used to support the (experimental) IIIF Search
# capability. The actual path will depend on how search is being supported.
# This example assumes the solr plugin https://dbmdz.github.io/solr-ocrhighlighting/
# iiif.search.url = ${solr.server}/word_highlighting
# The search plugin used to support IIIF Search. (experimental)
# The search plugin used to support (experimental) IIIF Search.
# This is the class used with https://dbmdz.github.io/solr-ocrhighlighting/
# It is currently the only supported option.
# iiif.search.plugin = org.dspace.app.rest.iiif.service.WordHighlightSolrSearch
# Required path prefix for bitstream content. This is used for creating
# the path for retrieving bitstreams for "rendering"
# and "seeAlso" annotations via the DSpace API.
iiif.bitstream.url = ${dspace.server.url}/api/core/bitstreams
# Sets the viewing hint. Possible values: "paged" or "individuals".
# Typically "paged" is preferred for multi-age documents. Use "individuals"
# if you plan to implement the search api.
@@ -72,21 +65,13 @@ iiif.license.uri = dc.rights.uri
# static text to be used as attribution in the iiif manifests
iiif.attribution = ${dspace.name}
# URL for logo. If defined, the logo will be added to the manifest.
iiif.logo.image = ${dspace.ui.url}/assets/images/dspace-logo.svg
# (optional) one of individuals, paged or continuous. Can be overridden at the item level via
# (optional) one of individuals, paged or continuous. Can be overridden at the item level via
# the iiif.view.hint metadata
iiif.document.viewing.hint = individuals
# public base url of a iiif server able to serve DSpace images. The bitstream uuid is appended to this URL
iiif.image.server =
# these should be not changed. They must match the routing configuration for the iiif controller
iiif.url = ${dspace.server.url}/iiif
iiif.solr.search.url =
iiif.bitstream.url = ${dspace.server.url}/api/core/bitstreams
# default value for the canvas size. Can be overridden at the item, bundle or bitstream level
# via the iiif.image.width e iiif.image.height metadata
# iiif.canvas.default-width = 1200