marc_export should have a --pipe option to force acceptance of a list of ids on standard input
Bug #1940662 reported by
Jason Stephenson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
There are times when you want to export MARC records with holdings for a single library from a list of bibliographic record ids with marc_export. That is currently not possible. If you specify the --library option, then standard input is ignored.
This can be repaired by adding a --pipe option to force marc_export to read from standard input when certain options are given.
Changed in evergreen: | |
milestone: | 3.8-beta → 3.next |
tags: |
added: cat-importexport removed: marc |
Changed in evergreen: | |
assignee: | nobody → Jason Etheridge (phasefx) |
Changed in evergreen: | |
assignee: | Jason Etheridge (phasefx) → Josh Stompro (u-launchpad-stompro-org) |
Changed in evergreen: | |
assignee: | nobody → Jason Stephenson (jstephenson) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Branch is here: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ dyrcona/ lp1940662- marc_export- pipe
In case it isn't clear from the bug description or commit message, this feature is useful if you want to export as subset of a single library's holdings and exclude holdings from other libraries.
One way that I plan to use this in productionon is like so:
/usr/bin/psql -U evergreen -h db2 -A -q -t -c '<some query to find the records I want>' | marc_export --pipe --items --library SHORTNAME > file.mrc