/diglib-iiif

An IIIF Image and Presentation API implementation in PHP

Primary LanguagePHP

HAB Diglib IIIF

HAB Diglib IIIF is copyright (c) 2018 by Herzog August Bibliothek Wolfenbüttel and released under the terms of the GNU Affero General Public License.

About

A PHP web application that implements the IIIF Presentation and the IIIF Image API using METS document as data source. The application does not provide an in-memory representation of the IIIF entities but uses a mapper to retrieve the requested information from the METS file.

Installation

You can install this application by cloning the repository.

git clone https://github.com/dmj/diglib-iiif.git

Mapping

Manifest mets:mets/@⁠OBJID required
Sequence mets:div[@⁠TYPE = 'physSequence']/@⁠ID optional
Annotation mets:div[@⁠TYPE = 'page']/mets:fptr/@⁠ID optional
Canvas mets:div[@⁠TYPE = 'page']/@⁠ID optional
Image mets:fileGrp[@⁠USE = 'MASTER']/mets:file/@⁠ID optional

Limitations

Currently the web application has the following limitations:

  • does not create manifest metadata
  • the METS application profile might be subject to change
  • uses a stub-resolver that always points to the example directory