Bug 16785: Remove Autocomplete from overdues report filter
authorOwen Leonard <oleonard@myacpl.org>
Thu, 13 May 2021 15:17:29 +0000 (15:17 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 20 May 2021 06:43:27 +0000 (08:43 +0200)
commitac35ef738523b9d234b338c5d81daeb21d4833d5
tree053103ddbd7cffb422e03a9259d8ca9b74c2923f
parent300210e8c372c90d1851bff156da7ece5eda5bb9
Bug 16785: Remove Autocomplete from overdues report filter

This patch removes code and markup related to an autocomplete input
field in the overdues report filter. The autocomplete was intended
to enable easy entry of patron attributes, but it's simpler to use a
Select2-styled <select>

The patch removes circ/ypattrodue-attr-search-authvalue.pl, which was
only used on this page and is now obsolete.

To test, apply the patch and create at least one patron attribute type
which is linked to an authorized value:

 - Administration -> Authorized values -> New category
   - Create a new category to test with
   - Add multiple authorized values under this category
 - Administration -> Patron attribute types -> New patron attribute
   type.
   - Create an attribute which is linked to the authorized value
     category you created AND which is marked "Searchable."
 - Go to Circulation -> Overdues.
   - In the sidebar filter you should see your patron attribute as an
     option, styled as a Select2 dropdown.
   - Clicking the dropdown should trigger a list of the authorized
     values you created above.
   - Test that the search field at the top of the list works correctly
     to filter the results.
   - Test that any repeatable attribute field can be cloned by clicking
     the "Add" link, and that cloned fields can be removed using the
     "Delete" links.
   - Test that cloned fields remain in place after submitting the fitler
     form, and that any selected entry in a Select2 widget is
     preselected.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
circ/ypattrodue-attr-search-authvalue.pl [deleted file]
koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt