Bug 16785: Remove Autocomplete from overdues report filter
authorOwen Leonard <oleonard@myacpl.org>
Thu, 13 May 2021 15:17:29 +0000 (15:17 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 20 May 2021 13:07:59 +0000 (15:07 +0200)
commitad2cb4ae64a8e274170978d606dd4f25375ee119
tree3e6a60da21ed7cdaabd9e4ca52a65b480cf431aa
parent7fbb3fa61ba021087bf7cb260b9790a676819bec
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>
(cherry picked from commit ac35ef738523b9d234b338c5d81daeb21d4833d5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
circ/ypattrodue-attr-search-authvalue.pl [deleted file]
koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt