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)
committerJason Boyer <JBoyer@equinoxOLI.org>
Fri, 18 Nov 2022 13:37:00 +0000 (08:37 -0500)
commitb007539b4c5e6823ebe2272f159c0f4047b98d84
tree2e65afc9b9b626112b4a941c03f0a5e1a7fa4f55
parent4c1ceb3896b4d76a58be2ae3da57c1a4fa46f878
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>
Open-ILS/src/support-scripts/marc_export.in
docs/RELEASE_NOTES_NEXT/Administration/marc_export_strip.adoc [new file with mode: 0644]