source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/SUBMIT-WEBANNOTATION-LIST.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: 597 bytes
RevLine 
[37077]1#!/bin/bash
2
[37124]3source ../_local_collect_config.sh
[37077]4
[37124]5iurl_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/
[37077]6
7ifilename=${1:-archives/HASH012c.dir/webannotation-list.json}
8
9iurl_tail=${ifilename#archives/}
10
11iurl="${iurl_prefix}${iurl_tail}"
12
13
[37124]14#external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
[37077]15internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
16
17post_url="${internal_url_base}/populate"
18
19
20echo ""
21echo curl -X POST -d "uri=${iurl}" "$post_url"
22
23curl -X POST -d "uri=${iurl}" "$post_url"
24
25echo ""
Note: See TracBrowser for help on using the repository browser.