View | Details | Raw Unified | Return to bug 20520
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-513 / +712 lines)
Lines 7-549 Link Here
7
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Patrons &rsaquo;
9
<title>Koha &rsaquo; Patrons &rsaquo;
10
[% UNLESS blocking_error %]
10
    [% UNLESS blocking_error %]
11
    Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
11
        Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
12
[% END %]
12
    [% END %]
13
</title>
13
</title>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% Asset.css("css/datatables.css") %]
15
[% Asset.css("css/datatables.css") %]
16
</head>
16
</head>
17
17
18
<body id="pat_moremember" class="pat">
18
<body id="pat_moremember" class="pat">
19
[% INCLUDE 'header.inc' %]
19
    [% INCLUDE 'header.inc' %]
20
[% INCLUDE 'patron-search.inc' %]
20
    [% INCLUDE 'patron-search.inc' %]
21
22
<div id="breadcrumbs">
23
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25
&rsaquo; [% UNLESS blocking_error %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
26
</div>
27
28
<div id="doc3" class="yui-t2">
29
   
30
   <div id="bd">
31
	<div id="yui-main">
32
	<div class="yui-b">
33
34
[% INCLUDE 'members-toolbar.inc' %]
35
36
[% IF ( error ) %]
37
<div class="dialog alert">
38
    [% IF ( error == 'CANT_DELETE_STAFF' ) %]
39
        <h3>Unable to delete staff user</h3>
40
        <p>Insufficient privileges.</p>
41
    [% END %]
42
    [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
43
        <h3>Not allowed to delete own account</h3>
44
        <p>Deleting your own account would lock you out of Koha.</p>
45
    [% END %]
46
    [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
47
        <h3>Unable to delete patrons from other libraries with current settings</h3>
48
        <p>Insufficient privileges.</p>
49
    [% END %]
50
    [% IF ( error == 'CANT_DELETE' ) %]
51
        <h3>Unable to delete patron</h3>
52
        <p>Insufficient privileges.</p>
53
    [% END %]
54
</div>
55
[% END %]
56
<div class="yui-g">
57
58
    [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]</div>[% END %]
59
21
60
    [% IF fines %]
22
    <div id="breadcrumbs">
61
    <div id="circmessages" class="circmessage attention">
23
        <a href="/cgi-bin/koha/mainpage.pl">Home</a>
62
      <ul>
24
        &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
63
        [% INCLUDE 'blocked-fines.inc' %]
25
        &rsaquo; [% UNLESS blocking_error %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
64
      </ul>
65
    </div>
26
    </div>
66
    [% END %]
67
27
68
    [% IF ( patron_messages ) %]
28
    <div id="doc3" class="yui-t2">
69
        <div id="messages" class="circmessage">
29
        <div id="bd">
70
            <h4>Messages:</h4>
30
            <div id="yui-main">
71
            <ul>
31
                <div class="yui-b">
72
                [% FOREACH patron_message IN patron_messages %]
32
73
                    <li>
33
                    [% INCLUDE 'members-toolbar.inc' %]
74
                        [% IF(patron_message.message_type == "L") %]
34
75
                            <span class="circ-hlt">
35
                    [% IF ( error ) %]
76
                        [% ELSE %]
36
                        <div class="dialog alert">
77
                            <span>
37
                            [% IF ( error == 'CANT_DELETE_STAFF' ) %]
78
                        [% END %]
38
                                <h3>Unable to delete staff user</h3>
79
                            [% patron_message.message_date | $KohaDates %]
39
                                <p>Insufficient privileges.</p>
80
                            [% Branches.GetName( patron_message.branchcode ) %]
81
                            [% IF patron_message.manager_id %]
82
                                ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id %]">[% patron_message.get_column('manager_firstname') %] [% patron_message.get_column('manager_surname') %]</a> )
83
                            [% END %]
40
                            [% END %]
84
                            <i>"[% patron_message.message | html %]"</i>
41
                            [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
85
                        </span>
42
                                <h3>Not allowed to delete own account</h3>
86
                        [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
43
                                <p>Deleting your own account would lock you out of Koha.</p>
87
                            <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id %]&amp;borrowernumber=[% patron_message.borrowernumber %]&amp;from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
44
                            [% END %]
88
                        [% END %]
45
                            [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
89
                    </li>
46
                                <h3>Unable to delete patrons from other libraries with current settings</h3>
90
                [% END %]
47
                                <p>Insufficient privileges.</p>
91
            </ul>
48
                            [% END %]
92
            <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
49
                            [% IF ( error == 'CANT_DELETE' ) %]
93
        </div>
50
                                <h3>Unable to delete patron</h3>
94
    [% END %]
51
                                <p>Insufficient privileges.</p>
52
                            [% END %]
53
                        </div>
54
                    [% END %]
95
55
96
    [% IF ( flagged ) %]
56
                    <div class="yui-g">
97
    <div id="circmessages" class="circmessage attention">
57
98
        <ul>
58
                        [% IF ( was_renewed ) %]
99
        [% IF ( userdebarred ) %]
59
                            <div class="dialog message">
100
            <li class="blocker">Patron's account is restricted
60
                                Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
101
               [% IF ( userdebarreddate ) %]
61
                            </div>
102
                   until [% userdebarreddate %]
103
               [% END %]
104
105
               [% IF ( debarredcomment ) %]
106
                   with the explanation: <i>
107
                   [% IF debarredcomment.search('OVERDUES_PROCESS') %]
108
                       Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
109
                   [% ELSE %]
110
                       [% debarredcomment | html_line_break %]
111
                   [% END %]
112
                    </i>
113
               [% END %]
114
                <a href="#reldebarments" id="view_restrictions">View restrictions</a>
115
            </li>
116
        [% END %]
117
        [% IF ( patron.gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
118
        [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
119
        </ul>
120
    </div>
121
    [% END %]
122
<h3>[% UNLESS ( I ) %]
123
   [% patron.title | html %] [% patron.firstname | html %] [% END %] [% patron.surname | html %] ([% patron.cardnumber | html %])</h3>
124
 <div class="yui-u first">
125
<div id="patron-information" style="padding : .5em;">
126
127
    [% IF ( patron.othernames ) %]&ldquo;[% patron.othernames | html %]&rdquo;[% END %]
128
129
    <div class = "address">
130
        [% IF Koha.Preference( 'AddressFormat' ) %]
131
            [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
132
        [% ELSE %]
133
            [% INCLUDE 'member-display-address-style-us.inc' %]
134
        [% END %]
135
    </div>
136
		    
137
	<div class="rows">
138
    <ol>
139
        [% IF ( patron.phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% patron.phone %]">[% patron.phone | html %]</a></li>[% END %]
140
        [% IF ( patron.phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a></li>[% END %]
141
        [% IF ( patron.mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a></li>[% END %]
142
        [% IF ( patron.fax ) %]<li><span class="label">Fax: </span>[% patron.fax |html %]</li>[% END %]
143
        [% IF ( patron.email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a></li>[% END %]
144
        [% IF ( patron.emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a></li>[% END %]
145
        [% UNLESS ( I ) %]
146
            [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %]
147
            [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
148
            [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>
149
                [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %]
150
            </li>[% END %]
151
        [% END %]
152
        [% IF guarantees %]
153
            <li>
154
                <span class="label">Guarantees:</span>
155
                <ul>
156
                    [% FOREACH guarantee IN guarantees %]
157
                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
158
                            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
159
                        [% ELSE %]
160
                            <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
161
                        [% END %]
62
                        [% END %]
162
                    [% END %]
163
                </ul>
164
            </li>
165
        [% ELSIF guarantor %]
166
            <li>
167
                <span class="label">Guarantor:</span>
168
                [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
169
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
170
                [% ELSE %]
171
                    [% guarantor.firstname | html %] [% guarantor.surname | html %]
172
                [% END %]
173
            </li>
174
        [% END %]
175
    </ol>
176
</div>
177
      <div class="action">
178
        [% IF ( guarantor.borrowernumber ) %]
179
        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]">Edit</a>
180
        [% ELSE %]
181
        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1">Edit</a>
182
        [% END %]</div>
183
184
</div>
185
186
<!-- Begin Upload Patron Image Section -->
187
188
<div id="manage-patron-image">
189
[% IF ( patronimages ) %]
190
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
191
        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
192
            <fieldset class="brief">
193
            [% IF ( patron.image ) %]
194
                <legend>Manage patron image</legend>
195
                <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
196
            [% ELSE %]
197
                <legend>Upload patron image</legend>
198
                <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload.
199
            [% END %]
200
                    <br />Only PNG, GIF, JPEG, XPM formats are supported.
201
                </div>
202
                <input type="hidden" id="image" name="filetype" value="image" />
203
                <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
204
                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
205
                <ol>
206
                    <li>
207
                       <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
208
                    </li>
209
                </ol>
210
                <fieldset class="action">
211
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
212
                    <input type="submit" value="Upload" class="submit" />
213
                    <input name="op" type="hidden" value="Upload" />
214
                    [% IF ( patron.image ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %]
215
                </fieldset>
216
            </fieldset>
217
        </form>
218
    [% END %]
219
[% END %]
220
</div>
221
222
<!-- End Upload Patron Image Section -->
223
224
[% IF Koha.Preference('HouseboundModule') %]
225
<div id="houseboundroles">
226
<h3>Housebound roles</h3>
227
<div class="rows">
228
  <ol>
229
    <li>
230
      <span class="label">Chooser:</span>
231
      [% IF ( housebound_role.housebound_chooser == 1 ) %]
232
        Yes
233
      [% ELSE %]
234
        No
235
      [% END %]
236
    </li>
237
    <li>
238
      <span class="label">Deliverer:</span>
239
      [% IF ( housebound_role.housebound_deliverer == 1 ) %]
240
        Yes
241
      [% ELSE %]
242
        No
243
      [% END %]
244
    </li>
245
  </ol>
246
</div>
247
</div>
248
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a></div>
249
[% END %]
250
63
251
[% IF ( ExtendedPatronAttributes ) %]
64
                        [% IF fines %]
252
[% UNLESS ( no_patron_attribute_types ) %]
65
                            <div id="circmessages" class="circmessage attention">
253
<div id="patron-extended-attributes" style="padding-top: 1em;">
66
                                <ul>
254
<h3>Additional attributes and identifiers</h3>
67
                                    [% INCLUDE 'blocked-fines.inc' %]
255
[% FOREACH attribute IN attributes_loop %]
68
                                </ul>
256
    [% IF attribute.class %]
69
                            </div>
257
        <div id="aai_[% attribute.class %]" class="rows">
70
                        [% END %]
258
    [% ELSE %]
259
        <div id="aai" class="rows">
260
    [% END %]
261
        <h4>[% attribute.lib %]</h4>
262
        <ol>
263
        [% FOREACH item IN attribute.items %]
264
            <li>
265
                <span class="label">[% item.description %]: </span>
266
                [% IF ( item.value_description ) %]
267
                    [% item.value_description %]
268
                [% ELSE %]
269
                    [% item.value| html_line_break %]
270
                [% END %]
271
            </li>
272
        [% END %]
273
        </ol>
274
    </div>
275
[% END %]
276
</div>
277
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a></div>
278
[% END %]
279
[% END %]
280
71
72
                        [% IF ( patron_messages ) %]
73
                            <div id="messages" class="circmessage">
74
                                <h4>Messages:</h4>
75
                                <ul>
76
                                    [% FOREACH patron_message IN patron_messages %]
77
                                        <li>
78
                                            [% IF(patron_message.message_type == "L") %]
79
                                                <span class="circ-hlt">
80
                                            [% ELSE %]
81
                                                <span>
82
                                            [% END %]
83
                                                [% patron_message.message_date | $KohaDates %]
84
                                                [% Branches.GetName( patron_message.branchcode ) %]
85
                                                [% IF patron_message.manager_id %]
86
                                                    ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id %]">[% patron_message.get_column('manager_firstname') %] [% patron_message.get_column('manager_surname') %]</a> )
87
                                                [% END %]
88
                                                <i>"[% patron_message.message | html %]"</i>
89
                                            </span>
90
                                            [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
91
                                                <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id %]&amp;borrowernumber=[% patron_message.borrowernumber %]&amp;from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
92
                                            [% END %]
93
                                        </li>
94
                                    [% END %]
95
                                </ul>
96
                                <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
97
                            </div>
98
                        [% END %]
281
99
282
[% IF ( EnhancedMessagingPreferences ) %]
100
                        [% IF ( flagged ) %]
283
<div id="patron-messaging-prefs" style="padding-top: 1em;">
101
                            <div id="circmessages" class="circmessage attention">
284
<h3>Patron messaging preferences</h3>
102
                                <ul>
285
[% INCLUDE 'messaging-preference-form.inc' %]
103
                                    [% IF ( userdebarred ) %]
286
 [% IF ( SMSSendDriver ) %]
104
                                        <li class="blocker">Patron's account is restricted
287
      <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a>
105
                                            [% IF ( userdebarreddate ) %]
288
     </li></ol></div>
106
                                                until [% userdebarreddate %]
289
 [% END %]
107
                                            [% END %]
290
</div>
108
291
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=5">Edit</a></div>
109
                                            [% IF ( debarredcomment ) %]
292
[% END %]
110
                                                with the explanation: <i>
111
                                                [% IF debarredcomment.search('OVERDUES_PROCESS') %]
112
                                                    Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
113
                                                [% ELSE %]
114
                                                    [% debarredcomment | html_line_break %]
115
                                                [% END %]
116
                                                </i>
117
                                            [% END %]
118
                                            <a href="#reldebarments" id="view_restrictions">View restrictions</a>
119
                                        </li>
120
                                    [% END %]
121
                                    [% IF ( patron.gonenoaddress ) %]
122
                                        <li class="blocker">Patron's address is in doubt.</li>
123
                                    [% END %]
124
                                    [% IF ( lost ) %]
125
                                        <li class="blocker">Patron's card has been reported lost.</li>
126
                                    [% END %]
127
                                </ul>
128
                            </div>
129
                        [% END %]
293
130
294
</div>
131
                        <h3>
295
 <div class="yui-u"> 
132
                            [% UNLESS ( I ) %]
296
 <div id="patron-library-details">
133
                                [% patron.title | html %] [% patron.firstname | html %]
297
 <h3>Library use</h3>
134
                            [% END %]
298
<div class="rows"> 
135
                            [% patron.surname | html %] ([% patron.cardnumber | html %])
299
<ol>
136
                        </h3>
300
    <li><span class="label">Card number: </span>[% patron.cardnumber %]</li>
137
                        <div class="yui-u first">
301
    <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li>
138
302
    <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li>
139
                            <div id="patron-information" style="padding : .5em;">
303
    <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li>
140
                                [% IF ( patron.othernames ) %]&ldquo;[% patron.othernames | html %]&rdquo;[% END %]
304
141
305
    <li><span class="label">Expiration date: </span>
142
                                <div class="address">
306
    [% IF ( was_renewed ) %]
143
                                    [% IF Koha.Preference( 'AddressFormat' ) %]
307
            <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
144
                                        [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
308
    [% ELSE %]
145
                                    [% ELSE %]
309
            [% patron.dateexpiry | $KohaDates %]
146
                                        [% INCLUDE 'member-display-address-style-us.inc' %]
310
    [% END %]
147
                                    [% END %]
311
    </li>
148
                                </div>
312
    
149
313
    <li><span class="label">Library: </span>[% branchname %]</li>
150
                                <div class="rows">
314
151
                                    <ol>
315
    [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
152
                                        [% IF ( patron.phone ) %]
316
         [% IF ( privacy0 ) %]Forever[% END %]
153
                                            <li>
317
         [% IF ( privacy1 ) %]Default[% END %]
154
                                                <span class="label">Primary phone: </span>
318
         [% IF ( privacy2 ) %]Never[% END %]
155
                                                <a href="tel:[% patron.phone %]">[% patron.phone | html %]</a>
319
    </li>[% END %]
156
                                            </li>
320
157
                                        [% END %]
321
    <li>
158
                                        [% IF ( patron.phonepro ) %]
322
        <span class="label">Show checkouts to guarantor</span>
159
                                            <li>
323
        [% IF privacy_guarantor_checkouts %]
160
                                                <span class="label">Secondary phone: </span>
324
            Yes
161
                                                <a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a>
325
        [% ELSE %]
162
                                            </li>
326
            No
163
                                        [% END %]
327
        [% END %]
164
                                        [% IF ( patron.mobile ) %]
328
    </li>
165
                                            <li>
329
166
                                                <span class="label">Other phone: </span>
330
    [% IF ( patron.sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]</li>[% END %]
167
                                                <a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a>
331
    [% IF ( patron.sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]</li>[% END %]
168
                                            </li>
332
    <li><span class="label">Username: </span>[% patron.userid |html  %]</li>
169
                                        [% END %]
333
    <li><span class="label">Password: </span>
170
                                        [% IF ( patron.fax ) %]
334
    [% IF ( patron.password ) %]
171
                                            <li>
335
        *******
172
                                                <span class="label">Fax: </span>
336
    [% ELSE %]
173
                                                [% patron.fax |html %]
337
        <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">Undefined</a></span>
174
                                            </li>
338
    [% END %] 
175
                                        [% END %]
339
    </li>
176
                                        [% IF ( patron.email ) %]
340
    [% IF ( patron.borrowernotes ) %]<li><span class="label">Circulation note: </span>[% patron.borrowernotes |html %]</li>[% END %]
177
                                            <li class="email">
341
    [% IF ( patron.opacnote ) %]<li><span class="label">OPAC note:</span>[% patron.opacnote |html %]</li>[% END %]
178
                                                <span class="label">Primary email:</span>
342
    [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
179
                                                <a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
343
        [% IF ( sync == 1 ) %]
180
                                            </li>
344
            <li><span class="label">Activate sync: </span>Yes</li>
181
                                        [% END %]
345
            [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
182
                                        [% IF ( patron.emailpro ) %]
346
            [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
183
                                            <li class="email">
347
        [% ELSE %]
184
                                                <span class="label">Secondary email: </span>
348
            <li><span class="label">Activate sync: </span>No</li>
185
                                                <a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
349
        [% END %]
186
                                            </li>
350
    [% END %]
187
                                        [% END %]
351
    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
188
                                        [% UNLESS ( I ) %]
352
      <li><span class="label">Check previous checkouts: </span>
189
                                            [% IF ( patron.initials ) %]
353
        [% IF ( patron.checkprevcheckout == 'yes' ) %]
190
                                                <li>
354
        Yes
191
                                                    <span class="label">Initials: </span>
355
        [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
192
                                                    [% patron.initials | html %]
356
        No
193
                                                </li>
357
        [% ELSE %]
194
                                            [% END %]
358
        Inherited
195
                                            [% IF ( patron.dateofbirth ) %]
359
        [% END %]
196
                                                <li>
360
      </li>
197
                                                    <span class="label">Date of birth:</span>
361
    [% END %]
198
                                                    [% patron.dateofbirth | $KohaDates %] ([% age %] years)
362
    [% IF Koha.Preference('TranslateNotices') %]
199
                                                </li>
363
        <li>
200
                                            [% END %]
364
            <span class="label">Preferred language for notices: </span>
201
                                            [% IF ( patron.sex ) %]
365
            [% translated_language %]
202
                                                <li>
366
        </li>
203
                                                    <span class="label">Gender:</span>
367
    [% END %]
204
                                                    [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %]
368
	</ol>
205
                                                </li>
369
	</div>
206
                                            [% END %]
370
 </div>
207
                                        [% END %]
371
    <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=3">Edit</a></div>
208
                                        [% IF guarantees %]
372
 
209
                                            <li>
373
 <div id="patron-alternate-address" style="padding-top: 1em;">
210
                                                <span class="label">Guarantees:</span>
374
    <h3>Alternate address</h3>
211
                                                <ul>
375
212
                                                    [% FOREACH guarantee IN guarantees %]
376
    [% IF Koha.Preference( 'AddressFormat' ) %]
213
                                                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
377
        [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
214
                                                            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
378
    [% ELSE %]
215
                                                        [% ELSE %]
379
        [% INCLUDE 'member-display-alt-address-style-us.inc' %]
216
                                                            <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
380
    [% END %]
217
                                                        [% END %]
218
                                                    [% END %]
219
                                                </ul>
220
                                            </li>
221
                                        [% ELSIF guarantor %]
222
                                            <li>
223
                                                <span class="label">Guarantor:</span>
224
                                                [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
225
                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
226
                                                [% ELSE %]
227
                                                    [% guarantor.firstname | html %] [% guarantor.surname | html %]
228
                                                [% END %]
229
                                            </li>
230
                                        [% END %]
231
                                    </ol>
232
                                </div> [% # /div.rows %]
233
                                <div class="action">
234
                                    [% IF ( guarantor.borrowernumber ) %]
235
                                        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]">Edit</a>
236
                                    [% ELSE %]
237
                                        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1">Edit</a>
238
                                    [% END %]
239
                                </div>
240
241
                            </div> [% # /div#patron-information %]
242
243
                            [% IF ( patronimages ) %]
244
                                [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
245
                                    <div id="manage-patron-image">
246
                                        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
247
                                            <fieldset class="brief">
248
                                                [% IF ( patron.image ) %]
249
                                                    <legend>Manage patron image</legend>
250
                                                    <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
251
                                                [% ELSE %]
252
                                                    <legend>Upload patron image</legend>
253
                                                    <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload.
254
                                                [% END %]
255
                                                <br />Only PNG, GIF, JPEG, XPM formats are supported.
256
                                                </div>
257
                                                <input type="hidden" id="image" name="filetype" value="image" />
258
                                                <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
259
                                                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
260
                                                <ol>
261
                                                    <li>
262
                                                       <label for="uploadfile">Select the file to upload: </label>
263
                                                       <input type="file" id="uploadfile" name="uploadfile" />
264
                                                    </li>
265
                                                </ol>
266
                                                <fieldset class="action">
267
                                                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
268
                                                    <input type="submit" value="Upload" class="submit" />
269
                                                    <input name="op" type="hidden" value="Upload" />
270
                                                    [% IF ( patron.image ) %]
271
                                                        <a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="delete">Delete</a>
272
                                                    [% END %]
273
                                                </fieldset>
274
                                            </fieldset>
275
                                        </form>
276
                                    </div> [% # /div#manage-patron-image %]
277
                                [% END %]
278
                            [% END %]
381
279
382
    <div class="rows">  <ol>
280
                            [% IF Koha.Preference('HouseboundModule') %]
383
      [% IF ( patron.B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.B_phone %]">[% patron.B_phone |html  %]</a></li>[% END %]
281
                                <div id="houseboundroles">
384
      [% IF ( patron.B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a></li>[% END %]
282
                                    <h3>Housebound roles</h3>
385
      [% IF ( patron.contactnote ) %]<li><span class="label">Contact note: </span> [% patron.contactnote |html %]</li>[% END %]
283
                                    <div class="rows">
386
      </ol>
284
                                        <ol>
387
    </div>
285
                                            <li>
388
</div>
286
                                                <span class="label">Chooser:</span>
389
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=6">Edit</a></div>
287
                                                [% IF ( housebound_role.housebound_chooser == 1 ) %]
390
288
                                                    Yes
391
 <div id="patron-alternative-contact" style="padding-top: 1em;">
289
                                                [% ELSE %]
392
 <h3>Alternative contact</h3>
290
                                                    No
393
   <div class="rows"> <ol><li><span class="label">Surname: </span>[% patron.altcontactsurname | html %]</li>
291
                                                [% END %]
394
    <li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li>
292
                                            </li>
395
    <li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li>
293
                                            <li>
396
    <li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li>
294
                                                <span class="label">Deliverer:</span>
397
    <li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li>
295
                                                [% IF ( housebound_role.housebound_deliverer == 1 ) %]
398
    [% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %]
296
                                                    Yes
399
    <li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li>
297
                                                [% ELSE %]
400
    [% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %]
298
                                                    No
401
    [% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %]
299
                                                [% END %]
402
    </ol></div>
300
                                            </li>
403
</div>
301
                                        </ol>
404
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=2">Edit</a></div>
302
                                    </div>
405
303
                                </div>
406
</div>
304
                                <div class="action">
407
</div>
305
                                    <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a>
408
<div id="finesholdsissues" class="toptabs">
306
                                </div>
409
    <ul>
307
                            [% END %]
410
        <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
411
        [% IF relatives_issues_count %]
412
            <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
413
        [% END %]
414
        <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
415
        <li>
416
            [% IF ( holds_count ) %]
417
                <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
418
            [% ELSE %]
419
                <a href="#reserves" id="holds-tab">0 Holds</a>
420
            [% END %]
421
        </li>
422
        [% IF Koha.Preference('ArticleRequests') %]
423
            <li>
424
                <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
425
            </li>
426
        [% END %]
427
        <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
428
429
        [% SET enrollments = patron.get_club_enrollments(1) %]
430
        [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
431
        [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
432
            <li>
433
                <a id="clubs-tab-link" href="#clubs-tab">
434
                    Clubs ([% enrollments.count %]/[% enrollable.count %])
435
                </a>
436
            </li>
437
        [% END %]
438
    </ul>
439
440
[% INCLUDE "checkouts-table.inc" %]
441
442
[% IF ( relatives_issues_count ) %]
443
    <div id="relatives-issues">
444
        <table id="relatives-issues-table" style="width: 100% !Important;">
445
            <thead>
446
                <tr>
447
                    <th scope="col">Due date hidden not formatted</th>
448
                    <th scope="col">Due date</th>
449
                    <th scope="col">Title</th>
450
                    <th scope="col">Item type</th>
451
                    <th scope="col">Location</th>
452
                    <th scope="col">Checked out on</th>
453
                    <th scope="col">Checked out from</th>
454
                    <th scope="col">Call no</th>
455
                    <th scope="col">Charge</th>
456
                    <th scope="col">Fine</th>
457
                    <th scope="col">Price</th>
458
                    <th scope="col">Patron</th>
459
                </tr>
460
            </thead>
461
        </table>
462
    </div>
463
[% END %]
464
308
465
<div id="finesandcharges">
309
                            [% IF ( ExtendedPatronAttributes ) %]
466
    [% IF ( totaldue_raw ) %]
310
                                [% UNLESS ( no_patron_attribute_types ) %]
467
        <p>Total due: [% totaldue %]</p>
311
                                    <div id="patron-extended-attributes" style="padding-top: 1em;">
468
    [% ELSE %]
312
                                        <h3>Additional attributes and identifiers</h3>
469
        <p>No outstanding charges</p>
313
                                        [% FOREACH attribute IN attributes_loop %]
470
    [% END %]
314
                                            [% IF attribute.class %]
471
</div>
315
                                                <div id="aai_[% attribute.class %]" class="rows">
316
                                            [% ELSE %]
317
                                                <div id="aai" class="rows">
318
                                            [% END %]
319
                                                <h4>[% attribute.lib %]</h4>
320
                                                <ol>
321
                                                    [% FOREACH item IN attribute.items %]
322
                                                        <li>
323
                                                            <span class="label">[% item.description %]: </span>
324
                                                            [% IF ( item.value_description ) %]
325
                                                                [% item.value_description %]
326
                                                            [% ELSE %]
327
                                                                [% item.value| html_line_break %]
328
                                                            [% END %]
329
                                                        </li>
330
                                                    [% END %]
331
                                                </ol>
332
                                            </div>
333
                                        [% END %]
334
                                    </div>
335
                                    <div class="action">
336
                                        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a>
337
                                    </div>
338
                                [% END %]
339
                            [% END %]
472
340
473
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
341
                            [% IF ( EnhancedMessagingPreferences ) %]
474
    <div id="clubs-tab">
342
                                <div id="patron-messaging-prefs" style="padding-top: 1em;">
475
        Loading...
343
                                    <h3>Patron messaging preferences</h3>
476
    </div>
344
                                    [% INCLUDE 'messaging-preference-form.inc' %]
477
[% END %]
345
                                    [% IF ( SMSSendDriver ) %]
346
                                        <div class="rows">
347
                                            <ol>
348
                                                <li>
349
                                                    <span class="label">SMS number:</span>
350
                                                    <a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a>
351
                                                </li>
352
                                            </ol>
353
                                        </div>
354
                                    [% END %]
355
                                </div>
356
                                <div class="action">
357
                                    <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=5">Edit</a>
358
                                </div>
359
                            [% END %]
478
360
479
[% INCLUDE borrower_debarments.inc %]
361
                        </div> [% # /div.yui-u.first %]
480
362
481
<div id="reserves">
363
                        <div class="yui-u">
482
[% IF ( holds_count ) %]
364
                            <div id="patron-library-details">
483
    <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
365
                                <h3>Library use</h3>
484
        <input type="hidden" name="from" value="circ" />
366
                                <div class="rows">
485
        <table id="holds-table" style="width: 100% !Important;">
367
                                    <ol>
486
            <thead>
368
                                        <li>
487
                <tr>
369
                                            <span class="label">Card number: </span>
488
                    <th>Hold date</th>
370
                                            [% patron.cardnumber %]
489
                    <th>Title</th>
371
                                        </li>
490
                    <th>Call number</th>
372
                                        <li>
491
                    <th>Barcode</th>
373
                                            <span class="label">Borrowernumber: </span>
492
                    <th>Pickup at</th>
374
                                            [% patron.borrowernumber %]
493
                    <th>Expiration</th>
375
                                        </li>
494
                    <th>Priority</th>
376
                                        <li>
495
                    <th>Delete?</th>
377
                                            <span class="label">Category: </span>
496
                    <th>Suspend?</th>
378
                                            [% patron.category.description %] ([% patron.categorycode %])
497
                </tr>
379
                                        </li>
498
            </thead>
380
                                        <li>
499
        </table>
381
                                            <span class="label">Registration date: </span>
500
382
                                            [% patron.dateenrolled | $KohaDates %]
501
        <fieldset class="action">
383
                                        </li>
502
            <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
384
503
        </fieldset>
385
                                        <li>
504
    </form>
386
                                            <span class="label">Expiration date: </span>
505
387
                                            [% IF ( was_renewed ) %]
506
    [% IF Koha.Preference('SuspendHoldsIntranet') %]
388
                                                <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
507
    <fieldset class="action">
389
                                            [% ELSE %]
508
        <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
390
                                                [% patron.dateexpiry | $KohaDates %]
509
            <input type="hidden" name="from" value="borrower" />
391
                                            [% END %]
510
            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
392
                                        </li>
511
            <input type="submit" value="Suspend all holds" />
393
                                        <li>
512
394
                                            <span class="label">Library: </span>
513
            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
395
                                            [% branchname %]
514
            <label for="suspend_until">until</label>
396
                                        </li>
515
            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
397
516
            <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
398
                                        [% IF ( OPACPrivacy ) %]
517
            [% END %]
399
                                            <li>
518
        </form>
400
                                                <span class="label">Privacy Pref:</span>
519
    </fieldset>
401
                                                    [% IF ( privacy0 ) %]Forever[% END %]
402
                                                    [% IF ( privacy1 ) %]Default[% END %]
403
                                                    [% IF ( privacy2 ) %]Never[% END %]
404
                                            </li>
405
                                        [% END %]
406
407
                                        <li>
408
                                            <span class="label">Show checkouts to guarantor</span>
409
                                            [% IF privacy_guarantor_checkouts %]
410
                                                Yes
411
                                            [% ELSE %]
412
                                                No
413
                                            [% END %]
414
                                        </li>
415
416
                                        [% IF ( patron.sort1 ) %]
417
                                            <li>
418
                                                <span class="label">Sort field 1:</span>
419
                                                [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]
420
                                            </li>
421
                                        [% END %]
422
                                        [% IF ( patron.sort2 ) %]
423
                                            <li>
424
                                                <span class="label">Sort field 2:</span>
425
                                                [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]
426
                                            </li>
427
                                        [% END %]
428
                                        <li>
429
                                            <span class="label">Username: </span>
430
                                            [% patron.userid |html  %]
431
                                        </li>
432
                                        <li>
433
                                            <span class="label">Password: </span>
434
                                            [% IF ( patron.password ) %]
435
                                                *******
436
                                            [% ELSE %]
437
                                                <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">Undefined</a></span>
438
                                            [% END %]
439
                                        </li>
440
441
                                        [% IF ( patron.borrowernotes ) %]
442
                                            <li>
443
                                                <span class="label">Circulation note: </span>
444
                                                [% patron.borrowernotes |html %]
445
                                            </li>
446
                                        [% END %]
447
448
                                        [% IF ( patron.opacnote ) %]
449
                                            <li>
450
                                                <span class="label">OPAC note:</span>
451
                                                [% patron.opacnote |html %]
452
                                            </li>
453
                                        [% END %]
454
455
                                        [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
456
                                            [% IF ( sync == 1 ) %]
457
                                                <li>
458
                                                    <span class="label">Activate sync: </span>
459
                                                    Yes
460
                                                </li>
461
                                                [% IF ( syncstatus ) %]
462
                                                    <li>
463
                                                        <span class="label">Sync status: </span>
464
                                                        [% syncstatus %]
465
                                                    </li>
466
                                                [% END %]
467
                                                [% IF ( lastsync ) %]
468
                                                    <li>
469
                                                        <span class="label">Last sync: </span>
470
                                                        [% lastsync | $KohaDates %]
471
                                                    </li>
472
                                                [% END %]
473
                                            [% ELSE %]
474
                                                <li>
475
                                                    <span class="label">Activate sync: </span>
476
                                                    No
477
                                                </li>
478
                                            [% END %]
479
                                        [% END %]
480
481
                                        [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
482
                                            <li>
483
                                                <span class="label">Check previous checkouts: </span>
484
                                                [% IF ( patron.checkprevcheckout == 'yes' ) %]
485
                                                    Yes
486
                                                [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
487
                                                    No
488
                                                [% ELSE %]
489
                                                    Inherited
490
                                                [% END %]
491
                                            </li>
492
                                        [% END %]
493
494
                                        [% IF Koha.Preference('TranslateNotices') %]
495
                                            <li>
496
                                                <span class="label">Preferred language for notices: </span>
497
                                                [% translated_language %]
498
                                            </li>
499
                                        [% END %]
500
                                    </ol>
501
                                </div> [% # /div.rows %]
502
                            </div> [% # /div#patron-library-details %]
503
                            <div class="action">
504
                                <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=3">Edit</a>
505
                            </div>
506
507
                            <div id="patron-alternate-address" style="padding-top: 1em;">
508
                                <h3>Alternate address</h3>
509
510
                                [% IF Koha.Preference( 'AddressFormat' ) %]
511
                                    [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
512
                                [% ELSE %]
513
                                    [% INCLUDE 'member-display-alt-address-style-us.inc' %]
514
                                [% END %]
515
516
                                <div class="rows">
517
                                    <ol>
518
                                        [% IF ( patron.B_phone ) %]
519
                                            <li>
520
                                                <span class="label">Phone: </span>
521
                                                <a href="tel:[% patron.B_phone %]">[% patron.B_phone |html  %]</a>
522
                                            </li>
523
                                        [% END %]
524
                                        [% IF ( patron.B_email ) %]
525
                                            <li class="email">
526
                                                <span class="label">Email: </span>
527
                                                <a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
528
                                            </li>
529
                                        [% END %]
530
                                        [% IF ( patron.contactnote ) %]
531
                                            <li>
532
                                                <span class="label">Contact note: </span>
533
                                                [% patron.contactnote |html %]
534
                                            </li>
535
                                        [% END %]
536
                                    </ol>
537
                                </div>
538
                            </div> [% # /div#patron-alternate-address %]
539
                            <div class="action">
540
                                <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=6">Edit</a>
541
                            </div>
542
543
                            <div id="patron-alternative-contact" style="padding-top: 1em;">
544
                                <h3>Alternative contact</h3>
545
                                <div class="rows">
546
                                    <ol>
547
                                        <li>
548
                                            <span class="label">Surname: </span>
549
                                            [% patron.altcontactsurname | html %]
550
                                        </li>
551
                                        <li>
552
                                            <span class="label">First name: </span>
553
                                            [% patron.altcontactfirstname | html %]
554
                                        </li>
555
                                        <li>
556
                                            <span class="label">Address: </span>
557
                                            [% patron.altcontactaddress1 | html %]
558
                                        </li>
559
                                        <li>
560
                                            <span class="label">Address 2: </span>
561
                                            [% patron.altcontactaddress2 | html %]
562
                                        </li>
563
                                        <li>
564
                                            <span class="label">City: </span>
565
                                            [% patron.altcontactaddress3 | html %]
566
                                        </li>
567
568
                                        [% IF ( patron.altcontactstate ) %]
569
                                            <li>
570
                                                <span class="label">State: </span>
571
                                                [% patron.altcontactstate | html %]
572
                                            </li>
573
                                        [% END %]
574
575
                                        <li>
576
                                            <span class="label">ZIP/Postal code: </span>
577
                                            [% patron.altcontactzipcode | html %]
578
                                        </li>
579
                                        [% IF ( patron.altcontactcountry ) %]
580
                                            <li>
581
                                                <span class="label">Country: </span>
582
                                                [% patron.altcontactcountry | html %]
583
                                            </li>
584
                                        [% END %]
585
                                        [% IF ( patron.altcontactphone ) %]
586
                                            <li>
587
                                                <span class="label">Phone: </span>
588
                                                <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
589
                                            </li>
590
                                        [% END %]
591
                                    </ol>
592
                                </div> [% # /div.rows %]
593
                            </div> [% # /div#patron-alternative-contact %]
594
                            <div class="action">
595
                                <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=2">Edit</a>
596
                            </div>
597
                        </div> [% # /div.yui-u %]
598
                    </div> [% # /div.yui-g %]
599
600
                    <div id="finesholdsissues" class="toptabs">
601
                        <ul>
602
                            <li>
603
                                <a href="#checkouts">[% issuecount %] Checkout(s)</a>
604
                            </li>
605
                            [% IF relatives_issues_count %]
606
                                <li>
607
                                    <a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a>
608
                                </li>
609
                            [% END %]
610
                            <li>
611
                                <a href="#finesandcharges">Fines &amp; Charges</a>
612
                            </li>
613
                            <li>
614
                                [% IF ( holds_count ) %]
615
                                    <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
616
                                [% ELSE %]
617
                                    <a href="#reserves" id="holds-tab">0 Holds</a>
618
                                [% END %]
619
                            </li>
620
                            [% IF Koha.Preference('ArticleRequests') %]
621
                                <li>
622
                                    <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
623
                                </li>
624
                            [% END %]
625
                            <li>
626
                                <a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a>
627
                            </li>
628
                            [% SET enrollments = patron.get_club_enrollments(1) %]
629
                            [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
630
                            [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
631
                                <li>
632
                                    <a id="clubs-tab-link" href="#clubs-tab">
633
                                        Clubs ([% enrollments.count %]/[% enrollable.count %])
634
                                    </a>
635
                                </li>
636
                            [% END %]
637
                        </ul>
638
639
                        [% INCLUDE "checkouts-table.inc" %]
640
641
                        [% IF ( relatives_issues_count ) %]
642
                            <div id="relatives-issues">
643
                                <table id="relatives-issues-table" style="width: 100% !Important;">
644
                                    <thead>
645
                                        <tr>
646
                                            <th scope="col">Due date hidden not formatted</th>
647
                                            <th scope="col">Due date</th>
648
                                            <th scope="col">Title</th>
649
                                            <th scope="col">Item type</th>
650
                                            <th scope="col">Location</th>
651
                                            <th scope="col">Checked out on</th>
652
                                            <th scope="col">Checked out from</th>
653
                                            <th scope="col">Call no</th>
654
                                            <th scope="col">Charge</th>
655
                                            <th scope="col">Fine</th>
656
                                            <th scope="col">Price</th>
657
                                            <th scope="col">Patron</th>
658
                                        </tr>
659
                                    </thead>
660
                                </table>
661
                            </div>
662
                        [% END %]
520
663
521
    <fieldset class="action">
664
                        <div id="finesandcharges">
522
        <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
665
                            [% IF ( totaldue_raw ) %]
523
            <input type="hidden" name="from" value="borrower" />
666
                                <p>Total due: [% totaldue %]</p>
524
            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
667
                            [% ELSE %]
525
            <input type="hidden" name="suspend" value="0" />
668
                                <p>No outstanding charges</p>
526
            <input type="submit" value="Resume all suspended holds" />
669
                            [% END %]
527
	</form>
670
                        </div>
528
    </fieldset>
529
    [% END # IF SuspendHoldsIntranet %]
530
671
531
    [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
672
                        [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
532
	</div>
673
                            <div id="clubs-tab">
674
                                Loading...
675
                            </div>
676
                        [% END %]
533
677
678
                        [% INCLUDE borrower_debarments.inc %]
679
680
                        <div id="reserves">
681
                            [% IF ( holds_count ) %]
682
                                <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
683
                                    <input type="hidden" name="from" value="circ" />
684
                                    <table id="holds-table" style="width: 100% !Important;">
685
                                        <thead>
686
                                            <tr>
687
                                                <th>Hold date</th>
688
                                                <th>Title</th>
689
                                                <th>Call number</th>
690
                                                <th>Barcode</th>
691
                                                <th>Pickup at</th>
692
                                                <th>Expiration</th>
693
                                                <th>Priority</th>
694
                                                <th>Delete?</th>
695
                                                <th>Suspend?</th>
696
                                            </tr>
697
                                        </thead>
698
                                    </table>
699
700
                                    <fieldset class="action">
701
                                        <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
702
                                    </fieldset>
703
                                </form>
704
705
                                [% IF Koha.Preference('SuspendHoldsIntranet') %]
706
                                    <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
707
                                        <fieldset class="action">
708
                                            <input type="hidden" name="from" value="borrower" />
709
                                            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
710
                                            <input type="submit" value="Suspend all holds" />
711
712
                                            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
713
                                                <label for="suspend_until">until</label>
714
                                                <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
715
                                                <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
716
                                            [% END %]
717
                                        </fieldset>
718
                                    </form>
719
720
                                    <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
721
                                        <fieldset class="action">
722
                                            <input type="hidden" name="from" value="borrower" />
723
                                            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
724
                                            <input type="hidden" name="suspend" value="0" />
725
                                            <input type="submit" value="Resume all suspended holds" />
726
                                        </fieldset>
727
                                    </form>
728
                                [% END # IF SuspendHoldsIntranet %]
729
730
                            [% ELSE %]
731
                                <p>Patron has nothing on hold.</p>
732
                            [% END %]
733
                        </div> [% # /div#reserves %]
534
734
535
[% IF Koha.Preference('ArticleRequests') %]
735
                        [% IF Koha.Preference('ArticleRequests') %]
536
    [% INCLUDE 'patron-article-requests.inc' %]
736
                            [% INCLUDE 'patron-article-requests.inc' %]
537
[% END %]
737
                        [% END %]
538
738
539
</div>
739
                    </div> [% # /div#finesholdsissues %]
740
                </div> [% # /div.yui-b %]
741
            </div> [% # /div#yui-main %]
540
742
541
</div>
743
            <div class="yui-b">
542
</div>
744
                [% INCLUDE 'circ-menu.inc' %]
543
<div class="yui-b">
745
            </div>
544
[% INCLUDE 'circ-menu.inc' %]
746
        </div> [% # /div#bd %]
545
</div>
546
</div>
547
747
548
[% MACRO jsinclude BLOCK %]
748
[% MACRO jsinclude BLOCK %]
549
    [% INCLUDE 'datatables.inc' %]
749
    [% INCLUDE 'datatables.inc' %]
Lines 559-565 Link Here
559
    [% Asset.js("js/holds.js") %]
759
    [% Asset.js("js/holds.js") %]
560
    [% Asset.js("js/members-menu.js") %]
760
    [% Asset.js("js/members-menu.js") %]
561
    [% Asset.js("js/messaging-preference-form.js") %]
761
    [% Asset.js("js/messaging-preference-form.js") %]
562
    <script type="text/javascript">
762
    <script>
563
        /* Set some variable needed in circulation.js */
763
        /* Set some variable needed in circulation.js */
564
        var interface = "[% interface %]";
764
        var interface = "[% interface %]";
565
        var theme = "[% theme %]";
765
        var theme = "[% theme %]";
566
- 

Return to bug 20520