Bug 18201: Export data -Fix "Remove non-local items" option and add "Removes non...
commit9f6ce85bcaac4fd8ee1182f42834389464e55f9c
authorNick Clemens <nick@bywatersolutions.com>
Thu, 13 Apr 2017 14:21:50 +0000 (13 10:21 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jan 2018 15:44:37 +0000 (15 16:44 +0100)
tree5d19606a0f63094d9410ec21a7181b5470cc6582
parentbf354d10cc9cb4a93714ae4a9b787ef34ca128f5
Bug 18201: Export data -Fix "Remove non-local items" option and add "Removes non-local records" option for existing functionality

It turns out the modules had the option expected  built in, we just didn't call
it. This patch set expands the options for passing to the export.

To test:
1 - Go to Tools->Export data
2 - Perform an export and check 'Remove non-local items'
3 - Note that file contains only 'local' records, but includes all items
on those records
4 - Apply patch
5 - Note Tools->Export data has a new option to remove records not owned
by logged in branch
6 - Export as before checking records option, file should be as before
7 - Now check 'Remove items not owned by logged in branch'
8 - File should now only have local items (may have empty records)
9 - Check both boxes and recieve only 'local' records and items

Signed-off-by: Scott Kehoe <scott@masslibsystem.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 008920eaeb77ffbabece855682e157936bb89c8b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Exporter/Record.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt
tools/export.pl