Changeset 38294 for gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/INDEX-IIIF-MANIFEST.sh
- Timestamp:
- 2023-10-06T18:07:52+13:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/INDEX-IIIF-MANIFEST.sh
r38281 r38294 48 48 iuri="$gs_library_url/sites/$site/collect/$col/tmp/doc-openannotation--with-otherContent--pid$pid.json" 49 49 50 #internal_url_base="http://localhost:4343/simpleAnnotationStore"51 50 internal_url_base="http://localhost:$gs_http_port/simpleAnnotationStore" 52 51 … … 60 59 61 60 if [ $? = 0 ] ; then 61 echo "For debugging purposes, supressing removal of tmp/doc-openannotation--with-otherContent--pid$pid.json" 62 62 /bin/rm tmp/doc-openannotation--with-otherContent--pid$pid.json 63 63 fi … … 65 65 echo "" 66 66 67 # The above curl POST returns JSON output of the form: 68 # {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http://ld.greenstone.org/intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}} 67 # When the IIIFManifest file is ingested, the returned JSON includes the 'short_id' for the 68 # submitted file. This is a value that a built Greenstone collection needs to know to 69 # use Mirador's search within-the-document, but produced at this stage is too late 70 # to be incorporated. The solution to this has been to look into how SAS calculates 71 # this short_id value, and encode the same calculation into the GoogleVisionAPI plugin 72 # so the same value can be computed there (when it is generating OpenAnnotations, and 73 # storing them as associated files), with the computed value set as the metadata field 74 # SASShortID 69 75 70 # It might be the short_id is need for a later step in Greenstone, a comment to this affect was left in this script: 76 77 # In more detail ... 71 78 # 72 # The short_id is needed to ... 79 # To search within specific IIIFManafest, the SAS Search endpoint makes use of a field 80 # called 'short_id'. This turns out to be an MD5 hash of the URL, and is done so the 81 # Restful URL to query the document specifies the 82 83 # For example the Doc ID: 84 # http://ld.greenstone.org/intermuse/demo-localhost/HMS_1/canvas/1 73 85 # 74 # However no other detail given, and at present the features that are needed in Mirador appear to work OK86 # gets hashed to 212807d9741cd2497368dee6c16f2882 75 87 # 76 # Legacy comment written during a development phase that is no longer relevant/required?? 88 # and so is then searched through SAS as: 89 # 90 # http://localhost:8383/simpleAnnotationStore/search-api/212807d9741cd2497368dee6c16f2882/search?q=SOUL 77 91 78 # {"loaded":{"short_id":"e2465cd7e5174f2720cee110d9b4a06a","uri":"http://ld.greenstone.org/intermuse/programmes-and-performers/HASH012cd965c3e83d504f4a78cd/manifest"}}+ echo '' 92 93 # So Greenstone3's XSL presentation layer can correctly construct the URL to search within 94 # the Mirador viewer using the SAS search endpoint, it need to set this short_id as a piece 95 # of metadata (SASShortID). 96 # 97 # This is done in the GoogleVisionAPI Plugin, 'replicating' (computing up-stream, really) 98 # the MD5 hash calculation that SAS also does at this point, when the IIIFManifest is ingested 99
Note:
See TracChangeset
for help on using the changeset viewer.