Skip to Main Content Libraries

IIIF Libguide Examples: Home

This guide shows how IIIF resources from Willamette University and elsewhere can be added to guides.

IIIF Examples

Here are a few examples of how IIIF enabled images and documents can be added to a guide. The examples use an embedded Mirador viewer and a simple configuration script supported by the Willamette University Libraries. 

Most of the embedded viewers below show the book L'Orégon et les côtes de l'océan Pacifique du nord, from Willamette University Digital Collections. But any IIIF-enabled item from this or any other repository that supports IIIF could be used.

Here's how you get the HTML Snippet for an embedded iframe. In DSpace, find the item you want to embed. Click on the overflow icon (the 3 vertical dots in the header) and choose "Share." Then copy the code snippet shown in the "embed" option. Then just embed this code in your guide (using the HTML Source option in the libguides editor).

You can add additional HTML parameters to the iframe code snippet as needed. These are shown below.

Simple Embedded viewer

This is the default you get when using the "share" option in Mirador.

HTML Snippet:

<iframe allowfullscreen="" frameborder="0" height="420" src="" title="Image viewer" width="560"></iframe>

Document opened at Selected Page

This iframe uses the "canvas" query parameter to specify the canvas to load at startup.

HTML Snippet

<iframe allowfullscreen="" frameborder="0" height="420" src=";canvas=;showInfo=false" title="Image viewer" width="560"></iframe>

Extra Parameter:



Embedded viewer with Info Panel open

This example adds the "showInfo" parameter. It tells Mirador to start with the info side panel open.

HTML Snippet:

<iframe allowfullscreen="" frameborder="0" height="420" src=";showInfo=true" title="Image viewer" width="560"></iframe>

Extra Parameter:



Viewer opened in side-by-side page view

This example has a few problems but it is worth including. It uses the "book" parameter, which tells Mirador to use the side-by-side page view. At this time, the Manifests returned by the DSpace IIIF integration include a "viewingHint" that overrides the viewer setting. I need to reevaluate that since it may make sense to remove the viewingHint from Manifests and let IIIF viewers choose the default view via their configuration. In the meantime, our viewer script will force the viewer to use the "book" view when this parameter is true. That creates a problem for searching within the document since the side-by-side page view breaks word highlighting in Mirador. If you want the viewer to support search, do not set the "book" parameter.

HTML Snippet:

<iframe allowfullscreen="" frameborder="0" height="420" src=";canvas=;showInfo=false&amp;book=true" title="Image viewer" width="560"></iframe>

Extra Parameters:



From another university

You're not limited to local images. Here's an image from the Yale University Art Gallery.

HTML Snippet:

<iframe allowfullscreen="" frameborder="0" height="420" src=";showInfo=false&amp;book=true" title="Image viewer" width="560"></iframe>

Willamette University

Willamette University Libraries

Mark O. Hatfield Library
900 State Street.
Salem Oregon 97301
Pacific Northwest College of Art Library
511 NW Broadway.
Portland Oregon 97209