Searching Annotations

In the last session we looked at downloading annotations so they could be linked to a manifest. In this session we are going to look at adding a Search service to the manifest so that the annotations you created can be searched using a IIIF Viewer. The procedure to achieve this is:

  • Index your manifest with the SimpleAnnotationServer
  • Add a link to the Search service in your manifest
  • Test with a IIIF Viewer

Step 1: Index your manifest

The SimpleAnnotationServer supports the IIIF Search API but for it to be able to provide this service it needs to index the manifest so it as a list of Canvas Ids to search. To do this navigate to:

http://sas.gdmrdigital.com/uploadManifest.xhtml

and upload your Manifest. We have used http://localhost:8887/manifest2.json in previous examples.

If this is successful then you will see a page similar to the following:

image

This page gives details on how to add a link to the search service. Copy the URL circled in Red in the image above.

Now open up your Manifest in Atom and it should look like this:

image

Now add the following JSON to the manifest after the label:

"service": {
    "profile": "http://iiif.io/api/search/0/search",
    "@id": "SEARCH_ID",
    "@context": "http://iiif.io/api/search/0/context.json"
},

Now replace the SEARCH_ID with the URL you copied earlier. In my example it would look like:

image

Step 3: Test with a IIIF Viewer

Test your manifest with the Universal Viewer to see if has worked.

Last modified by Glen Robson 2021-09-30 13:23:50
Created by Glen Robson 2021-09-30 13:23:50

results matching ""

    No results matching ""