From 8e04ea7282d730bfe3f617d0c296a63ede53c547 Mon Sep 17 00:00:00 2001 From: simith Date: Thu, 26 Feb 2015 13:21:21 -0500 Subject: [PATCH] Bug 11882: Add a new button to the checkout confirmation dialog when checking out a reserved item MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds a "Don't Check Out and Print Slip" button to the dialog that appears when trying to checkout a reserved item. Test case : * Put a hold on an item for User A. * Try to check out it item with User B. * The "Please confirm checkout" box should appear. The "Don't Check Out and Print Slip" button should appear in this box. * Click on the "Don't Check Out and Print Slip" button. * A print popup will appear Signed-off-by: Nick Followed test plan, works as expected. Signed-off-by: Marc Véron Signed-off-by: Tomas Cohen Arazi Signed-off-by: Tomas Cohen Arazi --- circ/circulation.pl | 7 +++++++ .../prog/en/modules/circ/circulation.tt | 21 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 7f3b61236f..1071f4f330 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -381,6 +381,13 @@ if ($barcode) { my ( $od, $issue, $fines ) = GetMemberIssuesAndFines($borrowernumber); $template->param( issuecount => $issue ); + + if ($question->{RESERVE_WAITING} or $question->{RESERVED}){ + $template->param( + reserveborrowernumber => $question->{'resborrowernumber'}, + itembiblionumber => $getmessageiteminfo->{'biblionumber'} + ); + } } # reload the borrower info for the sake of reseting the flags..... diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 5485882b3d..0aa3f86e3e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -74,6 +74,9 @@ function toggle_onsite_checkout(){ } } +function Dopop(link) { + var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); +} $(document).ready(function() { $('#mainform').on('submit',function() { if ($("#barcode") && $("#barcode").val()) { @@ -356,6 +359,24 @@ $(document).ready(function() { [% END %] +[% IF ( RESERVED ) %] +
+ + + + +
+[% END %] + +[% IF ( RESERVE_WAITING ) %] +
+ + + + +
+[% END %] +
[% IF (forceallow) %][% END %] -- 2.39.5