LP#2015484: add --exclude-hidden option to marc_export
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 3 Apr 2023 22:19:21 +0000 (18:19 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 6 Apr 2023 15:37:29 +0000 (11:37 -0400)
commitd1a6702e280a8cef9924b106ad44d587f18356f9
tree78f88ca2b9c8da8fc0e70f38168df7e7cc813c11
parent2c7575d56325c564cee8841c37c46a4190b517ce
LP#2015484: add --exclude-hidden option to marc_export

This option, when used in conjunction with the various
options that export items, excludes ones that are suppressed
from the OPAC.

To test
-------
[1] Various make some items OPAC-hidden via the four
    ways that this can be done in Evergreen (i.e.,
    org_unit, item, item status, or shelving location).
[2] Apply the patch and run marc_export with
    --exclude-hidden, --items, and/or combinations of
    --library and --descendants.
[3] Verify that the hidden items are not emitted in
    the 852 fields.
[4] Also verify that bibs that have no visible items
    are also excluded.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/support-scripts/marc_export.in
docs/RELEASE_NOTES_NEXT/Administration/marc_export_exclude_hidden.adoc [new file with mode: 0644]