[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
Thu Sep 30 14:55:53 CEST 2021


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

--- Comment #13 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 125500
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125500&action=edit
Bug 28633: (follow-up) Show legal 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 'Legal name' on the details page, with id/class
to allow ajusting via JS/CSS

PatronAutoComplete/ysearch is updated to use 'effective_name' method

To test:
1 - Aply 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 'Legal name' shows
6 - Remove patron's first name, confirm 'Legal 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