Martin Renvoize
d5608b8ff0
This patch adds the new 'Middle name' field to the patron record. To test: 1) Apply patches 2) Update database, restart all and clear the browser cache 3) Load a patron in the staff module 4) Confirm you can see and edit the new 'Middle name' field 5) Confirm the new middle name data displays on patron details 6) Confirm the new middle name data displays on patron search results 7) Confirm the new middle name data displays everywhere patron names are displayed. 8) Confirm the new middle name data displays on the OPAC 9) Confirm the 'Middle name' field appears in the OPAC borrower modification screens 10) Edit sysprefs `BorrowerMandatoryFields`, `BorrowerUnwantedFields`, `SelfModificationBorrowerUnwantedField`, `PatronSelfModificationMandatoryField`, `PatronSelfRegistrationBorrowerMandatoryField` and `PatronSelfRegistrationBorrowerUnwantedField` to confirm you can make the new field required or hidden. 11) Verify that DefaultPatronSearchFields contains the new field if you already had 'firstname' in the field list 12) Enable PatronAutoComplete system preference 13) Type patrons surname into checkout or patron search but don't hit return 14) Confirm the patrons middle name is displayed in the preview 15) Go to tools > patron lists and attempt to add a patron to a list 16) Patrons middle name should appear in the autocomplete here too Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
76 lines
4.2 KiB
PHP
76 lines
4.2 KiB
PHP
[%- BLOCK patron_fields -%]
|
|
[%- SWITCH name -%]
|
|
[%- CASE standard -%]<span>Standard</span>
|
|
[%- CASE 'borrowernumber' -%]<span>Borrowernumber</span>
|
|
[%- CASE 'cardnumber' -%]<span>Card number</span>
|
|
[%- CASE 'surname' -%]<span>Surname</span>
|
|
[%- CASE 'firstname' -%]<span>First name</span>
|
|
[%- CASE 'middle_name' -%]<span>Middle name</span>
|
|
[%- CASE 'title' -%]<span>Salutation</span>
|
|
[%- CASE 'othernames' -%]<span>Other name</span>
|
|
[%- CASE 'initials' -%]<span>Initials</span>
|
|
[%- CASE 'streetnumber' -%]<span>Street number</span>
|
|
[%- CASE 'streettype' -%]<span>Street type</span>
|
|
[%- CASE 'address' -%]<span>Address</span>
|
|
[%- CASE 'address2' -%]<span>Address 2</span>
|
|
[%- CASE 'city' -%]<span>City</span>
|
|
[%- CASE 'state' -%]<span>State</span>
|
|
[%- CASE 'zipcode' -%]<span>ZIP/Postal code</span>
|
|
[%- CASE 'country' -%]<span>Country</span>
|
|
[%- CASE 'email' -%]<span>Primary email</span>
|
|
[%- CASE 'phone' -%]<span>Primary phone</span>
|
|
[%- CASE 'mobile' -%]<span>Mobile phone</span>
|
|
[%- CASE 'fax' -%]<span>Fax</span>
|
|
[%- CASE 'emailpro' -%]<span>Secondary email</span>
|
|
[%- CASE 'phonepro' -%]<span>Secondary phone</span>
|
|
[%- CASE 'B_streetnumber' -%]<span>Alternate street number</span>
|
|
[%- CASE 'B_streettype' -%]<span>Alternate street type</span>
|
|
[%- CASE 'B_address' -%]<span>Alternate address</span>
|
|
[%- CASE 'B_address2' -%]<span>Alternate address line 2</span>
|
|
[%- CASE 'B_city' -%]<span>Alternate city</span>
|
|
[%- CASE 'B_state' -%]<span>Alternate state</span>
|
|
[%- CASE 'B_zipcode' -%]<span>Alternate zip code</span>
|
|
[%- CASE 'B_country' -%]<span>Alternate country</span>
|
|
[%- CASE 'B_email' -%]<span>Alternate email</span>
|
|
[%- CASE 'B_phone' -%]<span>Alternate phone</span>
|
|
[%- CASE 'dateofbirth' -%]<span>Date of birth</span>
|
|
[%- CASE 'branchcode' -%]<span>Library (code)</span>
|
|
[%- CASE 'categorycode' -%]<span>Category (code)</span>
|
|
[%- CASE 'dateenrolled' -%]<span>Registration date</span>
|
|
[%- CASE 'dateexpiry' -%]<span>Expiry date</span>
|
|
[%- CASE 'gonenoaddress' -%]<span>Gone no address</span>
|
|
[%- CASE 'lost' -%]<span>Lost card</span>
|
|
[%- CASE 'debarred' -%]<span>Restricted</span>
|
|
[%- CASE 'debarredcomment' -%]<span>Restriction reason</span>
|
|
[%- CASE 'contactname' -%]<span>Guarantor surname</span>
|
|
[%- CASE 'contactfirstname' -%]<span>Guarantor firstname</span>
|
|
[%- CASE 'contacttitle' -%]<span>Guarantor title</span>
|
|
[%- CASE 'guarantorid' -%]<span>Guarantor ID</span>
|
|
[%- CASE 'borrowernotes' -%]<span>Circulation note</span>
|
|
[%- CASE 'relationship' -%]<span>Guarantor relationship</span>
|
|
[%- CASE 'sex' -%]<span>Gender</span>
|
|
[%- CASE 'flags' -%]<span>Permissions (code)</span>
|
|
[%- CASE 'userid' -%]<span>Username</span>
|
|
[%- CASE 'opacnote' -%]<span>OPAC note</span>
|
|
[%- CASE 'contactnote' -%]<span>Contact note</span>
|
|
[%- CASE 'sort1' -%]<span>Sort 1</span>
|
|
[%- CASE 'sort2' -%]<span>Sort 2</span>
|
|
[%- CASE 'altcontactfirstname' -%]<span>Alternate contact first name</span>
|
|
[%- CASE 'altcontactsurname' -%]<span>Alternate contact surname</span>
|
|
[%- CASE 'altcontactaddress1' -%]<span>Alternate contact address</span>
|
|
[%- CASE 'altcontactaddress2' -%]<span>Alternate contact address 2</span>
|
|
[%- CASE 'altcontactaddress3' -%]<span>Alternate contact city</span>
|
|
[%- CASE 'altcontactstate' -%]<span>Alternate contact state</span>
|
|
[%- CASE 'altcontactzipcode' -%]<span>Alternate contact ZIP/postal code</span>
|
|
[%- CASE 'altcontactcountry' -%]<span>Alternate contact country</span>
|
|
[%- CASE 'altcontactphone' -%]<span>Alternate contact phone</span>
|
|
[%- CASE 'smsalertnumber' -%]<span>SMS alert number</span>
|
|
[%- CASE 'sms_provider_id' -%]<span>SMS provider</span>
|
|
[%- CASE 'privacy' -%]<span>Privacy (code)</span>
|
|
[%- CASE 'privacy_guarantor_checkouts' -%]<span>Guarantor can view checkouts</span>
|
|
[%- CASE 'updated_on' -%]<span>Last updated</span>
|
|
[%- CASE 'lastseen' -%]<span>Last seen</span>
|
|
[%- CASE 'checkprevcheckout' -%]<span>Check previous checkout</span>
|
|
[%- CASE DEFAULT -%]
|
|
[%- END -%]
|
|
[%- END -%]
|