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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (+2 lines)
Lines 21-26 Link Here
21
        [% END %]
21
        [% END %]
22
        <th>&nbsp;</th>
22
        <th>&nbsp;</th>
23
        <th>&nbsp;</th>
23
        <th>&nbsp;</th>
24
        <th>Print hold/transfer slip</th>
24
    </tr>
25
    </tr>
25
    [%- SET first_priority = 0 -%]
26
    [%- SET first_priority = 0 -%]
26
    [%- SET found_holds = 0 -%]
27
    [%- SET found_holds = 0 -%]
Lines 221-226 Link Here
221
                    <input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]" onclick="window.location.href='request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | uri %]&amp;last_priority=[% last_priority | uri %]&amp;prev_priority=0&amp;next_priority=1&amp;borrowernumber=[% hold.borrowernumber | uri %]&amp;biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]&amp;reserve_id=[% hold.reserve_id | uri %]&amp;date=[% hold.date | uri %]'">
222
                    <input type="button" id="revert_hold_[% hold.reserve_id | html %]" value="[% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %]" onclick="window.location.href='request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | uri %]&amp;last_priority=[% last_priority | uri %]&amp;prev_priority=0&amp;next_priority=1&amp;borrowernumber=[% hold.borrowernumber | uri %]&amp;biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]&amp;reserve_id=[% hold.reserve_id | uri %]&amp;date=[% hold.date | uri %]'">
222
                [%- END -%]
223
                [%- END -%]
223
            </td>
224
            </td>
225
            <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id=[% hold.reserve_id | html %]></td>
224
        </tr>
226
        </tr>
225
    [% END %]
227
    [% END %]
226
</table>
228
</table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +5 lines)
Lines 1607-1612 Link Here
1607
            });
1607
            });
1608
1608
1609
        });
1609
        });
1610
        $('.printholdslip').click(function(){
1611
                var reserve_id = $(this).attr('data-reserve_id');
1612
                window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
1613
                return false;
1614
        })
1610
    </script>
1615
    </script>
1611
[% END %]
1616
[% END %]
1612
1617
1613
- 

Return to bug 29338