[Koha-bugs] [Bug 13088] Allow the user to specify a max amount of facets to show.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 24 15:53:31 CEST 2014


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

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32667|0                           |1
        is obsolete|                            |

--- Comment #4 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 32668
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32668&action=edit
[SIGNED-OFF] Bug 13088: Allow the user to specify a max amount of facets to
show

This patch makes _get_facet_from_result_set rely on a new syspref
(FacetsMaxCount)
to set the max facets to show for each facet category. It defaults to 20 if
the syspref is absent or empty.

To test:
- Have a search with lots of facet results (with some category showing the "See
more" link).
- Jump to "See more", notice it shows more than 20 facet values.
- Apply the patch, reload the page.
=> SUCCESS It only shows 20 (default hardcoded value)
- Change the FacetsMaxCount syspref to other value (e.g. 15 or 100).
- Reload
=> SUCCESS: it shows the expected amount.
- Sign off :-D

Regards

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Owen Leonard <oleonard at myacpl.org>
Test plan completed successfully

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


More information about the Koha-bugs mailing list