[Koha-bugs] [Bug 29822] Use table column selection modal for DefaultPatronSearchFields preference

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 23 22:22:45 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29822

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |This enhancement changes
      release notes|                            |the
                   |                            |DefaultPatronSearchFields
                   |                            |system preference from an
                   |                            |input field where field
                   |                            |values separated by a comma
                   |                            |are entered, to a dropdown
                   |                            |list with a limited subset
                   |                            |of the available patron
                   |                            |fields.
                   |                            |
                   |                            |This makes it much
                   |                            |easier to set the standard
                   |                            |fields for patron search,
                   |                            |and helps avoid breaking
                   |                            |the patron search when
                   |                            |incorrect field values are
                   |                            |entered.
                   |                            |
                   |                            |NOTE: There is a
                   |                            |change in behavour for this
                   |                            |system preference, as only
                   |                            |a limited subset of the
                   |                            |available patron fields are
                   |                            |now selectable for the
                   |                            |standard patron search.

--- Comment #4 from David Nind <david at davidnind.com> ---
The test plan I used (using KTD):

1. Check system preference DefaultPatronSearchFields and note that it is
defined by entering a comma separated list.
2. Go to the patrons module and view the HTML source for the page:
   . search the source for 'standard' - this should have two results
   . note that the option value for the Standard input field are
"firstname,middle_name,surname,othernames,cardnumber,userid"
3. Apply the patch.
4. Reload or search again for the DefaultPatronSearchFields system preference.
5. Note that this is now a dropdown list with selectable values, rather than
needing to enter a comma separated list.
6. Add a field to the list, such as 'Primary email'.
7. Repeat step 2 - the standard input field should now include the field you
added.
8. Make sure some patrons have a primary email address, such as
firstname at gmail.com
9. Do a standard search for gmail.com
   ==> the results should include all the patrons you added a gmail address to
10. Do a specific search on the 'Primary email' field 
   ==> the search results should be the same as for step 9

BONUS: Perform the same search using the header search bar and the search
options drop down (note: you need to change the 'Search type' from 'Starts
with' to 'Contains').




(entered in the 'Other phone' field

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list