Koha-clms/Koha/Patron
Nick Clemens 2e83345479
Bug 28633: Add preferred name field to patrons
This patch adds a new field 'preferred_name' to the patron record.

On storage (creation or update) the preferred_name is set to the firstname if no
value is passed. Patron modifications will set the preferred name to the firstname if
the preferred_name field is hidden

With this patchset preferred_name will always be set - either to the firstname, or a specified value.

PatronAutoComplete/ysearch is updated to use 'preferred_name'

To test:
 1 - Apply patches
 2 - Update database and restart all, clear browser cache
 3 - Load a patron in staff module
 4 - Confirm you see and can add a preferred name
 5 - Confirm the preferred name and first name now displays on patron details
 6 - Remove first name from patron record and confirm it no longer shows
 7 - Edit sysprefs BorrowerMandatoryFields and BorrowerUnwantedFields to confirm you can make
     new field required or hidden
 8 - Sign in as patron to opac
 9 - Confirm preferred name shows
10 - Edit account on opac and confirm field is present
11 - Verify DefaultPatronSearchFields contains 'preferredname' if your pref had firstname
12 - Perform checkout and patron search using preferred_name, confirm patron is found
13 - Enable PatronAutoComplete system preference
14 - Type patron's surname into Checkout or patron search but don't hit enter
15 - Confirm patron is displayed with 'preferred_name' in the preview
16 - Set 'preferred_name' in all 'Unwanted' preferences
17 - Confirm editing a patron in staff interface sets both fields when firstname updated
18 - Confirm a patron modification sets both fields when firstname updated
19 - Create a patron / perform self registration and confirm both fields set when preferred_name is hidden
20 - Remove preferred_name from Unwanted prefs and confirm preferred_name is set to firstname if nothing passed

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-11-11 14:12:09 +01:00
..
Attribute
…
MessagePreference Bug 17499: (follow-up) Rename to Koha::Patron::MessagePreference 2023-09-12 10:16:11 -03:00
Password Bug 34731: (follow-up) Fix conditional variable declaration 2023-09-12 09:45:00 -03:00
Restriction Bug 31095: Remove keyed_on_code 2023-01-31 10:19:37 -03:00
Attribute.pm Bug 35508: Don't update patron attributes if new list of attributes matches list of existing attributes 2024-10-18 17:44:18 +02:00
Attributes.pm
…
Categories.pm
…
Category.pm Bug 33462: Add ability to force password change for new patrons entered by staff 2024-10-31 13:23:39 +01:00
Consent.pm
…
Consents.pm Bug 31503: (follow-up) Use KohaPlugins.feature_enabled 2023-10-25 10:35:23 -03:00
Debarments.pm Bug 25996: (follow-up) Log the entire object on deletion 2024-05-03 18:02:18 +02:00
Discharge.pm Bug 14251: Allow use of CSS in discharge letter 2023-03-27 11:53:16 +02:00
Files.pm
…
HouseboundProfile.pm
…
HouseboundProfiles.pm
…
HouseboundRole.pm
…
HouseboundRoles.pm
…
HouseboundVisit.pm
…
HouseboundVisits.pm
…
Image.pm
…
Images.pm
…
Message.pm Bug 21699: Allow circulation messages to be editable 2023-05-05 10:18:55 -03:00
MessagePreference.pm Bug 17499: (follow-up) Rename to Koha::Patron::MessagePreference 2023-09-12 10:16:11 -03:00
MessagePreferences.pm Bug 17499: (follow-up) Rename to Koha::Patron::MessagePreference 2023-09-12 10:16:11 -03:00
Messages.pm Bug 12029: Remove 'params' from filter_by_unread 2023-04-20 15:48:47 -03:00
Modification.pm Bug 28633: Add preferred name field to patrons 2024-11-11 14:12:09 +01:00
Modifications.pm
…
Relationship.pm Bug 33671: Update POD, remove unneeded check in relationship->guarantor 2023-05-10 14:19:24 -03:00
Relationships.pm
…
Restriction.pm Bug 26053: Distinguish expired patron restrictions 2023-10-10 09:58:55 -03:00
Restrictions.pm Bug 31095: (QA follow-up) Fix POD 2023-01-31 10:19:42 -03:00