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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 17 Dec 2021 13:39:12 +0000 (08:39 -0500)
commitbb74569a301f1dfa3c0e1e98ed091f0e9745902a
tree5e2f6699fda4d70ed64866316dbce46fe5d5a85a
parent65daf7e477a6d58b5479606cc4cfdf951496b244
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
tools/batch_delete_records.pl