[Koha-bugs] [Bug 28633] Add a preferred_name field and an effective_name method to patrons

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 20 16:24:05 CEST 2021


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #125500|0                           |1
        is obsolete|                            |

--- Comment #19 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 126591
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126591&action=edit
Bug 28633: (follow-up) Show first name and add preferredname to searches

This patch adds to the DB update a condition to add 'preferredname' to
DefaultPatronSearchFields. It also adjust the koha defaults to include it
if the pref is empty

The 'firstname' is displayed as 'First name' on the details page, with id/class
patron_first_name to allow ajusting via JS/CSS if library wants to
highlight/hide
the non-preferred name

PatronAutoComplete/ysearch is updated to use 'effective_name' method

To test:
1 - Apply patches and updatedatabase and restart_all
2 - Add a preferredname to a patron
3 - Verify DefaultPatronSearchFields contains 'preferredname' if your pref had
firstname
    Add preferredname if not
4 - Perform checkout and patron search using preferredname, confirm patron is
found
5 - On patron's detail page confirm 'First name' shows
6 - Remove patron's first name, confirm 'First name' is no longer present
7 - Enable PatronAutoComplete system preference
8 - Type patron's surname into Checkout or patron search but don't hit enter
9 - Confirm patron is dsiplayed with 'preferredname' in the preview

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


More information about the Koha-bugs mailing list