source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/INDEX-IIIF-MANIFEST.sh@ 37124

Last change on this file since 37124 was 37124, checked in by davidb, 16 months ago

Changed to used derived name of collection from file-system

  • Property svn:executable set to *
File size: 786 bytes
Line 
1#!/bin/bash -x
2
3source ../_local_collect_config.sh
4
5
6iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col
7
8# ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
9ifilename=${1:-amadeus-iiif-manifest.json}
10
11#iuri_tail=${ifilename#archives/}
12
13#iuri="${iuri_prefix}${iuri_tail}"
14iuri="${iuri_prefix}/${ifilename}"
15
16
17internal_url_base="http://localhost:4343/simpleAnnotationStore"
18
19post_url="${internal_url_base}/manifests"
20
21echo ""
22
23echo curl -X POST -d "uri=${iuri}" "$post_url"
24curl -X POST -d "uri=${iuri}" "$post_url"
25
26echo ""
27
28
29# Returns JSON output of the form:
30# {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http-greenstone://intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}}
31
32# The short_id is needed to ...
Note: See TracBrowser for help on using the repository browser.