a7771f0503
Clicking on "Delete record" while there are existent subscriptions no longer delete the record and the subscription. Instead an alert box inform the user that he must delete all subscription before deleting the record. 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) Attempt to 'Delete record', you should recieve an error message stating to delete all subscriptions before deleting record. 6) Sign off. Sponsored by: Lunds Universitetsbibliotek Signed-off-by: Samu Heiskanen <samu.heiskanen@hypernova.fi> 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>
25 lines
1 KiB
PHP
25 lines
1 KiB
PHP
[% USE Context %]
|
|
<!-- catalog-strings.inc -->
|
|
<script>
|
|
/* Some required variables from the template */
|
|
var biblionumber = [% biblionumber | html %];
|
|
var count = [% count | html %];
|
|
var holdcount = [% holdcount | html %];
|
|
[% SET orders = biblio.orders %]
|
|
[% SET current = Context.Scalar(orders, "filter_by_current") %]
|
|
[% SET cancelled = Context.Scalar(orders, "filter_by_cancelled") %]
|
|
var countorders = [% current.count || 0 | html %];
|
|
var countdeletedorders = [% cancelled.count || 0 | html %];
|
|
var subscriptionscount = [% biblio.subscriptions.count || 0 | html %];
|
|
var searchid = '[% searchid | html %]';
|
|
|
|
/* provide Z3950 search points */
|
|
function GetZ3950Terms(){
|
|
var strQuery="&frameworkcode=";
|
|
[% FOREACH z3950_search_param IN z3950_search_params %]
|
|
strQuery += "&" + "[% z3950_search_param.name |uri %]" + "=" + "[% z3950_search_param.value |uri %]";
|
|
[% END %]
|
|
return strQuery;
|
|
}
|
|
</script>
|
|
<!-- / catalog-strings.inc -->
|