Bugzilla – Attachment 130964 Details for
Bug 29338
Reprinting holds slip with updated expiration date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29338: Add print hold/transfer button to request.tt
Bug-29338-Add-print-holdtransfer-button-to-request.patch (text/plain), 2.79 KB, created by
Jonathan Druart
on 2022-02-21 15:12:28 UTC
(
hide
)
Description:
Bug 29338: Add print hold/transfer button to request.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-02-21 15:12:28 UTC
Size:
2.79 KB
patch
obsolete
>From 6681c1d4c5a4b5503055381f33bef128efd37e62 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 27 Oct 2021 21:58:44 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 5 +++++ > 2 files changed, 7 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >index be1f6458cae..2ad46b08199 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >@@ -21,6 +21,7 @@ > [% END %] > <th> </th> > <th> </th> >+ <th>Print hold/transfer slip</th> > </tr> > [%- SET first_priority = 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 %]'"> > [%- END -%] > </td> >+ <td><input class="printholdslip" type="button" name="printholdslip" value="Print slip" data-reserve_id=[% hold.reserve_id | html %]></td> > </tr> > [% END %] > </table> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 90aaa8ef537..751747d32e2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -1609,6 +1609,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> > [% END %] > >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29338
:
127024
|
128849
|
130241
|
130242
| 130964 |
130965