diff --git a/_includes/content-state-viewers.html b/_includes/content-state-viewers.html new file mode 100644 index 000000000..7f66c23b4 --- /dev/null +++ b/_includes/content-state-viewers.html @@ -0,0 +1,39 @@ +{% if include.viewers %} +{% assign viewers = include.viewers | split: "," %} +{% else %} +{% assign viewers = page.viewers %} +{% endif %} +[JSON-LD]({{ include.iiif-content }}) {% for viewerTxt in viewers %}{% assign viewer = viewerTxt | strip %}| {% include viewer_link.html type=viewer manifest=include.iiif-content class="content-state" %}{% endfor %} + +{% if page.code %} +{% include code_links.html %} +{% endif %} + + \ No newline at end of file diff --git a/_includes/viewer_link.html b/_includes/viewer_link.html index a9615f41a..5bba00c55 100644 --- a/_includes/viewer_link.html +++ b/_includes/viewer_link.html @@ -59,4 +59,4 @@ {% else %} {% capture default_text %}Unknown Viewer type '{{ include.type}}'{% endcapture %} {% capture viewer_url %}{{manifest_url |strip}}{% endcapture %} -{% endif %}{{ include.text | default: default_text }} +{% endif %}{{ include.text | default: default_text }} diff --git a/recipe/0485-contentstate-canvas-region/index.md b/recipe/0485-contentstate-canvas-region/index.md index 04db7f298..e646db76c 100644 --- a/recipe/0485-contentstate-canvas-region/index.md +++ b/recipe/0485-contentstate-canvas-region/index.md @@ -70,12 +70,10 @@ Eventually, we can create an anchor tag with the link as the `href` attribute to Link for visualizing the region of a Canvas using a viewer. ``` -{% include manifest_links.html viewers="UV, Mirador, Curation" manifest="annotation.json" %} +{% include content-state-viewers.html iiif-content="annotation.json" viewers="Mirador, Clover" %} {% include jsonviewer.html src="annotation.json" %} - - ## Related Recipes * [Simplest Manifest - Image][0001] shows the basic structure of a IIIF Manifest using presentation API 3.0.