Koha/catalogue
Nick Clemens fe508be07a
Bug 17170: Add admin page for filters and ability to edit/save existing filters
This patchset adds a new ability to save searches on the staff client, and display them in the results
page on staff or opac as a new filter.

New filters can be added from the resuilts page after a search, and there is an admin page for updating
deleting and renaming filters

There is a new permission to control management of these filters

New filters can be added that are not displayed along with facets, this allows for building custom links
using these filters to keep URLs shorter

Due to bug 30528 testing in ES is recommended

To test:
 1 - Apply patches and update database and restart all
 2 - Enable new system preference 'SavedSearchFilters'
 3 - As superlibrarian perform a search in staff client, something broad like 'a'
 4 - Note new 'Save search as filter' link on results page
 5 - Click it, save search as new filter, check 'Staff client' visibility
 6 - Perform another search
 7 - Note the filter now appears above facets
 8 - Click to it filter results
 9 - Note results are limited by the new filter, and it is checked in the facets
10 - Confirm click the [x] removes the filter
11 - Go to administration->search filters
12 - Confirm the filter appears
13 - Edit and mark as OPAC visible
14 - Test OPAC to ensure it shows and can be applied/removed
15 - Copy URL with filter applied
16 - In adminsitration mark filter as not visible on staff or opac
17 - Confirm link above still works
18 - Create a new staff with catalogue and search filters permission
19 - Ensure they can access/save filters
20 - Remove filter permission and ensure they cannot
21 - Disable system preference
22 - Confirm links to search filters page are removed from admin home and admin sidebar
23 - Confirm filters do not appear on results and cannot be created
24 - Enable pref
25 - Create a filter
26 - From search filters page, click 'Edit search'
27 - Confirm you are taken to advanced search page letting you know which filter you are editing
28 - Confirm you can change searhc options and save
29 - Confirm you can perform the search from this page

Sponsored-by: Sponsored by: Round Rock Public Library [https://www.roundrocktexas.gov/departments/library/]

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-21 11:15:16 -03:00
..
detail.pl Bug 28375: (QA follow-up) Remove two remaining interface params 2022-10-20 11:50:54 -03:00
export.pl Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
getitem-ajax.pl
image.pl
imageviewer.pl Bug 31310: Remove GetItemsInfo from catalogue/imageviewer 2022-08-16 09:22:47 -03:00
ISBDdetail.pl Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
issuehistory.pl
item-export.pl
itemsearch.pl
labeledMARCdetail.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
MARCdetail.pl Bug 31535: Fix warning - uninitialized value in string ne (MARCdetail.pl) 2022-09-12 16:16:28 -03:00
moredetail.pl Bug 31315: (QA follow-up) Show itemtype description instead of database code 2022-08-31 08:49:26 -03:00
search-history.pl
search.pl Bug 17170: Add admin page for filters and ability to edit/save existing filters 2022-10-21 11:15:16 -03:00
showmarc.pl Bug 30779: Remove _update_import_record_marc and update tests 2022-08-18 09:02:04 -03:00
stockrotation.pl
updateitem.pl