Koha-clms/Koha/Template/Plugin
Tomas Cohen Arazi 38c461f258 Bug 15023: Allow patron anonymize/bulk delete tool to be limited by branch
This patch makes the bulk patron delete/anonymize functionality be limited
by branch. It does so by adding a branch selection dropdown and using the
already defined APIs for filtering by branch.

It makes use of C4::Branches::onlymine for the IndependentBranches use case
and it adds a way to call it from the Branches template plugin.

To test:
- Apply the patch
1) Have a superlibrarian user
- Go to Tools > Batch patron deletion/anonymization
=> SUCCESS: Verify you can pick a branch (or all of them)
- Try doing some operations
=> SUCCESS: Verify the selection is respected, and carried around all steps
2) Have a user with tools/delete_anonymize_patrons permissions
- Set IndependentBranches on
- Go to Tools > Batch patron deletion/anonymization
=> SUCCESS: It picks the librarian's branch and doesn't let us choose another one
- Try doing some operations
=> SUCCESS: Verify the user's branch is respected, and carried around all steps
- Sign off :-D

Sponsored-by: VOKAL
Signed-off-by: Liz Rea <liz@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-08-24 11:37:02 +00:00
..
AudioAlerts.pm Bug 11431: (QA followup) Move AudioAlerts to a separate plugin 2015-11-04 12:33:10 -03:00
AuthorisedValues.pm Bug 16157: Move the selected flag from GetAuthorisedValues to the templates 2016-04-07 00:16:09 +00:00
Biblio.pm Bug 14557: Add holds count to holds tab 2015-08-26 10:56:02 -03:00
Borrowers.pm Bug 16849: Move IsDebarred to Koha::Patron->is_debarred 2016-07-15 18:08:14 +00:00
Branches.pm Bug 15023: Allow patron anonymize/bulk delete tool to be limited by branch 2016-08-24 11:37:02 +00:00
Cache.pm Bug 16011: $VERSION - Remove use vars qw(); 2016-03-24 17:20:39 +00:00
Categories.pm Bug 14659: (QA followup) switch to using Koha::Patron::Categories 2016-03-02 04:29:39 +00:00
ColumnsSettings.pm Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
ItemTypes.pm Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
Koha.pm Bug 11431: (QA followup) Move AudioAlerts to a separate plugin 2015-11-04 12:33:10 -03:00
KohaDates.pm Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
Price.pm Bug 12478: fix issues caused by rebasing 2016-04-26 20:20:06 +00:00
To.pm Bug 14044: Escape json strings for patron searches 2015-05-06 10:29:08 -03:00