Bugzilla – Attachment 62481 Details for
Bug 18276
Koha::Biblio - Remove GetBiblioFromItemNumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18276: FIX status display for course reserves
Bug-18276-FIX-status-display-for-course-reserves.patch (text/plain), 3.80 KB, created by
Jonathan Druart
on 2017-04-20 15:52:05 UTC
(
hide
)
Description:
Bug 18276: FIX status display for course reserves
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-20 15:52:05 UTC
Size:
3.80 KB
patch
obsolete
>From 1507f11d865f8562aec7568c887bbb777ee92f17 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 20 Apr 2017 12:49:51 -0300 >Subject: [PATCH] Bug 18276: FIX status display for course reserves > >This include file is terribly wrong, it's called from different places >that do not set the same flag. >The status from detail and result page might be different from the one >display on the course reserve table. >--- > .../opac-tmpl/bootstrap/en/includes/item-status.inc | 19 ++++++++++++------- > 1 file changed, 12 insertions(+), 7 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 843fcf6..81d3658 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc >@@ -18,7 +18,10 @@ not use an API to fetch items that populates item.datedue. > [% END %] > [% END %] > >-[% IF ( item.datedue || issue.date_due ) %] >+[% IF item.isa('Koha::Item') %][% SET datedue = issue.date_due %] >+[% ELSE %][% SET datedue = item.datedue || issue.date_due %] >+[% END %] >+[% IF datedue %] > [% SET itemavailable = 0 %] > [% IF item.onsite_checkout %] > [% IF ( OPACShowCheckoutName ) %] >@@ -35,13 +38,13 @@ not use an API to fetch items that populates item.datedue. > [% END %] > [% END %] > >-[% IF ( item.transfertwhen ) %] >+[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %] > [% SET itemavailable = 0 %] > <span class="item-status intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] > to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span> > [% END %] > >-[% IF ( item.waiting ) %] >+[% IF NOT( item.isa('Koha::Item') ) AND item.waiting %] [%# Not sure where does come from this waiting flag %] > [% SET itemavailable = 0 %] > <span class="item-status onhold">On hold</span> > [% END %] >@@ -51,14 +54,15 @@ not use an API to fetch items that populates item.datedue. > <span class="item-status withdrawn">Item withdrawn</span> > [% END %] > >-[% IF ( item.itemnotforloan ) %] >+ >+[% IF NOT ( item.isa('Koha::Item') ) AND item.itemnotforloan %] > [% SET itemavailable = 0 %] > [% IF ( item.notforloanvalueopac ) %] > <span class="item-status notforloan">[% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> > [% ELSE %] > <span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> > [% END %] >-[% ELSIF ( item.notforloan_per_itemtype ) %] >+[% ELSIF NOT ( item.isa('Koha::Item') ) AND item.notforloan_per_itemtype %] > [% SET itemavailable = 0 %] > <span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> > [% END %] >@@ -73,11 +77,12 @@ not use an API to fetch items that populates item.datedue. > [% END %] > [% END %] > >-[% IF item.on_order %] >+[% IF NOT ( item.isa('Koha::Item') ) AND item.on_order %][%# on_order is only set from opac-detail.pl %] > [% SET itemavailable = 0 %] > <span class="item-status onorder">On order</span> > [% END %] > > [% IF ( itemavailable ) %] >- <span class="item-status available">Available [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> >+ [% IF NOT item.isa('Koha::Item') %][% SET restrictedopac = item.restrictedopac %][% END %] >+ <span class="item-status available">Available [% IF restrictedopac %]<span class="restricted">([% restrictedopac %])</span>[% END %]</span> > [% END %] >-- >2.9.3
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 18276
:
61122
|
61123
|
61124
|
61125
|
61126
|
61177
|
61178
|
61179
|
61180
|
61181
|
62081
|
62082
|
62083
|
62084
|
62085
|
62476
|
62477
|
62478
|
62479
|
62480
|
62481
|
63121
|
63122
|
63123
|
63124
|
63125
|
63126
|
63166
|
63294
|
63295
|
63296
|
63297
|
63298
|
63299
|
63300
|
64748
|
64809
|
64810
|
64811
|
64812
|
64813
|
64814
|
64815
|
64816
|
64817
|
64878
|
64879
|
64880
|
64881
|
64882
|
64883
|
64884
|
64885
|
64886
|
64887
|
64974
|
64975