Skip to content

Commit

Permalink
Merge pull request #125 from mnylc/7.x-1.11-docs-update
Browse files Browse the repository at this point in the history
Release equivalent of this centurie's Doc update
  • Loading branch information
rosiel authored Jun 15, 2018
2 parents 176507d + 7ec9826 commit 3e2b4a3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 12 deletions.
64 changes: 52 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,81 @@

## Introduction

A Islandora wrapper for the Internet Archive BookReader.
An Islandora wrapper for the Internet Archive BookReader.

This module doesn't do much on its own, its assummed that it will be used in conjunction with a solution pack, where it will be provided as a viewer.
This module doesn't do much on its own, its assummed that it will be used in conjunction with a solution pack, where it will be enabled as a viewer.

## Requirements

This module requires the following modules/libraries:

* [Islandora](https://github.com/islandora/islandora)
* [Tuque](https://github.com/islandora/tuque)
* [Djatoka](http://sourceforge.net/apps/mediawiki/djatoka/index.php?title=Main_Page)
* [Islandora Solr Search](https://github.com/Islandora/islandora_solr_search/) (Optional)
* [Islandora Paged Content](https://github.com/islandora/islandora_paged_content)
* [Libraries API](https://www.drupal.org/project/libraries)
* [Colorbox](https://www.drupal.org/project/colorbox)
* [Drupal Token Module](https://www.drupal.org/project/token)

And one (1) of the following Image Server options

* [Djatoka](http://sourceforge.net/apps/mediawiki/djatoka/index.php?title=Main_Page)
* [An IIIF Image API compliant Image Sever](#iiif)

This module has the following as optional requirements for certain features:

Allows OCR based search using the Viewer's Search box.

* [Islandora Solr Search](https://github.com/Islandora/islandora_solr_search/) (recommended)

## Installation

Install as usual, see [this](https://drupal.org/documentation/install/modules-themes/modules-7) for further information.

Download/clone the [Internet Archive BookReader](https://github.com/Islandora/internet_archive_bookreader.git) to `sites/all/libraries/bookreader`, or run `drush iabookreader-plugin`.
Download/clone our fork of the [Internet Archive BookReader](https://github.com/Islandora/internet_archive_bookreader.git) to `sites/all/libraries/bookreader`, or run `drush iabookreader-plugin`. This is currently the only version we support.

Internet Archive BookReader [Developer documentation](https://openlibrary.org/dev/docs/bookreader)

This module requires that you set up Djatoka, please follow the steps outlined at [here](https://wiki.duraspace.org/pages/viewpage.action?pageId=34658947).
This module requires that you set up either Djatoka or an IIIF Image API compliant Image Sever. For Djatoka please follow the steps outlined at [here](https://wiki.duraspace.org/display/ISLANDORA/Djatoka).

This module requires [Colorbox](https://www.drupal.org/project/colorbox) and its dependant library [Colorbox library](http://www.jacklmoore.com/colorbox/). Depending on the version of the Colorbox module and library you are using, there can be some issues with Colorbox finding the library. [This](https://www.drupal.org/node/1074474#comment-9137159) comment solves the issue.

Note: If you use the Drush command, it is advisable to Move (not copy) the install script to your `.drush` folder and run it.
Note: If you use the Drush command, it is advisable to Move (not copy) the [install script](https://github.com/islandora/islandora_internet_archive_bookreader/blob/7.x-1.11/islandora_internet_archive_bookreader.drush.inc) to your `.drush` folder before running it.

## Configuration

Set the 'djatoka image compression level', 'Solr field relating pages to book PIDs ', 'Overlay Opacity', a content type to be displayed in the IAV, and select the 'Default page view' in Administration » Islandora » Islandora Viewers » Internet Archive BookReader (/admin/islandora/islandora_viewers/internet_archive_bookreader). Additional options involve behavior for mobile users, and using the JPG datastream as a backup in case Djatoka cannot return a JP2.
### Common settings

You can setup which 'Solr field relating pages to book PIDs' is used, the amount of 'Overlay Opacity', what content type is to be displayed to final users within the Internet Archive Book Reader Viewer, the 'Default page view' mode and the full screen behaviour for mobile users in Administration » Islandora » Islandora Viewers » Internet Archive BookReader (/admin/islandora/islandora_viewers/internet_archive_bookreader).


![Configuration](docs/iabookreader-djatoka.png)

### Image server selection

This module is able to use either Adore-djatoka or an IIIF Image API compliant Image Server as source for each book's page image.

#### Adore-djatoka

Djatoka specific options are:

* Compression level (the larger the number, the lower the quality but also the smaller the file size)
* Using an Object's JPG datastream as a backup in case Djatoka cannot return a JP2.

Note: The Adore-datoka Server URI (Open URL endpoint) must be set from [Islandora Paged Content](https://github.com/islandora/islandora_paged_content) Solution Pack's admin settings.


#### IIIF

Any [IIIF](http://iiif.io) image server can be used as the IIIF tile source.

The IIIF Image Server Base URL needs to be setup here. This URL can be relative or absolute but needs to be openly accessible to a visiting user (Ajax).

This module provides `Drupal tokens` to allow highly configurable replacement patterns to be used for the `IIIF identifier` creation.

These `IIIF identifier` are send to the IIIF Image server where they are resolved back into URLs that can be accessed by it and used as Source for its tile creation.

This resolvers need to be properly configured at the Image server level. E.g, a [Cantaloupe 🍈](https://medusa-project.github.io/cantaloupe/) IIIF image server can be configured to resolve these identifiers using the [`HttpResolver`](https://medusa-project.github.io/cantaloupe/manual/3.3/resolvers.html#HttpResolver) with no prefix specified.

Islandora also uses temporary authentication tokens to give backend services limited time access to protected resources (Datastreams). You can select if those tokens are passed as part of a `IIIF identifier` or via an HTTP Header.

![Configuration](https://cloud.githubusercontent.com/assets/10052068/24043645/fce70382-0aed-11e7-9e70-11678aa7d1df.png)
![Configuration](docs/iabookreader-iiif.png)

## Documentation

Expand Down
Binary file added docs/iabookreader-djatoka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/iabookreader-iiif.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3e2b4a3

Please sign in to comment.