https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25314

Owen Leonard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #107450|0                           |1
        is obsolete|                            |
 Attachment #107452|0                           |1
        is obsolete|                            |

--- Comment #20 from Owen Leonard <[email protected]> ---
Created attachment 192334
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192334&action=edit
Bug 25314: Make OPAC facets collapse

This patch implements collapsing facets using the Bootstrap Collapse
component.

To test, apply the patch and rebuild the OPAC CSS.

1. Clear your browser cache if necessary.
2. Using the sample data, go to Advanced Search in the OPAC. Check the
   "Books" checkbox under the "Item types" tab and submit.
3. In the left-hand sidebar you should see the facets you normally see,
   but now each one has an arrow icon to show whether the facet is
   expanded or collapsed.
4. All facets should be expanded by default. Adding expanded/collapsed
   settings to system preferences is out of scope for this bug.
5. Test expanding and collapsing facets, as well as the "Show more" link
   under each one.
6. Click the "Fiction" link under the "Collections" facet. When the
   refined search results load you clicked should now have a red "X"
   link next to "Fiction," which should no longer be a link.
   - Because "Fiction" is the only uption under the "Collections" facet,
     the facet is not collapsible. I reasoned that it would be important
     not to let a facet limitation disappear behind hidden facets.
   * The only way I know to do this in the template is to check for
     facets with only one option this has the possibly-unwanted side
     effect of making facets which haven't been selected but still only
     have one option not collapsible. In this example search "Holding
     libraries" and "Topics" show this. I'm open to suggestions on this!
7. Test with the displayFacetCount preference both enabled and disabled.

Sponsored-by: Athens County Public Libraries

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to