Bugzilla – Attachment 113589 Details for
Bug 9565
Deleting a record should alert or fail if there are current subscriptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9565: Deleting a biblio should alert/fail if there are existent subscriptions
Bug-9565-Deleting-a-biblio-should-alertfail-if-the.patch (text/plain), 2.11 KB, created by
Timothy Alexis Vass
on 2020-11-13 09:55:11 UTC
(
hide
)
Description:
Bug 9565: Deleting a biblio should alert/fail if there are existent subscriptions
Filename:
MIME Type:
Creator:
Timothy Alexis Vass
Created:
2020-11-13 09:55:11 UTC
Size:
2.11 KB
patch
obsolete
>From ed73e4d77df5dd18ac594015cece2aa89c5969dd Mon Sep 17 00:00:00 2001 >From: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se> >Date: Fri, 13 Nov 2020 09:47:32 +0000 >Subject: [PATCH] Bug 9565: Deleting a biblio should alert/fail if there are > existent subscriptions > >Currently Koha will delete a biblio record if there are existent serial subscriptions. >This patch will prevent deleting the biblio until attached subscriptions are removed. > >To test: >1) Add a subscription to a biblio, or check a biblio which has one attached already. >2) Remove all items if there are any. >3) Apply patch. >4) Confirm that the 'Delete record' item is disabled in the list. >5) Sign off. > >Sponsored by: Lunds Universitetsbibliotek >--- > koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index 4d07b26ce6..7413fbd171 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -69,6 +69,8 @@ CAN_user_serials_create_subscription ) %] > [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] > [% IF ( count ) %] > <li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count | html %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li> >+ [% ELSIF ( biblio.subscriptions.count ) %] >+ <li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% biblio.subscriptions.count | html %] subscription(s) are attached to this record. You must delete all subscriptions before deleting this record." href="#">Delete record</a></li> > [% ELSE %] > <li><a id="deletebiblio" data-order-manage="[% CAN_user_acquisition_order_manage | html %]" href="#">Delete record</a></li> > [% END %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9565
:
113589
|
113591
|
126821
|
126905
|
128051
|
128160
|
128163
|
128164
|
128165
|
128278
|
128279
|
128280
|
128281
|
128764
|
128832