Skip to content

Commit

Permalink
process_mets.sh: allow skipping validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Jun 29, 2023
1 parent 46b1fa9 commit ed2e8be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion process_mets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ parse_args() {
PROCESS_ID=
TASK_ID=
WORKFLOW=/workflows/ocr-workflow-default.sh
VALIDATE=1
PAGES=
IMAGES_GRP=DEFAULT
RESULT_GRP=FULLTEXT
Expand All @@ -30,6 +31,7 @@ $0 [OPTIONS] METS
where OPTIONS can be any/all of:
--workflow FILE workflow file to use for processing, default:
$WORKFLOW
--no-validate skip comprehensive validation of workflow results
--pages RANGE selection of physical page range to process
--img-grp GRP fileGrp to read input images from, default:
$IMAGES_GRP
Expand All @@ -51,6 +53,7 @@ ENVIRONMENT VARIABLES:
EOF
exit;;
--workflow) WORKFLOW="$2"; shift;;
--no-validate) VALIDATE=0;;
--img-grp) IMAGES_GRP="$2"; shift;;
--ocr-grp) RESULT_GRP="$2"; shift;;
--pages) PAGES="$2"; shift;;
Expand Down Expand Up @@ -88,7 +91,7 @@ init "$@"

post_sync_workdir

post_validate_workdir
if ((VALIDATE)); then post_validate_workdir; fi

post_process_to_mets

Expand Down

0 comments on commit ed2e8be

Please sign in to comment.