[% USE raw %]
[% USE Asset %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE Categories %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Patrons › Update patron records
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
[% BLOCK display_names %]
[% SWITCH field %]
[% CASE 'branchcode' %]Home library (branchcode)
[% CASE 'surname' %]Surname
[% CASE 'firstname' %]First name
[% CASE 'title' %]Title
[% CASE 'othernames' %]Other names
[% CASE 'initials' %]Initials
[% CASE 'streetnumber' %]Street number
[% CASE 'streettype' %]Street type
[% CASE 'address' %]Address
[% CASE 'address2' %]Address 2
[% CASE 'city' %]City
[% CASE 'state' %]State
[% CASE 'zipcode' %]ZIP/Postal code
[% CASE 'country' %]Country
[% CASE 'email' %]Email
[% CASE 'phone' %]Primary phone
[% CASE 'mobile' %]Other phone
[% CASE 'fax' %]Fax
[% CASE 'emailpro' %]Secondary email
[% CASE 'phonepro' %]Secondary phone
[% CASE 'B_streetnumber' %]Alternate address: Street number
[% CASE 'B_streettype' %]Alternate address: Street type
[% CASE 'B_address' %]Alternate address: Address
[% CASE 'B_address2' %]Alternate address: Address 2
[% CASE 'B_city' %]Alternate address: City
[% CASE 'B_state' %]Alternate address: State
[% CASE 'B_zipcode' %]Alternate address: ZIP/Postal code
[% CASE 'B_email' %]Alternate address: Email
[% CASE 'B_phone' %]Alternate address: Phone
[% CASE 'contactnote' %]Alternate address: Contact note
[% CASE 'dateofbirth' %]Date of birth
[% CASE 'contactname' %]Contact: Last name
[% CASE 'contactfirstname' %]Contact: First name
[% CASE 'contacttitle' %]Contact: Title
[% CASE 'relationship' %]Contact: Relationship
[% CASE 'sex' %]Gender
[% CASE 'autorenew_checkouts' %]Auto-renewal
[% CASE 'altcontactfirstname' %]Alternate contact: First name
[% CASE 'altcontactsurname' %]Alternate contact: Surname
[% CASE 'altcontactaddress1' %]Alternate contact: Address
[% CASE 'altcontactaddress2' %]Alternate contact: Address 2
[% CASE 'altcontactaddress3' %]Alternate contact: City
[% CASE 'altcontactstate' %]Alternate contact: State
[% CASE 'altcontactzipcode' %]Alternate contact: ZIP/Postal code
[% CASE 'altcontactcountry' %]Alternate contact: Country
[% CASE 'altcontactphone' %]Alternate contact: Phone
[% CASE 'smsalertnumber' %]SMS alert number
[% CASE 'extended_attributes' %]Additional attributes and identifiers
[% CASE %][% field | html %]
[% END %]
[% END %]
[% BLOCK display_extended_attributes %]
[% IF attrs and attrs.size > 1 %]
[% FOREACH attr IN attrs %]
[% PROCESS display_attribute attr=attr type=type %]
[% END %]
[% ELSIF attrs %]
[% PROCESS display_attribute attr=attrs.0 type=type %]
[% END %]
[% END %]
[% BLOCK display_attribute %]
[% IF type.authorised_value_category %]
[% AuthorisedValues.GetByCode(type.authorised_value_category,attr.attribute) | html %]
[% ELSE %]
[% attr.attribute | html %]
[% END %]
[% END %]