Bugzilla – Attachment 22659 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 - opac-course-details.pl shows item as available when it is checked out
Bug-11179---opac-course-detailspl-shows-item-as-av.patch (text/plain), 2.44 KB, created by
Kyle M Hall (khall)
on 2013-10-31 18:29:21 UTC
(
hide
)
Description:
Bug 11179 - opac-course-details.pl shows item as available when it is checked out
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-10-31 18:29:21 UTC
Size:
2.44 KB
patch
obsolete
>From 2053bdf778badb31e7e3fff2a291173ed0fb3d79 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 31 Oct 2013 14:27:30 -0400 >Subject: [PATCH] Bug 11179 - opac-course-details.pl shows item as available when it is checked out > >If an item is listed for a course and is checked out, the item will >still show as being available from the course details page which lists >all the items that are part of a course. This is due to the way the >course reserves system handles items and issues separately, while >item-status.inc assumes the due date has been embedded in items.datedue > >Test Plan: >1) Create a course >2) Add an item to that course >3) Check the item out to a patron >4) View the course details from the opac >5) Note the status says "Available" >6) Apply this patch >7) Repeat step 4 >8) Note the status no longer says "Available" >--- > .../opac-tmpl/prog/en/includes/item-status.inc | 2 +- > .../prog/en/modules/opac-course-details.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >index d2651f0..a3f0b79 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >@@ -11,7 +11,7 @@ > Item lost > [% END %] > [% END %] >-[% ELSIF ( item.datedue ) %] >+[% ELSIF ( item.datedue || issue.date_due ) %] > [% IF ( OPACShowCheckoutName ) %] > Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %] > [% ELSE %] >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-course-details.tt >index 4721ae4..a1da668 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-course-details.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-course-details.tt >@@ -59,7 +59,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