LP1754455 Add Ability to remove fields or subfields in marc_export
authorDan Pearl <dpearl@cwmars.org>
Fri, 16 Mar 2018 17:14:03 +0000 (13:14 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 21 Feb 2023 15:16:22 +0000 (10:16 -0500)
commit029c6c855b62e667e77cecc61226e864826ecd62
treee728edfeb263a784d0b03bd11a0acac0f5144d79
parent2bb8b48283ae32e685c0a3061f8482cf0708b048
LP1754455 Add Ability to remove fields or subfields in marc_export

This commit adds a --strip option to marc_export that allows fields
and/or subfields to be removed from MARC records on export.

To test: Try all forms of --strip:
    --strip <tag> e.g. --strip 856
    --strip <tag>/<sub>   e.g.  --strip 856/0
    --strip /<sub>   e.g. --strip /0

Try some regular expressions:
    --strip 8..
    --strip /[ab0]

For all tests, compare the regular output to the stripped otput and
the plain (unstripped) output.

Signed-off-by: Dan Pearl <dpearl@cwmars.org>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/support-scripts/marc_export.in
docs/RELEASE_NOTES_NEXT/Administration/marc_export_strip.adoc [new file with mode: 0644]