Koha/koha-tmpl/intranet-tmpl/prog/en/includes
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
..
background_jobs Bug 27421: (QA follow-up) Template polishing 2022-09-19 15:14:59 -03:00
catalogue Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
csv_headers Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
mana Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
modals Bug 23838: (QA follow-up) Move include files 2022-07-22 12:53:50 -03:00
str Bug 31666: Add job progress bar to stage-marc-import.pl 2022-10-05 16:08:11 -03:00
virtualshelves/merge
about-team.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
accounts.inc Bug 29602: (follow-up) fix TemplateToolkit.t 2022-04-20 20:43:14 -10:00
acquisitions-add-to-basket.inc Bug 28079: Set focus to search box field when adding an order to basket 2021-10-21 10:21:50 +02:00
acquisitions-menu.inc Bug 16258: (QA follow-up) Capitalise EDIFACT 2022-04-13 15:55:39 +02:00
acquisitions-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
acquisitions-toolbar.inc Bug 28082: Add acquisitions toolbar to vendors on vendor search page 2022-05-10 15:17:17 -10:00
additional-fields-display.inc
additional-fields-entry.inc Bug 31254: Add additional fields for accountlines 2022-09-21 18:58:28 -03:00
admin-items-search-field-form.inc Bug 20689: (follow-up) Correct scope of template variables 2022-03-01 22:47:46 -10:00
admin-menu.inc Bug 17170: Add admin page for filters and ability to edit/save existing filters 2022-10-21 11:15:16 -03:00
adv-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
auth-finder-search.inc Bug 29434: add UNIMARC relationship codes for authorities 2022-08-09 07:42:21 -03:00
authorities-search-results.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
authorities-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
authorities-toolbar.inc Bug 28542: Move new authority from Z39.50/SRU to a button 2021-06-21 10:10:01 +02:00
authorities.inc
authorities_js.inc Bug 26019: Koha should set SameSite attribute on cookies 2022-04-13 15:55:38 +02:00
authority-detail-modal.inc Bug 29965: Preview MARC in authority search results 2022-02-23 22:05:33 -10:00
av-build-dropbox.inc Bug 30603: Display Sort1 and Sort2 as free text if no AV exists 2022-05-10 23:09:09 -10:00
biblio-title-head.inc
biblio-title.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
biblio-view-menu.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
blocked-fines.inc Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
blocking_errors.inc Bug 10921: Prevent an order from a closed basket to be edited 2020-09-18 11:49:29 +02:00
borrower_debarments.inc Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
branch-selector.inc
budget_planning.inc Bug 30629: fix <span> in title of some pages 2022-06-01 16:28:28 -03:00
budgets-active-currency.inc Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
budgets-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
budgets-admin-toolbar.inc
calendar.inc Bug 30718: Prevent 'reset' icon to appear twice 2022-08-19 08:26:39 -03:00
cat-menu.inc Bug 31417: Update and reference cat-menu.inc 2022-10-18 10:28:34 -03:00
cat-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
cat-toolbar.inc Bug 21978: (follow-up) Stop passing holdfor_cardnumber 2022-06-24 12:29:14 -03:00
catalog-strings.inc Bug 9565: (follow-up) Deleting a biblio should alert/fail if there are existent subscriptions 2021-12-10 21:15:30 -10:00
cataloging-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
catalogue-search-box.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
cateditor-ui.inc Bug 27981: (QA follow-up) Unify JavaScript to false/true from 0/1/"" 2022-09-12 15:17:37 -03:00
cateditor-widgets-marc21.inc Bug 26368: Add OCLC options to marc21_leader.tt 2022-10-03 08:04:05 -03:00
category-out-of-age-limit.inc
chart.inc
checkin-search-box.inc Bug 30952: Header search - move tabs to the right (and other tweaks) 2022-10-12 16:14:31 -03:00
checkin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
checkouts-table-footer.inc Bug 30718: Fix time display 2022-08-19 08:26:38 -03:00
checkouts-table.inc Bug 31728: Remove duplicate claims modal template markup 2022-10-20 11:44:03 -03:00
circ-menu.inc Bug 10950: (follow-up) Change display of pronoun fields 2022-10-03 15:01:34 -03:00
circ-nav.inc Bug 31404: (QA follow-up) Mostly whitespace fixes 2022-09-07 13:26:33 -07:00
circ-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
cities-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
clubs-table.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
columns_settings.inc Bug 31435: Tie 'Configure' to table_settings 2022-09-07 12:07:56 -07:00
contracts-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
country-list.inc
currencies-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
datatables.inc Bug 24662: Remove global variables MSG_* from datatables.inc 2020-03-11 13:49:15 +00:00
date-format.inc
delimiter_text.inc Bug 27486: Rename system preference delimiter to CSVDelimiter 2021-01-29 09:03:45 +01:00
desks-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
doc-head-close-receipt.inc
doc-head-close.inc Bug 29723: Add a "Configure table" button for KohaTable tables 2022-08-16 10:12:26 -03:00
doc-head-open.inc Bug 30543: Decouple DumpSearchQueryTemplate from other tempalte dump preferences 2022-08-09 08:44:14 -03:00
empty_line.inc
facets.inc Bug 17170: Add search filters to staff and opac interfaces 2022-10-21 11:15:15 -03:00
filter-orders.inc Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
form-blocks.inc
format_price.inc Bug 25002: JS Includes should be wrapped with template comments 2020-04-29 17:15:20 +01:00
greybox.inc Bug 25002: JS Includes should be wrapped with template comments 2020-04-29 17:15:20 +01:00
guided-reports-view.inc Bug 28454: Add Koha version number to database schema link in reports 2021-09-29 12:47:33 +02:00
header.inc Bug 31162: Add a cataloging module home page 2022-10-18 10:20:58 -03:00
holds_table.inc Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
home-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
html_helpers.inc Bug 31455: Make batchMod sort by order scanned 2022-09-12 15:30:42 -03:00
i18n.inc Bug 26816: Chomp whitespace around i18n strings 2020-11-02 11:03:09 +01:00
ill-availability-table.inc Bug 23173: (follow-up) Fix QA script errors 2020-04-06 11:05:14 +01:00
ill-list-table-strings.inc Bug 25002: JS Includes should be wrapped with template comments 2020-04-29 17:15:20 +01:00
ill-list-table.inc
ill-toolbar.inc
installer-doc-head-close.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
installer-intranet-bottom.inc Bug 29155: Update links to jQuery and jQuery Migrate files 2022-04-25 10:00:22 -10:00
installer-strings.inc Bug 25002: JS Includes should be wrapped with template comments 2020-04-29 17:15:20 +01:00
intranet-bottom.inc Bug 24201: (follow-up) add desk choice with library choice 2020-08-07 16:54:40 +02:00
intranetstylesheet.inc
job_progress.inc Bug 31666: (QA follow-up) Add filters 2022-10-05 16:08:16 -03:00
js-biblio-format.inc Bug 31083: Fix part_name handling in js-biblio-format 2022-07-18 11:16:16 -03:00
js-date-format.inc Bug 30650: Add circulation page view 2022-07-29 15:00:01 -03:00
js-patron-format-address.inc Bug 31525: display streetnumber with address in patron search 2022-09-23 09:16:29 -03:00
js-patron-format.inc Bug 21978: Add support for middle name 2022-06-24 12:24:11 -03:00
js-patron-get-age.inc Bug 30059: Deal with timezones 2022-03-24 14:22:10 -10:00
js_includes.inc Bug 30578: Fix on-select for 2 occurrences 2022-07-18 11:01:45 -03:00
keyboard_shortcuts.inc
labels-toolbar.inc
langmenu-staff-top.inc Bug 20168: Update of the OPAC bootstrap template to bootstrap v4 2020-09-09 14:13:03 +02:00
last-borrower.inc Bug 30952: Staff interface redesign (header) 2022-10-12 15:58:16 -03:00
letters-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
member-alt-address-style.inc Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
member-alt-contact-style.inc Bug 29213: Fix typo ol in member-alt-contact-style.inc 2021-10-15 11:34:26 +02:00
member-display-address-style.inc Bug 21794: (QA follow-up) Separate city and country with a comma 2021-09-09 10:59:38 +02:00
member-display-alt-address-style.inc Bug 21794: (QA follow-up) Separate city and country with a comma 2021-09-09 10:59:38 +02:00
member-main-address-style.inc Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
member-search-box.inc Bug 30952: Header search - move tabs to the right (and other tweaks) 2022-10-12 16:14:31 -03:00
members-toolbar.inc Bug 30650: Add link from the member toolbar 2022-07-29 15:00:18 -03:00
merge-record.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
messaging-preference-form.inc Bug 30952: Harmonize tables style 2022-10-12 16:15:05 -03:00
modal-claims.inc Bug 29983: Fix xt/author/valid-templates.t 2022-08-08 11:13:59 -03:00
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc Bug 14715: (follow-up) Keep results per page setting when selecting facets and sorting results 2020-03-26 12:03:42 +00:00
password_check.inc Bug 23816: Fix patron edition 2020-09-10 09:57:53 +02:00
patron-age.inc Bug 27717: Display date of birth even if the patron is under 1 2021-03-05 13:38:58 +01:00
patron-article-requests.inc Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
patron-return-claims.inc Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
patron-search-box.inc Bug 30952: Header search - move tabs to the right (and other tweaks) 2022-10-12 16:14:31 -03:00
patron-search-header.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
patron-search.inc Bug 31530: Remove HTML tags in TT comments in patron-search.inc 2022-09-12 15:35:40 -03:00
patron-title.inc Bug 10950: (follow-up) Change display of pronoun fields 2022-10-03 15:01:34 -03:00
patron-toolbar.inc
patron_messages.inc Bug 31486: Redirect to proper page after message deletion 2022-09-12 16:17:21 -03:00
patron_restrictions.inc Bug 23681: (QA follow-up) Remove spacing and add question mark 2022-08-25 08:41:06 -03:00
patroncards-errors.inc Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
patroncards-toolbar.inc
patronfields.inc Bug 10950: Add intranet/OPAC form fields 2022-10-03 15:01:32 -03:00
patrons-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
permissions.inc Bug 17170: DB Updates 2022-10-21 11:15:13 -03:00
popup-bottom.inc
pos-menu.inc Bug 27583: Proposed terminology changes 2021-07-26 12:46:32 +02:00
prefs-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
prefs-menu.inc Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
recalls.inc Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
relatives-issues-table.inc Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
renew-search-box.inc Bug 30952: Header search - move tabs to the right (and other tweaks) 2022-10-12 16:14:31 -03:00
renew_results.inc Bug 23051: (QA follow-up) Missing curly and tabs and fix test 2020-03-06 10:03:41 +00:00
renew_strings.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
reports-menu.inc Bug 31401: (QA follow-up) Remove Koha.ArePluginsEnabled, it is no longer needed 2022-09-07 13:55:37 -07:00
reports-toolbar.inc Bug 26486: Group edit buttons in reports toolbar 2022-06-27 12:32:24 -03:00
resort_form.inc Bug 25014: Fix capitalization for "Call Number" in staff and OPAC sort options 2020-04-03 14:26:34 +01:00
rotating-collections-toolbar.inc
search_indexes.inc Bug 24127: Add 'code' and title to shelving location search 2022-10-03 08:27:54 -03:00
select2.inc Bug 25727: (follow-up) Some style updates, JS i18n 2020-08-24 11:19:03 +02:00
serials-menu.inc Bug 28719: Change somes links in the serials page to avoid them leading to nothing 2021-08-16 09:56:37 +02:00
serials-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
serials-toolbar.inc
shortcut.inc Bug 30952: Staff interface redesign (header) 2022-10-12 15:58:16 -03:00
slip-print.inc Bug 27282: fix all occurrences 2021-04-21 10:51:29 +02:00
stockrotation-toolbar.inc
sub-header.inc Bug 30952: Staff interface redesign (header) 2022-10-12 15:58:16 -03:00
subscriptions-search.inc
subtype_limits.inc Bug 22605: (QA follow-up) Make Braille search option stick 2022-03-24 14:22:10 -10:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
tools-item-action.inc Bug 28290: Don't send subfields to 'as_string' if none to send 2022-09-07 13:50:21 -07:00
tools-menu.inc Bug 31417: Update and reference cat-menu.inc 2022-10-18 10:28:34 -03:00
tools-nomatch-action.inc Bug 23236: Remove 'its items may still be processed' in action if no match is found 2020-03-18 08:41:35 +00:00
tools-overlay-action.inc
transaction_types.inc Bug 30733: Move all semicolons inside the translatable strings 2022-06-17 10:16:40 -03:00
transfer_reasons.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
validator-strings.inc Bug 25002: JS Includes should be wrapped with template comments 2020-04-29 17:15:20 +01:00
vendor-menu.inc
virtualshelves-toolbar.inc
waiting_holds.inc Bug 22456: Staff interface handling 2022-07-29 15:28:38 -03:00
wysiwyg-systempreferences.inc Bug 26949: Upgrade TinyMCE in the staff interface from 5.0.16 to 5.9.2 2021-10-05 10:58:13 +02:00
xslt-handler.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
z3950-admin-search.inc Bug 30952: Better header search bar on smaller screens 2022-10-12 16:14:45 -03:00
z3950_search.inc Bug 26291: Move translatable strings out of z3950_search.inc into z3950_search.js 2020-09-29 14:28:19 +02:00