Last change
on this file since 37121 was 37106, checked in by davidb, 16 months ago |
Some initial work on ingesting a manifest file to support IIIF search-within
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash -x
|
---|
2 |
|
---|
3 |
|
---|
4 | # ifilename=${1:-amadeus-iiif-manifest.json}
|
---|
5 |
|
---|
6 | # internal_url_base="http://localhost:4343/simpleAnnotationStore"
|
---|
7 | # post_url="${internal_url_base}/manifests"
|
---|
8 |
|
---|
9 |
|
---|
10 | # echo ""
|
---|
11 |
|
---|
12 | # echo curl -X POST -d "@${ifilename}" "$post_url"
|
---|
13 | # curl -X POST -d "@${ifilename}" "$post_url"
|
---|
14 |
|
---|
15 | # echo ""
|
---|
16 |
|
---|
17 | # #echo "Do I now need to load manifest with something along the lines of"
|
---|
18 | # #echo " window.location.href = 'manifest.xhtml?manifest=' + json.loaded.short_id;"
|
---|
19 |
|
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 | iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes
|
---|
24 |
|
---|
25 | # ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
|
---|
26 | ifilename=${1:-amadeus-iiif-manifest.json}
|
---|
27 |
|
---|
28 | #iuri_tail=${ifilename#archives/}
|
---|
29 |
|
---|
30 | #iuri="${iuri_prefix}${iuri_tail}"
|
---|
31 | iuri="${iuri_prefix}/${ifilename}"
|
---|
32 |
|
---|
33 |
|
---|
34 | internal_url_base="http://localhost:4343/simpleAnnotationStore"
|
---|
35 |
|
---|
36 | post_url="${internal_url_base}/manifests"
|
---|
37 |
|
---|
38 | echo ""
|
---|
39 |
|
---|
40 | echo curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
41 | curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
42 |
|
---|
43 | echo ""
|
---|
44 |
|
---|
45 |
|
---|
46 | ## {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http-greenstone://intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.