Koha/catalogue
Nick Clemens 14e6375637
Bug 14419: Expanding facets (Show more) performs a new search
This patch removes the constraint of only passing 5 facets to the template unless the list is expanded, in fact, it removes the 'expanded' attribute from Search.pm
Now that all facets are passed to page it adds a 'show more' link at the bottom of lists and allows user to expand or collapse any facet set without reloading page.

Updated tests included.

To test:
1  - Perform an OPAC search that returns more than 5 of any given facet type
2  - Click the "Show more" link on the facets and see that the search is reloaded
3  - Apply patch
4  - Repeat search
5  - Note that you can click "Show more" without reloading page
6  - Test that page load is not greatly affected
7  - Ensure that all facet links function normally
8  - Ensure that facets are the same a prior to patch
9  - Repeat for staff client
10 - Prove t/Search.t

NOTE: This patch makes it much easier to see that there is an existing issue with marking the "active" facet.  Ending punctuation seems to confuse the matcher.

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-07-04 09:22:02 +01:00
..
detail.pl Bug 8995: (follow-up) Add tests, move open_url/coins routines to Koha namespace 2019-04-29 15:34:10 +00:00
export.pl
getitem-ajax.pl Bug 22762: Fix items.collection display on receiving 2019-04-25 09:52:31 +00:00
image.pl
imageviewer.pl
ISBDdetail.pl Bug 8995: (follow-up) Add tests, move open_url/coins routines to Koha namespace 2019-04-29 15:34:10 +00:00
issuehistory.pl Bug 21291: (follow-up) Pass subscriptionsnumber to all tools in staff detail's sidebar 2018-10-15 13:40:47 +00:00
itemsearch.pl Bug 22424: Add search by all lost statuses to item search 2019-04-30 13:39:44 +00:00
labeledMARCdetail.pl Bug 22034: Handle default framework for MARC view with framework 2019-01-02 20:52:53 +00:00
MARCdetail.pl Bug 8995: (follow-up) Add tests, move open_url/coins routines to Koha namespace 2019-04-29 15:34:10 +00:00
moredetail.pl Bug 20912: Rental Fees based on Time Period 2019-03-07 17:22:43 +00:00
search-history.pl
search.pl Bug 14419: Expanding facets (Show more) performs a new search 2019-07-04 09:22:02 +01:00
showmarc.pl Bug 20083: Information disclosure when (mis)using the MARC Preview feature 2018-04-04 15:40:07 -03:00
stockrotation.pl Bug 21291: (follow-up) Pass subscriptionsnumber to all tools in staff detail's sidebar 2018-10-15 13:40:47 +00:00
updateitem.pl Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00