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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-1 / +6 lines)
Lines 196-202 Link Here
196
            [% END %]
196
            [% END %]
197
197
198
            <td>
198
            <td>
199
                <a class="cancel-hold" title="Cancel hold" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-id="[% hold.reserve_id | html %]" href="request.pl?action=cancel&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
199
                <a class="cancel-hold" title="Cancel hold"
200
                data-borrower-name="[% hold.patron.firstname | html %] [% hold.patron.surname | html %] ([% hold.patron.cardnumber | html %])"
201
                data-biblio-title="[% hold.biblio_title | html %]"
202
                data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]"
203
                data-id="[% hold.reserve_id | html %]"
204
                href="request.pl?action=cancel&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
200
                    <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
205
                    <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
201
                </a>
206
                </a>
202
            </td>
207
            </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +6 lines)
Lines 1038-1044 Link Here
1038
                </div>
1038
                </div>
1039
1039
1040
                <div class="modal-body">
1040
                <div class="modal-body">
1041
                    <p>Are you sure you want to cancel this hold?</p>
1041
                    <p id="cancellation-text"></p>
1042
1042
1043
                    <fieldset class="action">
1043
                    <fieldset class="action">
1044
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1044
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
Lines 1533-1538 Link Here
1533
            let cancel_link;
1533
            let cancel_link;
1534
            $(".cancel-hold").on("click",function(e) {
1534
            $(".cancel-hold").on("click",function(e) {
1535
                e.preventDefault;
1535
                e.preventDefault;
1536
                var borrower_name = $(this).data('borrower-name');
1537
                var biblio_title = $(this).data('biblio-title');
1538
1539
                $("#cancellation-text").html(`Are you sure you want to cancel hold of <b>${biblio_title}</b> for <b>${borrower_name}</b>?`);
1540
1536
                cancel_link = $(this);
1541
                cancel_link = $(this);
1537
                $('#cancelModal').modal();
1542
                $('#cancelModal').modal();
1538
                return false;
1543
                return false;
(-)a/reserve/request.pl (-1 / +1 lines)
Lines 695-700 foreach my $biblionumber (@biblionumbers) { Link Here
695
        $reserve{'date'}           = $res->reservedate;
695
        $reserve{'date'}           = $res->reservedate;
696
        $reserve{'borrowernumber'} = $res->borrowernumber();
696
        $reserve{'borrowernumber'} = $res->borrowernumber();
697
        $reserve{'biblionumber'}   = $res->biblionumber();
697
        $reserve{'biblionumber'}   = $res->biblionumber();
698
        $reserve{'biblio_title'}   = $biblio->title;
698
        $reserve{'patron'}         = $res->borrower;
699
        $reserve{'patron'}         = $res->borrower;
699
        $reserve{'notes'}          = $res->reservenotes();
700
        $reserve{'notes'}          = $res->reservenotes();
700
        $reserve{'waiting_date'}   = $res->waitingdate();
701
        $reserve{'waiting_date'}   = $res->waitingdate();
701
- 

Return to bug 23479