Bug 18201: Export data -Fix "Remove non-local items" option and add "Removes non...
authorNick Clemens <nick@bywatersolutions.com>
Thu, 13 Apr 2017 14:21:50 +0000 (10:21 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Dec 2017 16:10:03 +0000 (13:10 -0300)
commitb11597b16acdb76b2801c371c9a5df76d97824b9
tree7bdae2ca1fca22e91d54d063e477b9e5ea787d54
parent79c2848b142ed64336ccecd675d9cb2a38795900
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>
Koha/Exporter/Record.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt
tools/export.pl