[Bug 7690] New: hidelostitems not working in Normal Display
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Priority: P5 - low Change sponsored?: --- Bug ID: 7690 Assignee: oleonard@myacpl.org Summary: hidelostitems not working in Normal Display QA Contact: koha.sekjal@gmail.com Severity: minor Classification: Unclassified OS: All Reporter: nengard@gmail.com Hardware: All Status: NEW Version: master Component: Templates Product: Koha Created attachment 8122 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8122&action=edit lost items showing in results In the OPAC if you are not using XSLT lost items show in the results even if you have hidelostitems set to not show them. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolyn.somers@biblibre.co | |m See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=6488 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|oleonard@myacpl.org |fridolyn.somers@biblibre.co | |m --- Comment #1 from Fridolyn SOMERS <fridolyn.somers@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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 --- Comment #2 from Nicole C. Engard <nengard@gmail.com> --- Is this still a problem?I can't reproduce it and also if we're going to remove hidelostitems (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8619) do we need this patch? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 --- Comment #3 from Fridolyn SOMERS <fridolyn.somers@biblibre.com> --- (In reply to comment #2)
Is this still a problem?I can't reproduce it and also if we're going to remove hidelostitems (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8619) do we need this patch?
Yes it is still a problem, this bug concerns hidelostitems but also OpacHiddenItems behavior. I forgot : to reproduce the but, hidden items must be unavailable (on loan, damaged, not for loan ...). Tell me if you need a better test plan. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 --- Comment #4 from Nicole C. Engard <nengard@gmail.com> --- I had lost items hidden in the opac and then did a search with XSLT turned off and lost items were hidden without this patch. A lost item won't be checked out in most cases, so the item was not checked out. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 --- Comment #5 from Fridolyn SOMERS <fridolyn.somers@biblibre.com> --- On my test environment (master revision and sandbox 2 database), I reproduce the bug. hilelostitems is active. With 1 item available and 1 lost (itemlost=1), I get : Availability: Copies available: Le Cannet (1), Lost (1). Result page gets items from Zebra so after editing an item, don't forget to rebuild. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11498|0 |1 is obsolete| | --- Comment #6 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 11878 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11878&action=edit [SIGNED-OFF] Bug 7690: hidelostitems not working in Normal Display Signed-off-by: Owen Leonard <oleonard@myacpl.org> Tested by toggling both the hidelostitems preference and the OpacHiddenItems preference. Both work as expected in the normal search results display. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=8462 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA CC| |mtj@kohaaloha.com --- Comment #7 from Mason James <mtj@kohaaloha.com> --- (In reply to comment #6)
Created attachment 11878 [details] [SIGNED-OFF] Bug 7690: hidelostitems not working in Normal Display Signed-off-by: Owen Leonard <oleonard@myacpl.org>
patch looks good, passing QA… $ koha-qa.pl testing 1 commit(s) (applied to commit 0acebb8) * f14ca82 Bug 7690: hidelostitems not working in Normal Display C4/Search.pm koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt * C4/Search.pm OK * koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt OK -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master CC| |paul.poulain@biblibre.com Version|master |rel_3_8 --- Comment #8 from Paul Poulain <paul.poulain@biblibre.com> --- Patch pushed to master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7690 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |Pushed to Stable CC| |chris@bigballofwax.co.nz --- Comment #9 from Chris Cormack <chris@bigballofwax.co.nz> --- Template change, but no string changes, pushing to 3.8.x will be in 3.8.5 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org