Changeset 35852


Ignore:
Timestamp:
2022-01-02T17:43:28+13:00 (2 years ago)
Author:
davidb
Message:

Fixed the 'collectdir' value so it works in any Geenstone3 site/col installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/02-EXPLODE-SPARQLRESULTS-TO-IMPORT.sh

    r35842 r35852  
    66cwd_without_prepare=${cwd%/*}
    77collection=${cwd_without_prepare##*/}
     8
     9full_collectdir=${cwd_without_prepare%/*}
    810
    911echo ""
     
    4446    /bin/cp "errata-lod/$f" "$tmp_cache/sparqlresults-$f"
    4547
    46     fgrep in-1956 $f > /dev/null
     48    echo $f | fgrep in-1956 > /dev/null
    4749    in_1956_status=$?
    4850   
     
    5052    # matches substring check
    5153    explode_metadata_database.pl \
    52         -collectdir $GSDL3SRCHOME/web/sites/eurovision-lod/collect \
     54        -collectdir "$full_collectdir" \
    5355        -collection $collection \
    5456        -plugin_options "-metadata_merge_on_concat_fields Country,Year,TitleDisambiguation -OIDtype assigned -OIDmetadata Identifier" \
     
    5860    else
    5961    explode_metadata_database.pl \
    60         -collectdir $GSDL3SRCHOME/web/sites/eurovision-lod/collect \
     62        -collectdir "$full_collectdir" \
    6163        -collection $collection \
    6264        -plugin_options "-metadata_merge_on_concat_fields Country,Year -OIDtype assigned -OIDmetadata Identifier" \
Note: See TracChangeset for help on using the changeset viewer.