Bugzilla – Attachment 28858 Details for
Bug 5956
Highlight holds on check-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
5956 Highlight holds on chech-in
5956-Highlight-holds-on-chech-in.patch (text/plain), 2.38 KB, created by
Viktor Sarge
on 2014-06-16 07:15:03 UTC
(
hide
)
Description:
5956 Highlight holds on chech-in
Filename:
MIME Type:
Creator:
Viktor Sarge
Created:
2014-06-16 07:15:03 UTC
Size:
2.38 KB
patch
obsolete
>From 5961683be53e4cb568498f44d2c2a3f8bb00e22d Mon Sep 17 00:00:00 2001 >From: Viktor Sarge <viktor.sarge@regionhalland.se> >Date: Mon, 16 Jun 2014 08:03:42 +0100 >Subject: [PATCH] 5956 Highlight holds on chech-in > >This patch adds a flag in returns.pl if the returned books have reservervations. >The flag is picked up by returns.tt and displays a warning using the "Note" field and CSS-class already in place. > >Note that this differs from the atcual suggestion from Jared, but using the note field instead of making the title red felt that it kept it more consistent. > >Apologies if the commit message hints at the fact that I'm still learning Git. >--- > circ/returns.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 4 ++-- > 2 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index a95a17c..20b9e0c 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -566,6 +566,9 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { > $ri{homebranch} = $item->{'homebranch'}; > $ri{holdingbranch} = $item->{'holdingbranch'}; > >+ if (GetReservesFromItemnumber($biblio->{'itemnumber'})){ >+ $ri{reservewarning} = 1;} >+ > $ri{location} = $biblio->{'location'}; > my $shelfcode = $ri{'location'}; > $ri{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 72f9ee3..32ae6f6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -547,8 +547,8 @@ $(document).ready(function () { > </a> > [% ELSE %]Not checked out[% END %]</td> > <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %] >- [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %] >- </td> >+ [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]<br /></span>[% END %] >+ [% IF ( riloo.reservewarning ) %]<span class="circ-hlt">This item is reserved</span>[% END %]</td> > </tr> > [% END %] > </table></div> >-- >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 Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5956
: 28858