Bugzilla – Attachment 83382 Details for
Bug 19458
Self-check module highlighting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19458: Self-check module highlighting
Bug-19458-Self-check-module-highlighting.patch (text/plain), 4.21 KB, created by
Josef Moravec
on 2018-12-19 08:48:12 UTC
(
hide
)
Description:
Bug 19458: Self-check module highlighting
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-12-19 08:48:12 UTC
Size:
4.21 KB
patch
obsolete
>From edadb54fa6baa1659b44f77e775a8ae96ab31eb8 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Thu, 13 Dec 2018 01:51:38 -0300 >Subject: [PATCH] Bug 19458: Self-check module highlighting > >In SCO Module there is no difference on how new checkouts and renewals are shown from previous ones. This commit is done to address that issue. > >How to test: >1. Go to /cgi-bin/koha/sco/sco-main.pl and login. >2. Checkout a new item. >3. In checkout's table new checkouts should be easily identifiable. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 4 ++++ > opac/sco/sco-main.pl | 11 ++++++++--- > 2 files changed, 12 insertions(+), 3 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 fb6ce8c82b..21724e31a1 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 >@@ -195,6 +195,7 @@ > </div> > <input type="hidden" name="op" value="checkout" /> > <input type="hidden" name="patronid" value="[% patronid | html %]" /> >+ <input type="hidden" name="newissues" value="[% newissues | html %]" /> > </fieldset> > </form> > >@@ -238,6 +239,9 @@ > <tr> > <td>[% ISSUE.issuedate | html %]</td> > <td> >+ [% IF ( newissues.match(ISSUE.barcode)) %] >+ <span class="label label-info">NEW</span> >+ [% END %] > [% UNLESS ( noitemlinks ) %] > <a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE. biblionumber | uri %]">[% ISSUE.title | html %]</a> > [% ELSE %] >diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl >index 9fcf7293b5..49018da307 100755 >--- a/opac/sco/sco-main.pl >+++ b/opac/sco/sco-main.pl >@@ -93,15 +93,16 @@ if (defined C4::Context->preference('AllowSelfCheckReturns')) { > } > > my $issuerid = $loggedinuser; >-my ($op, $patronid, $patronlogin, $patronpw, $barcode, $confirmed) = ( >+my ($op, $patronid, $patronlogin, $patronpw, $barcode, $confirmed, $newissues) = ( > $query->param("op") || '', > $query->param("patronid") || '', > $query->param("patronlogin")|| '', > $query->param("patronpw") || '', > $query->param("barcode") || '', > $query->param("confirmed") || '', >+ $query->param("newissues") || '', > ); >- >+my @newissueslist = split /,/, $newissues; > my $issuenoconfirm = 1; #don't need to confirm on issue. > my $issuer = Koha::Patrons->find( $issuerid )->unblessed; > my $item = GetItem(undef,$barcode); >@@ -215,7 +216,9 @@ elsif ( $patron and $op eq "checkout" ) { > )->count; > } > AddIssue( $borrower, $barcode ); >- >+ push @newissueslist, $barcode; >+ print 'Issues \n'; >+ print join(',', @newissueslist); > if ( $hold_existed ) { > my $dtf = Koha::Database->new->schema->storage->datetime_parser; > $template->param( >@@ -245,6 +248,7 @@ elsif ( $patron and $op eq "checkout" ) { > } # $op > > if ($borrower) { >+ print 'borrower \n'; > # warn "issuer's branchcode: " . $issuer->{branchcode}; > # warn "user's branchcode: " . $borrower->{branchcode}; > my $borrowername = sprintf "%s %s", ($borrower->{firstname} || ''), ($borrower->{surname} || ''); >@@ -267,6 +271,7 @@ if ($borrower) { > borrowername => $borrowername, > issues_count => scalar(@checkouts), > ISSUES => \@checkouts, >+ newissues => join(',',@newissueslist), > patronid => $patronid, > patronlogin => $patronlogin, > patronpw => $patronpw, >-- >2.11.0
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 19458
:
83193
|
83194
|
83382
|
83383
|
83488
|
83489