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

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

Return to bug 20520