[Koha-bugs] [Bug 7690] hidelostitems not working in Normal Display

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 9 16:03:11 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690

Fridolyn SOMERS <fridolyn.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|oleonard at myacpl.org         |fridolyn.somers at biblibre.co
                   |                            |m

--- Comment #1 from Fridolyn SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 11498
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11498&action=edit
Proposed patch

Main problem is that in opac-results.tt, the hidden items are managed in
available items loop, but they are in others loop.

Second problem is that adding hidden items in other items list will give false
lost/damaged/withdrawn/onloan/onhold/... count number.

Since these items are not displayed, there is no need to send them to template.
So i changed behavior : if item is hidden it is not in item loops.

Test plan : 
-----------
Check display with 'OpacHiddenItems' syspref hidding some items and all items.
Check display with 'hidelostitems' syspref hidding some lost items and all
items.
Combine with and without XSLT.

Test with bug 6488 tests :
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6488#c45

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list