Bug 29338: Add print hold/transfer button to request.tt
1. Apply patch 2. Make some holds, have some item level and some bib level 3. On request.tt notice a new column on the holds_table called 'Print hold/transfer slip' 4. Make sure the button works and takes you to the proper hold/transfer slip 5. Make sure it works well with both item/bib level holds Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
6a0d6b8bc3
commit
b1bcf39200
2 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
|
<th>Print hold/transfer slip</th>
|
||||||
</tr>
|
</tr>
|
||||||
[%- SET first_priority = 0 -%]
|
[%- SET first_priority = 0 -%]
|
||||||
[%- SET found_holds = 0 -%]
|
[%- SET found_holds = 0 -%]
|
||||||
|
@ -221,6 +222,7 @@
|
||||||
<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&where=down&first_priority=[% first_priority | uri %]&last_priority=[% last_priority | uri %]&prev_priority=0&next_priority=1&borrowernumber=[% hold.borrowernumber | uri %]&biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]&reserve_id=[% hold.reserve_id | uri %]&date=[% hold.date | uri %]'">
|
<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&where=down&first_priority=[% first_priority | uri %]&last_priority=[% last_priority | uri %]&prev_priority=0&next_priority=1&borrowernumber=[% hold.borrowernumber | uri %]&biblionumber=[% hold.biblionumber | uri %]&itemnumber=[% hold.itemnumber | uri %]&reserve_id=[% hold.reserve_id | uri %]&date=[% hold.date | uri %]'">
|
||||||
[%- END -%]
|
[%- END -%]
|
||||||
</td>
|
</td>
|
||||||
|
<td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id=[% hold.reserve_id | html %]></td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1608,6 +1608,11 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
$('.printholdslip').click(function(){
|
||||||
|
var reserve_id = $(this).attr('data-reserve_id');
|
||||||
|
window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
|
||||||
|
return false;
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue