Bugzilla – Attachment 34605 Details for
Bug 11882
Add a new button to the checkout confirmation dialog when checking out an on hold item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[Signed-off] Bug 11882 - Add a new button to the checkout confirmation dialog when checking out a reserved item
Signed-off-Bug-11882---Add-a-new-button-to-the-che.patch (text/plain), 3.88 KB, created by
Marc Véron
on 2014-12-20 16:49:43 UTC
(
hide
)
Description:
[Signed-off] Bug 11882 - Add a new button to the checkout confirmation dialog when checking out a reserved item
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2014-12-20 16:49:43 UTC
Size:
3.88 KB
patch
obsolete
>From 09258d25dd7c02b395d55b84fd3b6204abd37fd0 Mon Sep 17 00:00:00 2001 >From: simith <simith@inlibro.com> >Date: Wed, 3 Sep 2014 08:57:26 -0400 >Subject: [PATCH] [Signed-off] 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=UTF-8 >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 > >Followed test plan. Works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> >--- > circ/circulation.pl | 11 ++++++++++ > .../prog/en/modules/circ/circulation.tt | 21 ++++++++++++++++++++ > 2 files changed, 32 insertions(+) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 6e9f449..dc41405 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -554,6 +554,17 @@ my $relatives_issues_count = > Koha::Database->new()->schema()->resultset('Issue') > ->count( { borrowernumber => \@relatives } ); > >+(my $returned, my $messages) = AddReturn( $barcode, $branch); >+if ( $messages->{'ResFound'}) { >+ my $reserve = $messages->{'ResFound'}; >+ # get biblio description >+ my $biblio = GetBiblioFromItemNumber($reserve->{'itemnumber'}); >+ $template->param( >+ reserveborrowernumber => $reserve->{'borrowernumber'}, >+ itembiblionumber => $biblio->{'biblionumber'} >+ ); >+} >+ > $template->param( > lib_messages_loop => $lib_messages_loop, > bor_messages_loop => $bor_messages_loop, >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 6963c90..eb9477f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -59,6 +59,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() { > $('#barcode').on('keypress',function(event) { >@@ -324,6 +327,24 @@ $(document).ready(function() { > </form> > [% END %] > >+[% IF ( RESERVED ) %] >+<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> >+ <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="duedatespec" value="[% duedatespec %]" /> >+ <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" /> >+ <input class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip');this.form.submit();" value="Don't Check Out and Print Slip (P)"> >+</form> >+[% END %] >+ >+[% IF ( RESERVE_WAITING ) %] >+<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> >+ <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="duedatespec" value="[% duedatespec %]" /> >+ <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" /> >+ <input class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip');this.form.submit();" value="Don't Check Out and Print Slip (P)"> >+</form> >+[% END %] >+ > <form method="get" action="/cgi-bin/koha/circ/circulation.pl"> > [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] > <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >-- >1.7.10.4
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 Raw
Actions:
View
Attachments on
bug 11882
:
25748
|
25819
|
31342
|
31400
|
33156
|
34420
|
34421
|
34605
|
35315
|
36195
|
36196
|
36197
|
36545
|
40692