Bug 9565: (follow-up) Adapt batch record deletion tool
authorMarion Durand <marion.durand@biblibre.com>
Thu, 2 Dec 2021 12:41:11 +0000 (13:41 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 21 Dec 2021 13:34:27 +0000 (13:34 +0000)
commit33adad3d5db177e98471d3946822dbadf278ebe4
treea1232ca6ae50c7ca3b5a3f0d5d141320ffdb97c3
parentac02f6c662dc1f3f51cd4220820331cfa2cda64a
Bug 9565: (follow-up) Adapt batch record deletion tool

Add a column "Subscriptions" to the batch deletion tools
Add a link on the number of subscription to the search page with all the subscriptions of the record
Add a button in the toolbar to select only biblio record without subscriptions

The changes are only on display
It is still possible to delete records that are attached to subscriptions from this tool (as it is possible for records with attached items)

To test:
1) Go to the batch record deletion (in tools)
2) Select a list of record numbers (select some with one or more subscription)
3) Click on Continue
4) Check that there is no column named "Subscription" and that there is no button "Select without subscription" in the toolbar
5) Apply patch
6) Repeat steps 1 to 3
7a) Check that there is a column named "Subscription" fill with the number of subscriptions attached to the record
7b) Check that the link in the subscriptions column send you to the search page with the subscriptions linked to this record
7c) Check that there is a button "Select without subscription" in the toolbar that selects record with no subscription attached
8) Sign off

Signed-off-by: Frank Hansen <frank.hansen@ub.lu.se>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
tools/batch_delete_records.pl