]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1329872 - marc_export exit when required IDs are missing
authorJosh Stompro <stomproj@larl.org>
Thu, 3 Aug 2023 19:58:52 +0000 (14:58 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 18 Mar 2024 16:18:07 +0000 (16:18 +0000)
commit7b1aba121284897a0797a92538d226a0f90a9205
tree841eeff58b599727c89d347e7e174394245f6d84
parentdad1c1d7f9d488e67096849b22c01f3632ae8913
LP#1329872 - marc_export exit when required IDs are missing

The marc_export script would handle being passed invalid or empty
IDs as if you had the --all flag selected.  So if you accidentally
generated a file with a list of BIB id numbers that was empty and
passed it to the script, you would end up with an export of all bibs
in the system instead of an empty export.

Testing Notes:

=== Before fix ===

Create an empty file, or a file that just contains "id".

$ touch input1
$ echo "id" > input2

All these commands should result in a full export of all bibs.

$ cat ./input1 | marc_export
$ cat ./input2 | marc_export
$ echo "id" | marc_export
$ cat ./input1 | marc_export --pipe

=== After fix ===

Try the same commands as above, and the marc_export
script should error out each time.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/support-scripts/marc_export.in
docs/RELEASE_NOTES_NEXT/Administration/lp1329872_marc_export_ids_required.adoc [new file with mode: 0644]