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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 11 Dec 2021 07:15:30 +0000 (21:15 -1000)
commit0b66310580e71223bc66168a8ee3b2c8e7299b5d
treef03b97590ce015efe3665b0b8f5001d859daf811
parenta7771f0503e8913753a6b47c904797c2b59bdab4
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: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
tools/batch_delete_records.pl