https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42864

--- Comment #1 from Jan Kissig <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to