Bug 12309 - Add more fields to batch patron modification tool
authorOwen Leonard <oleonard@myacpl.org>
Thu, 22 May 2014 13:23:45 +0000 (09:23 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 1 Sep 2014 14:07:01 +0000 (11:07 -0300)
commit31847c7bd5a4d6fd77bf6c15e08764a44658a05e
tree163eb2a029dbf59a75a7d13636d4ae5852eceae6
parent7a325b55d16fa9e2a5e8b725d5eb00844d674451
Bug 12309 - Add more fields to batch patron modification tool

It would be helpful to be able to use the batch patron modification tool
to update city, state, zipcode, and country. This patch adds this
functionality.

This patch corrects an error in the batch modification script which
would have incorrectly marked first name as required if surname was
required.

This patch also converts the table sorting configuration to use table
header class names instead of index-based sorting for columns containing
dates.

To test, apply the patch and submit a batch of patrons to the batch
patron modification tool (Tools -> Batch patron modification).

In the list of patrons which will be modified you should see columns for
city, state, zipcode, and country. Table sorting should work correctly
without errors, including the registration and expiry date columns.

In the list of fields which can be batch modified you should see inputs
for city, state zipcode, and country. These fields should correctly
reflect mandatory/not mandatory based on the BorrowerMandatoryField
system preference.

Submit batch changes to a variety of fields and confirm that changes are
applied correctly. On the page of results the table should correctly
show all fields and be sorted correctly.

Signed-off-by: cachan <pierre.lorgue@ens-cachan.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
tools/modborrowers.pl