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 190-196 Link Here
190
        [%- END -%]
190
        [%- END -%]
191
            [%- END -%]
191
            [%- END -%]
192
            <td>
192
            <td>
193
                <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 %]">
193
                <a class="cancel-hold" title="Cancel hold"
194
                data-borrower-name="[% hold.patron.firstname | html %] [% hold.patron.surname | html %] ([% hold.patron.cardnumber | html %])"
195
                data-biblio-title="[% hold.biblio_title | html %]"
196
                data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]"
197
                data-id="[% hold.reserve_id | html %]"
198
                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 %]">
194
                    <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
199
                    <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
195
                </a>
200
                </a>
196
            </td>
201
            </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +6 lines)
Lines 1043-1049 Link Here
1043
                </div>
1043
                </div>
1044
1044
1045
                <div class="modal-body">
1045
                <div class="modal-body">
1046
                    <p>Are you sure you want to cancel this hold?</p>
1046
                    <p id="cancellation-text"></p>
1047
1047
1048
                    <fieldset class="action">
1048
                    <fieldset class="action">
1049
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1049
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
Lines 1560-1565 Link Here
1560
            let cancel_link;
1560
            let cancel_link;
1561
            $(".cancel-hold").on("click",function(e) {
1561
            $(".cancel-hold").on("click",function(e) {
1562
                e.preventDefault;
1562
                e.preventDefault;
1563
                var borrower_name = $(this).data('borrower-name');
1564
                var biblio_title = $(this).data('biblio-title');
1565
1566
                $("#cancellation-text").html(`Are you sure you want to cancel hold of <b>${biblio_title}</b> for <b>${borrower_name}</b>?`);
1567
1563
                cancel_link = $(this);
1568
                cancel_link = $(this);
1564
                $('#cancelModal').modal();
1569
                $('#cancelModal').modal();
1565
                return false;
1570
                return false;
(-)a/reserve/request.pl (-1 / +1 lines)
Lines 692-697 foreach my $biblionumber (@biblionumbers) { Link Here
692
        $reserve{'date'}           = $res->reservedate;
692
        $reserve{'date'}           = $res->reservedate;
693
        $reserve{'borrowernumber'} = $res->borrowernumber();
693
        $reserve{'borrowernumber'} = $res->borrowernumber();
694
        $reserve{'biblionumber'}   = $res->biblionumber();
694
        $reserve{'biblionumber'}   = $res->biblionumber();
695
        $reserve{'biblio_title'}   = $biblio->title;
695
        $reserve{'patron'}         = $res->borrower;
696
        $reserve{'patron'}         = $res->borrower;
696
        $reserve{'notes'}          = $res->reservenotes();
697
        $reserve{'notes'}          = $res->reservenotes();
697
        $reserve{'waiting_date'}   = $res->waitingdate();
698
        $reserve{'waiting_date'}   = $res->waitingdate();
698
- 

Return to bug 23479