Bug 11395: Add a batch record modification
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 12 Dec 2013 20:13:53 +0000 (21:13 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Mar 2015 13:55:15 +0000 (14:55 +0100)
commit8f77bee494707194bedb7a599be6ca55df119826
tree60b73221c86110a80008f282da4ce03ce28674b9
parentce2ea3e8091e699f6fc78e4d0f6569a707df299b
Bug 11395: Add a batch record modification

This patch offers a new tool to modify records in a batch.

This feature adds:
- a new pl/tt files tools/batch_record_modification
- a new permission: tools > records_batchmod

Test plan for biblios:
0/ Create a new marc modification template with some actions.
1/ Generate a list of biblionumbers you want to modify.
There are two ways to generate a list of biblionumbers:
- using the basket: do a search, add some biblio to your basket, open
  the basket and click on the "Action" button > "Modify"
- generating a list from a report
2/ On the "Batch record modification" tool verify:
- information is correct.
- the preview link show you the needed record.
3/ After clicking on the "Modify selected recors" button, verify
the records have been modified as you wanted.

Test plan for authority:
0/ Create a new marc modification template with some actions.
1/ Generate a list of authid using a report:
2/ On the "Batch record modification" tool verify:
- authorities are display with the summary.
- the preview link show you the needed record.
3/ After clicking on the "Modify selected recors" button, verify
the records have been modified as you wanted.

Catch of errors:
if an error occurs during the modification process, the tool
displays an error message.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt [new file with mode: 0644]
tools/batch_record_modification.pl [new file with mode: 0755]