Bugzilla – Attachment 123232 Details for
Bug 28761
Item status shows incorrectly on opac-course-details.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28762: Handle different item statuses in course details
Bug-28762-Handle-different-item-statuses-in-course.patch (text/plain), 2.84 KB, created by
Lucas Gass (lukeg)
on 2021-07-27 20:36:58 UTC
(
hide
)
Description:
Bug 28762: Handle different item statuses in course details
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-07-27 20:36:58 UTC
Size:
2.84 KB
patch
obsolete
>From 15a71291726cf1819b0383b12c9191925809e575 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 27 Jul 2021 20:31:16 +0000 >Subject: [PATCH] Bug 28762: Handle different item statuses in course details > >To test: >1. create a course in course reserves, add an item to it. >2. confirm your item shows Available for its status on course-details.pl >3. edit your item to be withdrawn, lost, damaged, notforloan, and restricted use >4. reload course-details.pl, confirm it still shows available >5. apply patch >6. repeat step 3 with each of the statuses and make sure it correctly shows on course-details.pl > >https://bugs.koha-community.org/show_bug.cgi?id=28761 >--- > .../modules/course_reserves/course-details.tt | 24 +++++++++++++++---- > 1 file changed, 19 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >index 12efce92bb..057bfad5af 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >@@ -264,13 +264,27 @@ > </td> > > <td class="status"> >- <span> > [% IF cr.item.onloan %] >- Checked out >- [% ELSE %] >- Available >+ <span>Checked out</span> >+ [% END %] >+ [% IF cr.item.withdrawn %] >+ <span>Withdrawn</span> >+ [% END %] >+ [% IF cr.item.itemlost %] >+ <span>Lost</span> >+ [% END %] >+ [% IF cr.item.damaged %] >+ <span>Damaged</span> >+ [% END %] >+ [% IF cr.item.restricted %] >+ <span>Restricted</span> >+ [% END %] >+ [% IF cr.item.notforloan %] >+ <span>Not for loan</span> >+ [% END %] >+ [% UNLESS cr.item.onloan || cr.item.withdrawn || cr.item.itemlost || cr.item.damaged || cr.item.restricted || cr.item.notforloan %] >+ </span>Available</span> > [% END %] >- </span> > </td> > > [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] >-- >2.20.1
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 28761
:
123232
|
123235
|
123246
|
123351