Last change
on this file was 37231, checked in by davidb, 15 months ago |
Overall improvements to collection-specific scripts
|
-
Property svn:executable
set to
*
|
File size:
659 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | source ../_local_collect_config.sh
|
---|
4 |
|
---|
5 |
|
---|
6 | #iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/
|
---|
7 | iuri_prefix=$gs_library_url/sites/$site/collect/$col/index/assoc/
|
---|
8 |
|
---|
9 | ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
|
---|
10 |
|
---|
11 | iuri_tail=${ifilename#archives/}
|
---|
12 |
|
---|
13 | iuri="${iuri_prefix}${iuri_tail}"
|
---|
14 |
|
---|
15 |
|
---|
16 | #internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
|
---|
17 | internal_url_base="http://localhost:$gs_http_port/simpleAnnotationStore/annotation"
|
---|
18 |
|
---|
19 | post_url="${internal_url_base}/populate"
|
---|
20 |
|
---|
21 |
|
---|
22 | echo ""
|
---|
23 |
|
---|
24 | echo curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
25 | curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
26 |
|
---|
27 | echo ""
|
---|
Note:
See
TracBrowser
for help on using the repository browser.