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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-1 / +5 lines)
Lines 91-94 function toUC(f) { Link Here
91
    var x=f.value.toUpperCase();
91
    var x=f.value.toUpperCase();
92
    f.value=x;
92
    f.value=x;
93
    return true;
93
    return true;
94
}
94
}
95
96
function confirmDelete(message) {
97
    return (confirm(message) ? true : false);
98
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +2 lines)
Lines 9-14 Link Here
9
[% INCLUDE 'calendar.inc' %]
9
[% INCLUDE 'calendar.inc' %]
10
<script type="text/javascript">
10
<script type="text/javascript">
11
    // <![CDATA[
11
    // <![CDATA[
12
var MSG_CONFIRM_DELETE_HOLD   = _("Are you sure you want to cancel this hold?");
12
var patron_homebranch = "[% borrower_branchname |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
13
var patron_homebranch = "[% borrower_branchname |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
13
var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
14
var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
14
    [% itemloo.itemnumber %]: {
15
    [% itemloo.itemnumber %]: {
Lines 462-468 function checkMultiHold() { Link Here
462
                    [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
463
                    [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
463
                    [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">[% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% itemloo.ExpectedAtLibrary %]
464
                    [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">[% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% itemloo.ExpectedAtLibrary %]
464
                    since
465
                    since
465
                    [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %][% END %]. <a class="info" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber %]&amp;CancelBorrowerNumber=[% itemloo.ReservedForBorrowernumber %]&amp;CancelItemnumber=[% itemloo.itemnumber %]"  onclick="if (window.confirm('Are you sure you want to delete this hold?')) {return true;} else {return false;}">Cancel hold</a>
466
                    [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %][% END %]. <a class="info" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber %]&amp;CancelBorrowerNumber=[% itemloo.ReservedForBorrowernumber %]&amp;CancelItemnumber=[% itemloo.itemnumber %]"  onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);">Cancel hold</a>
466
467
467
                    [% END %]
468
                    [% END %]
468
            [% ELSE %]
469
            [% ELSE %]
469
- 

Return to bug 11993