Bugzilla – Attachment 66189 Details for
Bug 18251
SCO alerts - need a trigger for successful checkouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18251 - (QA Followup) Add 'renew' operation and check renewal vs checkout
Bug-18251---QA-Followup-Add-renew-operation-and-ch.patch (text/plain), 3.91 KB, created by
Kyle M Hall (khall)
on 2017-08-18 17:19:08 UTC
(
hide
)
Description:
Bug 18251 - (QA Followup) Add 'renew' operation and check renewal vs checkout
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-08-18 17:19:08 UTC
Size:
3.91 KB
patch
obsolete
>From 7b5262f826d73f9fe21df008248dbe95f6397428 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 28 Mar 2017 14:21:29 -0400 >Subject: [PATCH] Bug 18251 - (QA Followup) Add 'renew' operation and check > renewal vs checkout > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 6 +++--- > opac/sco/sco-main.pl | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >index d7ae78a..b785bb2 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >@@ -114,7 +114,7 @@ > > [% UNLESS ( renew ) %] > <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> >- <input type="hidden" name="op" value="checkout" /> >+ <input type="hidden" name="op" value="renew" /> > <input type="hidden" name="patronid" value="[% patronid %]" /> > <input type="hidden" name="barcode" value="[% barcode %]" /> > <input type="hidden" name="confirmed" value="1" /> >@@ -122,7 +122,7 @@ > </form> > [% ELSE %] > <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> >- <input type="hidden" name="op" value="checkout" /> >+ <input type="hidden" name="op" value="renew" /> > <input type="hidden" name="patronid" value="[% patronid %]" /> > <input type="hidden" name="barcode" value="[% barcode %]" /> > <input type="hidden" name="confirmed" value="1" /> >@@ -281,7 +281,7 @@ > <input type="hidden" name="patronid" value="[% patronid %]" /> > <input type="hidden" name="barcode" value="[% ISSUE.barcode %]" /> > [% IF ISSUE.can_be_renewed %] >- <input type="hidden" name="op" value="checkout" /> >+ <input type="hidden" name="op" value="renew" /> > <input type="hidden" name="confirmed" value="1" /> > [% UNLESS ( ISSUE.renew ) %] > <input type="submit" value="Renew item" name="confirm " class="btn renew" /> >diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl >index 2edf4a6..0a94d0b 100755 >--- a/opac/sco/sco-main.pl >+++ b/opac/sco/sco-main.pl >@@ -139,7 +139,7 @@ elsif ( $op eq "returnbook" && $allowselfcheckreturns ) { > my ($doreturn) = AddReturn( $barcode, $branch ); > $template->param( returned => $doreturn ); > } >-elsif ( $borrower and $op eq "checkout" ) { >+elsif ( $borrower && ( $op eq 'checkout' || $op eq 'renew' ) ) { > my $impossible = {}; > my $needconfirm = {}; > ( $impossible, $needconfirm ) = CanBookBeIssued( >@@ -182,7 +182,7 @@ elsif ( $borrower and $op eq "checkout" ) { > barcode => $barcode, > ); > } >- } elsif ( $needconfirm->{RENEW_ISSUE} ) { >+ } elsif ( $needconfirm->{RENEW_ISSUE} || $op eq 'renew' ) { > if ($confirmed) { > #warn "renewing"; > AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} ); >-- >2.10.2
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 18251
:
61040
|
61211
|
61262
|
61324
|
61343
|
61665
|
61715
|
61716
|
61717
|
61718
|
66186
|
66187
|
66188
|
66189
|
85409
|
85603
|
85604
|
85605
|
85606
|
85607
|
85616
|
85617
|
85618
|
85619
|
85620