Last change
on this file since 37124 was 37124, checked in by davidb, 2 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 |
|
---|
3 | source ../_local_collect_config.sh
|
---|
4 |
|
---|
5 |
|
---|
6 | iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col
|
---|
7 |
|
---|
8 | # ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
|
---|
9 | ifilename=${1:-amadeus-iiif-manifest.json}
|
---|
10 |
|
---|
11 | #iuri_tail=${ifilename#archives/}
|
---|
12 |
|
---|
13 | #iuri="${iuri_prefix}${iuri_tail}"
|
---|
14 | iuri="${iuri_prefix}/${ifilename}"
|
---|
15 |
|
---|
16 |
|
---|
17 | internal_url_base="http://localhost:4343/simpleAnnotationStore"
|
---|
18 |
|
---|
19 | post_url="${internal_url_base}/manifests"
|
---|
20 |
|
---|
21 | echo ""
|
---|
22 |
|
---|
23 | echo curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
24 | curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
25 |
|
---|
26 | echo ""
|
---|
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.