Changeset 37124


Ignore:
Timestamp:
2023-01-10T23:56:17+13:00 (2 weeks ago)
Author:
davidb
Message:

Changed to used derived name of collection from file-system

Location:
gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/INDEX-IIIF-MANIFEST.sh

    r37106 r37124  
    11#!/bin/bash -x
    22
    3 
    4 # ifilename=${1:-amadeus-iiif-manifest.json}
    5 
    6 # internal_url_base="http://localhost:4343/simpleAnnotationStore"
    7 # post_url="${internal_url_base}/manifests"
     3source ../_local_collect_config.sh
    84
    95
    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
     6iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col
    247
    258# ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
     
    4427
    4528
    46 ## {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http-greenstone://intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}}
     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 ...
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/SUBMIT-OPENANNOTATION-LIST.sh

    r37107 r37124  
    11#!/bin/bash
    22
    3 iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/
     3source ../_local_collect_config.sh
     4
     5
     6iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/
    47
    58ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
     
    1013
    1114
    12 # external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
    1315internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
    1416
    1517post_url="${internal_url_base}/populate"
    16 
    1718
    1819
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/SUBMIT-WEBANNOTATION-LIST.sh

    r37077 r37124  
    11#!/bin/bash
    22
     3source ../_local_collect_config.sh
    34
    4 iurl_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/
     5iurl_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/
    56
    67ifilename=${1:-archives/HASH012c.dir/webannotation-list.json}
     
    1112
    1213
    13 external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
     14#external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
    1415internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
    1516
    1617post_url="${internal_url_base}/populate"
    17 
    18 #echo "Running: curl -F uri=${iurl} $post_url"
    19 
    20 #curl -F "uri=${iurl}" "$post_url"
    2118
    2219
Note: See TracChangeset for help on using the changeset viewer.