mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Updated iiif configuation.
This commit is contained in:
@@ -497,7 +497,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.digitalcollections.iiif</groupId>
|
<groupId>de.digitalcollections.iiif</groupId>
|
||||||
<artifactId>iiif-apis</artifactId>
|
<artifactId>iiif-apis</artifactId>
|
||||||
<version>0.3.7</version>
|
<version>0.3.9</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<groupId>org.javassist</groupId>
|
<groupId>org.javassist</groupId>
|
||||||
|
@@ -58,10 +58,10 @@ public abstract class AbstractResourceService {
|
|||||||
* @param configurationService the DSpace configuration service
|
* @param configurationService the DSpace configuration service
|
||||||
*/
|
*/
|
||||||
protected void setConfiguration(ConfigurationService configurationService) {
|
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");
|
IMAGE_SERVICE = configurationService.getProperty("iiif.image.server");
|
||||||
SEARCH_URL = configurationService.getProperty("iiif.search.url");
|
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");
|
DOCUMENT_VIEWING_HINT = configurationService.getProperty("iiif.document.viewing.hint");
|
||||||
CLIENT_URL = configurationService.getProperty("dspace.ui.url");
|
CLIENT_URL = configurationService.getProperty("dspace.ui.url");
|
||||||
IIIF_LOGO_IMAGE = configurationService.getProperty("iiif.logo.image");
|
IIIF_LOGO_IMAGE = configurationService.getProperty("iiif.logo.image");
|
||||||
|
@@ -1,25 +1,18 @@
|
|||||||
#### IIIF CONFIGURATION ####
|
#### IIIF CONFIGURATION ####
|
||||||
# Base URL of the IIIF API endpoint. This is used when
|
# Public base url of a iiif server able to serve DSpace images. The bitstream
|
||||||
# setting annotation identifiers. Some identifiers are used for
|
# uuid is appended to this URL
|
||||||
# linking and must reference a valid IIIF API endpoint.
|
|
||||||
iiif.url = ${dspace.server.url}/iiif/
|
|
||||||
|
|
||||||
# Base URL of the IIIF image server.
|
|
||||||
iiif.image.server = http://localhost:8182/iiif/2/
|
iiif.image.server = http://localhost:8182/iiif/2/
|
||||||
|
|
||||||
# Base URL of the search service used to support the optional IIIF Search
|
# Base URL of the search service used to support the (experimental) IIIF Search
|
||||||
# capability. The actual path will depend on how search is supported.
|
# capability. The actual path will depend on how search is being supported.
|
||||||
# (experimental)
|
# This example assumes the solr plugin https://dbmdz.github.io/solr-ocrhighlighting/
|
||||||
# iiif.search.url = ${solr.server}/solr/word_highlighting
|
# 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
|
# 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".
|
# Sets the viewing hint. Possible values: "paged" or "individuals".
|
||||||
# Typically "paged" is preferred for multi-age documents. Use "individuals"
|
# Typically "paged" is preferred for multi-age documents. Use "individuals"
|
||||||
# if you plan to implement the search api.
|
# 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
|
# static text to be used as attribution in the iiif manifests
|
||||||
iiif.attribution = ${dspace.name}
|
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
|
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
|
# the iiif.view.hint metadata
|
||||||
iiif.document.viewing.hint = individuals
|
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
|
# 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
|
# via the iiif.image.width e iiif.image.height metadata
|
||||||
# iiif.canvas.default-width = 1200
|
# iiif.canvas.default-width = 1200
|
||||||
|
Reference in New Issue
Block a user