Changeset 37080


Ignore:
Timestamp:
2022-12-29T23:21:13+13:00 (4 weeks ago)
Author:
davidb
Message:

Changed from url to uri in variable names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/SUBMIT-OPENANNOTATION-LIST.sh

    r37077 r37080  
    11#!/bin/bash
    22
    3 
    4 iurl_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/
     3iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/
    54
    65ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
    76
    8 iurl_tail=${ifilename#archives/}
     7iuri_tail=${ifilename#archives/}
    98
    10 iurl="${iurl_prefix}${iurl_tail}"
     9iuri="${iuri_prefix}${iuri_tail}"
    1110
    1211
    13 external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
     12# external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
    1413internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
    1514
    1615post_url="${internal_url_base}/populate"
    1716
    18 #echo "Running: curl -F uri=${iurl} $post_url"
    19 
    20 #curl -F "uri=${iurl}" "$post_url"
    2117
    2218
    2319echo ""
    24 echo curl -X POST -d "uri=${iurl}" "$post_url"
     20echo curl -X POST -d "uri=${iuri}" "$post_url"
    2521
    26 curl -X POST -d "uri=${iurl}" "$post_url"
     22curl -X POST -d "uri=${iuri}" "$post_url"
    2723
    2824echo ""
Note: See TracChangeset for help on using the changeset viewer.