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.