View | Details | Raw Unified | Return to bug 9565
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc (+1 lines)
Lines 10-15 Link Here
10
    [% SET cancelled = Context.Scalar(orders, "filter_by_cancelled") %]
10
    [% SET cancelled = Context.Scalar(orders, "filter_by_cancelled") %]
11
    var countorders = [% current.count || 0 | html %];
11
    var countorders = [% current.count || 0 | html %];
12
    var countdeletedorders = [% cancelled.count || 0 | html %];
12
    var countdeletedorders = [% cancelled.count || 0 | html %];
13
    var subscriptionscount = [% biblio.subscriptions.count || 0 | html %];
13
    var searchid = '[% searchid | html %]';
14
    var searchid = '[% searchid | html %]';
14
15
15
    /* provide Z3950 search points */
16
    /* provide Z3950 search points */
(-)a/koha-tmpl/intranet-tmpl/prog/js/catalog.js (-1 / +2 lines)
Lines 44-49 function confirm_deletion(link) { Link Here
44
        }
44
        }
45
    } else if ( holdcount > 0 ) {
45
    } else if ( holdcount > 0 ) {
46
        is_confirmed = confirm( __("%s holds(s) for this record. Are you sure you want to delete this record?").format(holdcount));
46
        is_confirmed = confirm( __("%s holds(s) for this record. Are you sure you want to delete this record?").format(holdcount));
47
    } else if (subscriptionscount > 0){
48
        is_confirmed = alert(__("%s subscription(s) are attached to this record. You must delete all subscription before deleting this record.").format(subscriptionscount));
47
    } else {
49
    } else {
48
        is_confirmed = confirm( __("Are you sure you want to delete this record?") );
50
        is_confirmed = confirm( __("Are you sure you want to delete this record?") );
49
    }
51
    }
50
- 

Return to bug 9565