From 0b37498094a8ce727c576a5a9bf26517fa72afbd Mon Sep 17 00:00:00 2001 From: Lucas Gass 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 Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit a68021a2387ff1caf854c17fc5331e85926c1f7e) Signed-off-by: Andrew Fuerste-Henry --- 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 c48987677e..246c4fe0dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -20,6 +20,7 @@ [% END %]     + Print hold/transfer slip [%- SET first_priority = 0 -%] [%- SET found_holds = 0 -%] @@ -207,6 +208,7 @@ [%- END -%] + [% END %] 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 0e84ccaf18..d46277baaf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1591,6 +1591,11 @@ stickyClass: "floating" }); }); + $('.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; + }) [% END %] -- 2.39.5