Bugzilla – Attachment 123233 Details for
Bug 28762
Item status shows incorrectly on 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:38:16 UTC
(
hide
)
Description:
Bug 28762: Handle different item statuses in course details
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-07-27 20:38:16 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 28762
:
123233
|
123234
|
123236
|
123237
|
124661
|
124666
|
124667
|
124668
|
124744
|
125220
|
125228
|
125229
|
125233
|
161563
|
161564
|
161565
|
161566
|
161567
|
161568
|
161569
|
161570
|
161571
|
161572
|
161573
|
161574
|
161584
|
161585
|
161586
|
161587
|
161588
|
161589
|
161590
|
161591
|
163310
|
163311
|
163312
|
163313
|
163314
|
163315
|
163316
|
163317
|
165843
|
165844
|
165845
|
165846
|
165847
|
165848
|
165849
|
165850
|
169172
|
169273
|
169274
|
169275
|
169276
|
169277
|
169278
|
169279
|
169280
|
169281
|
169311
|
169312
|
169313
|
169314
|
169354
|
169355
|
169356
|
169357
|
169358
|
169359
|
169360
|
169361
|
169362
|
169363
|
169364
|
169365
|
169366
|
169367
|
169393