3 [% USE AuthorisedValues %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Update patron records › Patrons › Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="pat_update" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search-header.inc' %]
17 [% BLOCK display_names %]
19 [% CASE 'branchcode' %]<span>Home library (branchcode)</span>
20 [% CASE 'surname' %]<span>Surname</span>
21 [% CASE 'firstname' %]<span>First name</span>
22 [% CASE 'title' %]<span>Title</span>
23 [% CASE 'othernames' %]<span>Other names</span>
24 [% CASE 'initials' %]<span>Initials</span>
25 [% CASE 'streetnumber' %]<span>Street number</span>
26 [% CASE 'streettype' %]<span>Street type</span>
27 [% CASE 'address' %]<span>Address</span>
28 [% CASE 'address2' %]<span>Address 2</span>
29 [% CASE 'city' %]<span>City</span>
30 [% CASE 'state' %]<span>State</span>
31 [% CASE 'zipcode' %]<span>ZIP/Postal code</span>
32 [% CASE 'country' %]<span>Country</span>
33 [% CASE 'email' %]<span>Email</span>
34 [% CASE 'phone' %]<span>Primary phone</span>
35 [% CASE 'mobile' %]<span>Other phone</span>
36 [% CASE 'fax' %]<span>Fax</span>
37 [% CASE 'emailpro' %]<span>Secondary email</span>
38 [% CASE 'phonepro' %]<span>Secondary phone</span>
39 [% CASE 'B_streetnumber' %]<span>Alternate address: Street number</span>
40 [% CASE 'B_streettype' %]<span>Alternate address: Street type</span>
41 [% CASE 'B_address' %]<span>Alternate address: Address</span>
42 [% CASE 'B_address2' %]<span>Alternate address: Address 2</span>
43 [% CASE 'B_city' %]<span>Alternate address: City</span>
44 [% CASE 'B_state' %]<span>Alternate address: State</span>
45 [% CASE 'B_zipcode' %]<span>Alternate address: ZIP/Postal code</span>
46 [% CASE 'B_email' %]<span>Alternate address: Email</span>
47 [% CASE 'B_phone' %]<span>Alternate address: Phone</span>
48 [% CASE 'contactnote' %]<span>Alternate address: Contact note</span>
49 [% CASE 'dateofbirth' %]<span>Date of birth</span>
50 [% CASE 'contactname' %]<span>Contact: Last name</span>
51 [% CASE 'contactfirstname' %]<span>Contact: First name</span>
52 [% CASE 'contacttitle' %]<span>Contact: Title</span>
53 [% CASE 'relationship' %]<span>Contact: Relationship</span>
54 [% CASE 'sex' %]<span>Gender</span>
55 [% CASE 'autorenew_checkouts' %]<span>Auto-renewal</span>
56 [% CASE 'altcontactfirstname' %]<span>Alternate contact: First name</span>
57 [% CASE 'altcontactsurname' %]<span>Alternate contact: Surname</span>
58 [% CASE 'altcontactaddress1' %]<span>Alternate contact: Address</span>
59 [% CASE 'altcontactaddress2' %]<span>Alternate contact: Address 2</span>
60 [% CASE 'altcontactaddress3' %]<span>Alternate contact: City</span>
61 [% CASE 'altcontactstate' %]<span>Alternate contact: State</span>
62 [% CASE 'altcontactzipcode' %]<span>Alternate contact: ZIP/Postal code</span>
63 [% CASE 'altcontactcountry' %]<span>Alternate contact: Country</span>
64 [% CASE 'altcontactphone' %]<span>Alternate contact: Phone</span>
65 [% CASE 'smsalertnumber' %]<span>SMS alert number</span>
66 [% CASE 'extended_attributes' %]<span>Additional attributes and identifiers</span>
67 [% CASE %][% field | html %]
71 [% BLOCK display_extended_attributes %]
72 [% IF attrs and attrs.size > 1 %]
74 [% FOREACH attr IN attrs %]
75 <li>[% PROCESS display_attribute attr=attr type=type %]</li>
79 [% PROCESS display_attribute attr=attrs.0 type=type %]
83 [% BLOCK display_attribute %]
84 [% IF type.authorised_value_category %]
85 [% AuthorisedValues.GetByCode(type.authorised_value_category,attr.attribute) | html %]
87 [% attr.attribute | html %]
91 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
94 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
97 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
100 <a href="#" aria-current="page">
101 Update patron records
107 <div class="main container-fluid">
109 <div class="col-md-8 col-md-offset-2">
111 <h1>Update patron records</h1>
112 [% IF PendingModifications %]
113 <form method="post" action="members-update-do.pl">
114 <div id="pending_updates">
115 [% FOREACH pm IN PendingModifications %]
116 [% SET borrowernumber = pm.borrowernumber %]
117 <h3 class="panel-header" id="panel-header-[% pm.borrowernumber | html %]"><a href="#panel_modify_[% pm.borrowernumber | uri %]">[% borrowers.$borrowernumber.surname | html %][% IF ( borrowers.$borrowernumber.firstname ) %], [% borrowers.$borrowernumber.firstname | html %][% END %] - [% Categories.GetName( borrowers.$borrowernumber.categorycode ) | html %] ([% Branches.GetName( borrowers.$borrowernumber.branchcode ) | html %]) ([% borrowers.$borrowernumber.cardnumber | html %]) - Requested on [% pm.timestamp | $KohaDates with_hours = 1 %]</a></h3>
118 <div id="panel_modify_[% pm.borrowernumber | html %]">
119 <div class="btn-toolbar">
120 <input type="radio" id="approve_modify_[% pm.borrowernumber | html %]" name="modify_[% pm.borrowernumber | html %]" value="approve" />
121 <label for="approve_modify_[% pm.borrowernumber | html %]">Approve</label>
123 <input type="radio" id="deny_modify_[% pm.borrowernumber | html %]" name="modify_[% pm.borrowernumber | html %]" value="deny" />
124 <label for="deny_modify_[% pm.borrowernumber | html %]">Deny</label>
126 <input type="radio" id="ignore_modify_[% pm.borrowernumber | html %]" name="modify_[% pm.borrowernumber | html %]" value="ignore" checked="checked"/>
127 <label for="ignore_modify_[% pm.borrowernumber | html %]">Ignore</label>
128 | <a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% pm.borrowernumber | html %]" >Patron details</a>
131 [% IF borrowers.$borrowernumber.gonenoaddress > 0 %]
132 <div class="dialog message" style="margin-top:.8em">
133 <h4>Patron's address in doubt</h4>
134 <p>The <strong>Gone no address</strong> flag is set for this patron. If this modification request resolves the issue, please unset the flag.</p>
135 <input type="checkbox" id="unset_gna_[% pm.borrowernumber | html %]" name="unset_gna_[% pm.borrowernumber | html %]" value="unset_gna_[% pm.borrowernumber | html %]"/>
136 <label for="unset_gna_[% pm.borrowernumber | html %]">Unset Gone no address for this patron</label>
140 [% IF !pm.extended_attributes and pm.size > 3 or pm.extended_attributes and pm.size > 4 %]
141 [%# timestamp+verification_token+borrowernumber=3 %]
142 <div class="members-update-table">
151 [% FOREACH key IN pm.keys %]
152 [% IF ( key != "timestamp" and key != "extended_attributes" ) %]
153 [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
155 <td>[% PROCESS display_names field = key %]</td>
156 [% IF ( key == "dateofbirth" ) %]
157 <td>[% borrowers.$borrowernumber.$key | $KohaDates %]</td>
158 <td>[% pm.$key | $KohaDates %]</td>
159 [% ELSIF key == 'branchcode' %]
160 <td>[% Branches.GetName( borrowers.$borrowernumber.$key ) | html %]</td>
161 <td>[% Branches.GetName( pm.$key ) | html %]</td>
163 <td>[% borrowers.$borrowernumber.$key | html %]</td>
164 <td>[% pm.$key | html %]</td>
173 [% IF borrowers.$borrowernumber.modified_attributes %]
174 <div class="members-update-table">
175 <h4>[% PROCESS display_names field='extended_attributes' %]</h4>
182 [% FOREACH attribute_group IN borrowers.$borrowernumber.modified_attributes %]
184 <td>[% attribute_group.type.description | html %]</td>
185 <td>[% PROCESS display_extended_attributes attrs=attribute_group.before type=attribute_group.type %]</td>
186 <td>[% PROCESS display_extended_attributes attrs=attribute_group.after type=attribute_group.type %]</td>
195 <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
198 <div class="dialog message">
199 <p>There are no pending patron modifications.</p>
206 [% MACRO jsinclude BLOCK %]
207 [% INCLUDE 'str/members-menu.inc' %]
208 [% Asset.js("js/members-menu.js") | $raw %]
211 $( "#pending_updates" ).accordion({
213 heightStyle: "content",
214 header: ".panel-header",
215 [%- IF ( active ) -%]
216 active: $(".panel-header").index( $("#panel-header-[% active | html %]") )
225 [% INCLUDE 'intranet-bottom.inc' %]