Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Jared Whiklo 21124f317d Use Context to allow altering the normalized JSON-LD (#77) 7 years ago
.github Add JWT Token Authentication (#38) 8 years ago
config Referenced Media Condition (#75) 7 years ago
src Use Context to allow altering the normalized JSON-LD (#77) 7 years ago
tests Use Context to allow altering the normalized JSON-LD (#77) 7 years ago
.gitignore Add JWT Token Authentication (#38) 8 years ago
.travis.yml Update to use dev branch of rules (#56) 8 years ago
CONTRIBUTING.md address Islandora-CLAW/CLAW#537 (#49) 8 years ago
LICENSE Use the correct LICENSE. 8 years ago
README.md Add binary to node (#76) 7 years ago
composer.json Using Context instead of Rules (#68) 7 years ago
islandora.info.yml Using Context instead of Rules (#68) 7 years ago
islandora.install Issue 640 (#67) 7 years ago
islandora.links.menu.yml Issue 643 (#63) 8 years ago
islandora.module Use Context to allow altering the normalized JSON-LD (#77) 7 years ago
islandora.permissions.yml Issue 640 (#67) 7 years ago
islandora.routing.yml Add binary to node (#76) 7 years ago
islandora.services.yml Add binary to node (#76) 7 years ago

README.md

Islandora Islandora

Build Status Contribution Guidelines LICENSE

Introduction

CLAW's core Islandora module for Drupal 8.x

Installation

For a fully automated install, see claw-playbook. If you're installing manually, the REST configuration for both Nodes and Media need to be enabled with jwt_auth for authentication and both json and jsonld formats.

REST API

Islandora has a light, mostly RESTful HTTP API that relies heavily on Drupal's core Rest module.

/media/{media}/source

You can PUT content to the /media/{media}/source endpoint to update the File associated with a Media. The Content-Type header is expected, as well as a Content-Disposition header of the form attachment; filename="your_filename" to indicate the name to give the file. Requests with empty bodies or no Content-Length header will be rejected.

Example usage:

curl -u admin:islandora -v -X PUT -H 'Content-Type: image/png' -H 'Content-Disposition: attachment; filename="my_image.png"' --data-binary @my_image.png localhost:8000/media/1/source

/node/{node}/media/{field}/add/{bundle}

You can POST content to the /node/{node}/media/{field}/add/{bundle} endpoint to create a new Media of the specified bundle using the POST body. It will be associated with the specified Node using the field from the route. The Content-Type header is expected, as well as a Content-Disposition header of the form attachment; filename="your_filename" to indicate the name to give the file. Requests with empty bodies or no Content-Length header will be rejected.

Example usage:

curl -v -u admin:islandora -H "Content-Type: image/jpeg" -H "Content-Disposition: attachment; filename=\"test.jpeg\"" --data-binary @test.jpeg http://localhost:8000/node/1/media/my_media_field/add/my_media_bundle

Maintainers

Current maintainers:

Development

If you would like to contribute, please get involved by attending our weekly Tech Call. We love to hear from you!

If you would like to contribute code to the project, you need to be covered by an Islandora Foundation Contributor License Agreement or Corporate Contributor License Agreement. Please see the Contributors pages on Islandora.ca for more information.

License

GPLv2