[Bug 42864] New: export_records.pl doesn't allow multiple item types like the export tool in staff
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42864 Bug ID: 42864 Summary: export_records.pl doesn't allow multiple item types like the export tool in staff Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: bibliothek@th-wildau.de QA Contact: testopia@bugs.koha-community.org CC: jake.deery@openfifth.co.uk, robin@catalyst.net.nz Target Milestone: --- When using the staff export function via More -> cataloging -> Export catalog data (tools/export.pl) it is possible to export several item types at once. The CLI-tool /usr/share/koha/bin/export_records.pl allows --itemtype to be set but only the last item type is considered. The cli tool should also allow multiple item types to be exported in one run. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42864 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42864 --- Comment #1 from Jan Kissig <bibliothek@th-wildau.de> --- Created attachment 200588 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200588&action=edit Bug 42864: Allow export_records to export multiple item types This patch enhances export_records.pl to export multiple item types at once to reflect the same behavior as the export function in the staff interface. Testplan (ktd): Based on system preference item-level_itypes the results may vary. Here default ktd setting was used. 1) staff interface a) Go to /cgi-bin/koha/tools/export.pl (More -> cataloging -> Export catalog data b) Select the following item types: Visual Materials, Music c) File format: XML d) Export bibliographic records The file should contain 50 records. 2) command line (ktd --shell) a) run perl misc/export_records.pl --itemtype=VM --format=xml grep -c "<record>" koha.mrc 20 b) run perl misc/export_records.pl --itemtype=MU --format=xml grep -c "<record>" koha.mrc 30 c) run perl misc/export_records.pl --itemtype=MU --itemtype=VM --format=xml grep -c "<record>" koha.mrc 20 d) apply patch e) run 2c) again perl misc/export_records.pl --itemtype=MU --itemtype=VM --format=xml grep -c "<record>" koha.mrc 50 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org