Bugzilla – Attachment 23028 Details for
Bug 11179
opac-course-details.pl shows item as available when it is checked out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11179 [Follow-up] opac-course-details.pl shows item as available when it is checked out
Bug-11179-Follow-up-opac-course-detailspl-shows-it.patch (text/plain), 3.54 KB, created by
Kyle M Hall (khall)
on 2013-11-19 13:13:50 UTC
(
hide
)
Description:
Bug 11179 [Follow-up] opac-course-details.pl shows item as available when it is checked out
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-11-19 13:13:50 UTC
Size:
3.54 KB
patch
obsolete
>From a77d9745ab0323e81320ae6e739c1c7c61dc35fa Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 14 Nov 2013 15:41:02 -0500 >Subject: [PATCH] Bug 11179 [Follow-up] opac-course-details.pl shows item as available when it is checked out > >This follow-up applies the same fix to the Bootstrap theme. This patch >also includes the changes to item-status.inc in the Bootstrap theme >which were made to the prog theme in Bug 10820: display item status as >lost if item is both lost and on loan. > >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >Bootstrap theme looking so nice. Also the patch works. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../bootstrap/en/includes/item-status.inc | 24 ++++++++++---------- > .../bootstrap/en/modules/opac-course-details.tt | 2 +- > 2 files changed, 13 insertions(+), 13 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >index 60fbe64..fa3a919 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >@@ -1,6 +1,17 @@ > [% USE KohaAuthorisedValues %] > >-[% IF ( item.datedue ) %] >+[% IF ( item.itemlost ) %] >+ [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] >+ [% IF ( av_lib_include ) %] >+ [% av_lib_include %] >+ [% ELSE %] >+ [% IF ( item.lostimageurl ) %] >+ <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]" /> >+ [% ELSE %] >+ Item lost >+ [% END %] >+ [% END %] >+[% ELSIF ( item.datedue || issue.date_due ) %] > [% IF ( OPACShowCheckoutName ) %] > Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %] > [% ELSE %] >@@ -13,17 +24,6 @@ > On hold > [% ELSIF ( item.withdrawn ) %] > Item withdrawn >-[% ELSIF ( item.itemlost ) %] >- [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] >- [% IF ( av_lib_include ) %] >- [% av_lib_include %] >- [% ELSE %] >- [% IF ( item.lostimageurl ) %] >- <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]"> >- [% ELSE %] >- Item lost >- [% END %] >- [% END %] > [% ELSIF ( item.itemnotforloan ) %] > [% IF ( item.notforloanvalueopac ) %] > [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >index 9333511..622c2a6 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >@@ -67,7 +67,7 @@ > <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td> > <td>[% cr.item.itemcallnumber %]</td> > <td>[% cr.item.copynumber %]</td> >- <td>[% INCLUDE 'item-status.inc' item = cr.item %]</td> >+ <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td> > <td>[% cr.issue.date_due | $KohaDates %]</td> > <td>[% cr.public_note %]</td> > </tr> >-- >1.7.2.5
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 11179
:
22659
|
22950
|
22951
|
23012
|
23020
|
23021
| 23028