#!/bin/bash -x source ../_local_collect_config.sh iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col # ifilename=${1:-archives/HASH012c.dir/openannotation-list.json} ifilename=${1:-amadeus-iiif-manifest.json} #iuri_tail=${ifilename#archives/} #iuri="${iuri_prefix}${iuri_tail}" iuri="${iuri_prefix}/${ifilename}" internal_url_base="http://localhost:4343/simpleAnnotationStore" post_url="${internal_url_base}/manifests" echo "" echo curl -X POST -d "uri=${iuri}" "$post_url" curl -X POST -d "uri=${iuri}" "$post_url" echo "" # Returns JSON output of the form: # {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http-greenstone://intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}} # The short_id is needed to ...