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 / +7 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
                let borrower_name = $(this).data('borrower-name')?.trim();
1564
                let biblio_title = $(this).data('biblio-title')?.trim();
1565
1566
                let cancellation_text = _(`Are you sure you want to cancel hold on "${biblio_title}" for "${borrower_name}"?`);
1567
                $("#cancellation-text").html(cancellation_text);
1568
1563
                cancel_link = $(this);
1569
                cancel_link = $(this);
1564
                $('#cancelModal').modal();
1570
                $('#cancelModal').modal();
1565
                return false;
1571
                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