[% USE Branches %] [% USE KohaDates %] [% 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' %]Sex [% 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 %][% field %] [% END %] [% END %]
[% IF PendingModifications %]

Update patron records

[% FOREACH pm IN PendingModifications %] [% SET borrowernumber = pm.borrowernumber %]

[% borrowers.$borrowernumber.surname %][% IF ( borrowers.$borrowernumber.firstname ) %], [% borrowers.$borrowernumber.firstname %][% END %] ([% Branches.GetName( borrowers.$borrowernumber.branchcode ) %]) ([% borrowers.$borrowernumber.cardnumber %])

| Patron details
[% FOREACH key IN pm.keys %] [% IF ( key != "timestamp" ) %] [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %] [% IF ( key == "dateofbirth" ) %] [% ELSE %] [% END %] [% END %] [% END %] [% END %]
Field Old value New value
[% PROCESS display_names field = key %][% borrowers.$borrowernumber.$key | $KohaDates %] [% pm.$key | $KohaDates %][% borrowers.$borrowernumber.$key %] [% pm.$key %]
[% END %]
[% ELSE %]

There are no pending patron modifications.

[% END %]
[% INCLUDE 'intranet-bottom.inc' %]