2SC1815J/open-in-iiif-viewer

Patterns for a link of IIIF manifest

2SC1815J opened this issue · 2 comments

If we can have a consensus that web pages containing links to IIIF manifests will mark up such links in some specified patterns, manifest link detection mechanisms will become more robust and the philosophy of interoperability will be more realized.

For example:

  1. In meta tag
    • <meta name="iiif-manifest-url" content="http://example.org/iiif/book1/manifest" />
  2. In hyperlink
    • <a href="default_target?manifest=http://example.org/iiif/book1/manifest" data-iiif-manifest-url="http://example.org/iiif/book1/manifest"><img src="logo.png" /></a>
    • This plan has an affinity with IIIF Drag-and-drop proposal.
acdha commented

Here are a couple of related issues:

IIIF/iiif-stories#75
IIIF/iiif-stories#76

As per IIIF/iiif-stories#75 (comment) I deployed this to all of the wdl.org pages for testing: <link rel="alternate" type="application/ld+json;profile=&quot;http://iiif.io/api/presentation/2/context.json&quot;" …>

As far as I know, there are two patterns experimentally adopted.
I keep track of the discussion in the discovery group.

Pattern 1

The NCSU Libraries adopts the following pattern. (by @jronallo)
eg. https://d.lib.ncsu.edu/collections/catalog/0002030

<script type="application/ld+json">
{
	"@context": [
		"http://www.w3.org/ns/anno.jsonld",
		"http://iiif.io/api/presentation/3/context.json"
	],
	"type": "Annotation",
	"motivation": "highlighting",
	"target": {
		"id": "https://d.lib.ncsu.edu/collections/catalog/0002030/manifest",
		"type": "Manifest"
	}
}
</script>

ref.
IIIF/discovery#20
https://docs.google.com/document/d/1LKhEWWuYF-8KLkKcW_u2GlvX0epohwc7OYOVjICie5M/

Pattern 2

The World Digital Library adopts the following pattern. (by @acdha)
eg. https://www.wdl.org/en/item/11826/

<link rel="alternate"
	type="application/ld+json;profile=&quot;http://iiif.io/api/presentation/2/context.json&quot;"
	href="https://www.wdl.org/en/item/11826/manifest">
<a type="application/ld+json;profile=&quot;http://iiif.io/api/presentation/2/context.json&quot;"
	href="https://www.wdl.org/en/item/11826/manifest">https://www.wdl.org/en/item/11826/manifest</a>