Skip to content

LeidenUniversityLibrary/islandora_handled_datastream_access

Repository files navigation

Islandora Handled Datastream Access

Introduction

Islandora handled datastream access allows view access to datastreams via the handle of the object.

Usage

This module adds the following URLs:

  • /islandora/handled_access/handle/what/view With this URL a specific datastream can be viewed by using the handle, for example /islandora/handled_access/1887/12345/JPG/view will view the JPG datastream of the Islandora item with handle 1887/12345. If the TN datastream (thumbnail) is accessed and the islandora_imagecache is installed, the cached thumbnail will be used. As a special case, the what can be image: an JP2, JPG or MEDIUM_SIZE datastream (in that order) is then used if it exists, has an image mimetype (image/png, image/jpeg or image/jp2) and is accessible. Also, what can be document and then a document (PDF) or image or binary is returned. Also, what can be thumbnail and then the TN datastream is returned.
  • /islandora/handled_access/handle/what/access This URL returns a JSON response that indicates if an item and datastream can be found based on the handle and if access is allowed. The special cases what are also possible.
  • /access/handle/view This does the same as /islandora/handled_access/handle/what/view for what = document
  • /access/handle/access This does the same as /islandora/handled_access/handle/what/access for what = document
  • /access/handle/download This does the same as /islandora/handled_access/handle/what/view for what = document but downloads the document
  • /access/handle/thumbnail This does the same as /islandora/handled_access/handle/what/view for what = thumbnail
  • /access/PID/view Same as /access/handle/view but with a PID of an object.
  • /access/PID/access Same as /access/handle/access but with a PID of an object.
  • /access/PID/download Same as /access/handle/download but with a PID of an object.
  • /access/PID/thumbnail Same as /access/handle/thumbnail but with a PID of an object.

Requirements

This module requires the following modules/libraries:

This module uses the following modules/libraries if they are installed:

Installation

Install as usual, see this for further information.

Maintainers/Sponsors

Current maintainers:

Development

If you would like to contribute to this module, please contact the current maintainer.

License

GPLv3 Copyright 2019-2020 Leiden University Library

About

Access datastreams through a handle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages