Skip to content

Commit

Permalink
Use GETOPT for the command line scripts #326: making PICA parameters …
Browse files Browse the repository at this point in the history
…explicit for K10plus
  • Loading branch information
pkiraly committed Nov 6, 2023
1 parent eea14e9 commit fb25e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion catalogues/k10plus_pica_grouped.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
. ./setdir.sh

SCHEMA=PICA
TYPE_PARAMS="--emptyLargeCollectors"
TYPE_PARAMS="$TYPE_PARAMS --schemaType PICA"
TYPE_PARAMS="$TYPE_PARAMS --marcFormat PICA_NORMALIZED"
TYPE_PARAMS="$TYPE_PARAMS --emptyLargeCollectors"
TYPE_PARAMS="$TYPE_PARAMS --groupBy 001@\$0"
TYPE_PARAMS="$TYPE_PARAMS --groupListFile src/main/resources/k10plus-libraries-by-unique-iln.txt"
TYPE_PARAMS="$TYPE_PARAMS --ignorableFields 001@,001E,001L,001U,001U,001X,001X,002V,003C,003G,003Z,008G,017N,020F,027D,031B,037I,039V,042@,046G,046T,101@,101E,101U,102D,201E,201U,202D,1...,2..."
Expand Down
2 changes: 1 addition & 1 deletion common-script
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ if [ "${SCHEMA}" == "PICA" ]; then

# automatically set unless already set
[[ "$TYPE_PARAMS" =~ --marcFormat|-f ]] || TYPE_PARAMS="--marcFormat PICA_NORMALIZED $TYPE_PARAMS"
[[ "$TYPE_PARAMS" =~ --schemaType|-F ]] || TYPE_PARAMS="--schemaType PICA $TYPE_PARAMS"
[[ "$TYPE_PARAMS" =~ --schemaType|-w ]] || TYPE_PARAMS="--schemaType PICA $TYPE_PARAMS"
else
ALL_ANALYSES=validate,validate_sqlite,completeness,completeness_sqlite,classifications,authorities,tt_completeness,shelf_ready_completeness,serial_score,functional_analysis,pareto,marc_history
fi
Expand Down

0 comments on commit fb25e00

Please sign in to comment.