|
Lines 231-354
Link Here
|
| 231 |
[% END %] |
231 |
[% END %] |
| 232 |
[% IF borrowers %] |
232 |
[% IF borrowers %] |
| 233 |
<div id="cataloguing_additem_itemlist" class="page-section"> |
233 |
<div id="cataloguing_additem_itemlist" class="page-section"> |
| 234 |
<div style="overflow:auto"> |
234 |
<table id="borrowerst"> |
| 235 |
<table id="borrowerst"> |
235 |
<thead> |
| 236 |
<thead> |
236 |
<tr> |
|
|
237 |
[% IF ( op == 'show' ) %] |
| 238 |
<th class="NoSort"> </th> |
| 239 |
[% ELSE %] |
| 240 |
<th class="NoVisible"> </th> |
| 241 |
[% END %] |
| 242 |
<th>Card number</th> |
| 243 |
<th>Surname</th> |
| 244 |
<th>First name</th> |
| 245 |
<th>Library</th> |
| 246 |
<th>Patron category</th> |
| 247 |
<th>Street number</th> |
| 248 |
<th>Address</th> |
| 249 |
<th>Address 2</th> |
| 250 |
<th>City</th> |
| 251 |
<th>State</th> |
| 252 |
<th>ZIP/Postal code</th> |
| 253 |
<th>Country</th> |
| 254 |
<th>Primary email</th> |
| 255 |
<th>Primary phone</th> |
| 256 |
<th>Other phone</th> |
| 257 |
<th>Fax</th> |
| 258 |
<th>Registration date</th> |
| 259 |
<th>Expiry date</th> |
| 260 |
[% IF CanUpdatePasswordExpiration %] |
| 261 |
<th>Password expiration date</th> |
| 262 |
[% END %] |
| 263 |
[% IF CanUpdateProtectPatron %] |
| 264 |
<th>Protected</th> |
| 265 |
[% END %] |
| 266 |
<th>Circulation note</th> |
| 267 |
<th>OPAC note</th> |
| 268 |
<th>Message</th> |
| 269 |
<th>Restriction expiration</th> |
| 270 |
<th>Restriction comment</th> |
| 271 |
[% FOREACH attrh IN attributes_header %] |
| 272 |
<th>[% attrh.attribute | html %]</th> |
| 273 |
[% END %] |
| 274 |
</tr> |
| 275 |
</thead> |
| 276 |
<tbody> |
| 277 |
[% FOREACH borrower IN borrowers %] |
| 237 |
<tr> |
278 |
<tr> |
| 238 |
[% IF ( op == 'show' ) %] |
279 |
[% IF ( op == 'show' ) %] |
| 239 |
<th class="NoSort"> </th> |
280 |
<td> |
| 240 |
[% ELSE %] |
281 |
[% ELSE %] |
| 241 |
<th class="NoVisible"> </th> |
282 |
<td class="NoVisible"> |
| 242 |
[% END %] |
283 |
[% END %] |
| 243 |
<th>Card number</th> |
284 |
<input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" /> |
| 244 |
<th>Surname</th> |
285 |
</td> |
| 245 |
<th>First name</th> |
286 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td> |
| 246 |
<th>Library</th> |
287 |
<td>[% borrower.surname | html %]</td> |
| 247 |
<th>Patron category</th> |
288 |
<td>[% borrower.firstname | html %]</td> |
| 248 |
<th>Street number</th> |
289 |
<td>[% Branches.GetName( borrower.branchcode ) | html %]</td> |
| 249 |
<th>Address</th> |
290 |
<td>[% Categories.GetName(borrower.categorycode) | html %]</td> |
| 250 |
<th>Address 2</th> |
291 |
<td>[% borrower.streetnumber | html %]</td> |
| 251 |
<th>City</th> |
292 |
<td>[% borrower.address | html %]</td> |
| 252 |
<th>State</th> |
293 |
<td>[% borrower.address2 | html %]</td> |
| 253 |
<th>ZIP/Postal code</th> |
294 |
<td>[% borrower.city | html %]</td> |
| 254 |
<th>Country</th> |
295 |
<td>[% borrower.state | html %]</td> |
| 255 |
<th>Primary email</th> |
296 |
<td>[% borrower.zipcode | html %]</td> |
| 256 |
<th>Primary phone</th> |
297 |
<td>[% borrower.country | html %]</td> |
| 257 |
<th>Other phone</th> |
298 |
<td>[% borrower.email | html %]</td> |
| 258 |
<th>Fax</th> |
299 |
<td>[% borrower.phone | html %]</td> |
| 259 |
<th>Registration date</th> |
300 |
<td>[% borrower.mobile | html %]</td> |
| 260 |
<th>Expiry date</th> |
301 |
<td>[% borrower.fax | html %]</td> |
|
|
302 |
<td data-order="[% borrower.dateenrolled | html %]">[% borrower.dateenrolled | $KohaDates %]</td> |
| 303 |
<td data-order="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</td> |
| 261 |
[% IF CanUpdatePasswordExpiration %] |
304 |
[% IF CanUpdatePasswordExpiration %] |
| 262 |
<th>Password expiration date</th> |
305 |
[% IF borrower.password_expiration_date %] |
|
|
306 |
<td data-order="[% borrower.password_expiration_date | html %]"> |
| 307 |
[% borrower.password_expiration_date | $KohaDates %] |
| 308 |
</td> |
| 309 |
[% ELSE %] |
| 310 |
<td data-order="9999-99-99">Never</td> |
| 311 |
[% END %] |
| 263 |
[% END %] |
312 |
[% END %] |
| 264 |
[% IF CanUpdateProtectPatron %] |
313 |
[% IF CanUpdateProtectPatron %] |
| 265 |
<th>Protected</th> |
314 |
<td> |
| 266 |
[% END %] |
315 |
[% IF borrower.protected %] |
| 267 |
<th>Circulation note</th> |
316 |
Yes |
| 268 |
<th>OPAC note</th> |
|
|
| 269 |
<th>Message</th> |
| 270 |
<th>Restriction expiration</th> |
| 271 |
<th>Restriction comment</th> |
| 272 |
[% FOREACH attrh IN attributes_header %] |
| 273 |
<th>[% attrh.attribute | html %]</th> |
| 274 |
[% END %] |
| 275 |
</tr> |
| 276 |
</thead> |
| 277 |
<tbody> |
| 278 |
[% FOREACH borrower IN borrowers %] |
| 279 |
<tr> |
| 280 |
[% IF ( op == 'show' ) %] |
| 281 |
<td> |
| 282 |
[% ELSE %] |
317 |
[% ELSE %] |
| 283 |
<td class="NoVisible"> |
318 |
No |
| 284 |
[% END %] |
319 |
[% END %] |
| 285 |
<input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" /> |
|
|
| 286 |
</td> |
320 |
</td> |
| 287 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td> |
321 |
[% END %] |
| 288 |
<td>[% borrower.surname | html %]</td> |
322 |
<td>[% borrower.borrowernotes | $raw | html_line_break %]</td> |
| 289 |
<td>[% borrower.firstname | html %]</td> |
323 |
<td>[% borrower.opacnote | html %]</td> |
| 290 |
<td>[% Branches.GetName( borrower.branchcode ) | html %]</td> |
324 |
<td> |
| 291 |
<td>[% Categories.GetName(borrower.categorycode) | html %]</td> |
325 |
[% FOREACH patron_message IN borrower.patron_messages %] |
| 292 |
<td>[% borrower.streetnumber | html %]</td> |
326 |
[% patron_message.message | html %] <br> |
| 293 |
<td>[% borrower.address | html %]</td> |
327 |
<strong> |
| 294 |
<td>[% borrower.address2 | html %]</td> |
328 |
[% IF (patron_message.message_type == 'B') %] |
| 295 |
<td>[% borrower.city | html %]</td> |
329 |
( OPAC ) |
| 296 |
<td>[% borrower.state | html %]</td> |
|
|
| 297 |
<td>[% borrower.zipcode | html %]</td> |
| 298 |
<td>[% borrower.country | html %]</td> |
| 299 |
<td>[% borrower.email | html %]</td> |
| 300 |
<td>[% borrower.phone | html %]</td> |
| 301 |
<td>[% borrower.mobile | html %]</td> |
| 302 |
<td>[% borrower.fax | html %]</td> |
| 303 |
<td data-order="[% borrower.dateenrolled | html %]">[% borrower.dateenrolled | $KohaDates %]</td> |
| 304 |
<td data-order="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</td> |
| 305 |
[% IF CanUpdatePasswordExpiration %] |
| 306 |
[% IF borrower.password_expiration_date %] |
| 307 |
<td data-order="[% borrower.password_expiration_date | html %]"> |
| 308 |
[% borrower.password_expiration_date | $KohaDates %] |
| 309 |
</td> |
| 310 |
[% ELSE %] |
| 311 |
<td data-order="9999-99-99">Never</td> |
| 312 |
[% END %] |
| 313 |
[% END %] |
| 314 |
[% IF CanUpdateProtectPatron %] |
| 315 |
<td> |
| 316 |
[% IF borrower.protected %] |
| 317 |
Yes |
| 318 |
[% ELSE %] |
330 |
[% ELSE %] |
| 319 |
No |
331 |
( Staff ) |
| 320 |
[% END %] |
332 |
[% END %] |
| 321 |
</td> |
333 |
</strong><br><br> |
| 322 |
[% END %] |
334 |
[% END %] |
| 323 |
<td>[% borrower.borrowernotes | $raw | html_line_break %]</td> |
335 |
</td> |
| 324 |
<td>[% borrower.opacnote | html %]</td> |
336 |
<td data-order="[% borrower.debarred | html %]">[% borrower.debarred | $KohaDates %]</td> |
| 325 |
<td> |
337 |
<td>[% borrower.debarredcomment | html %]</td> |
| 326 |
[% FOREACH patron_message IN borrower.patron_messages %] |
338 |
[% FOREACH pa IN borrower.patron_attributes %] |
| 327 |
[% patron_message.message | html %] <br> |
339 |
[% IF ( pa.code ) %] |
| 328 |
<strong> |
340 |
[%# Replace pa.attribute with pa.description if we prefer to display the description %] |
| 329 |
[% IF (patron_message.message_type == 'B') %] |
341 |
<td>[% pa.code | html %]=[% pa.attribute | html %]</td> |
| 330 |
( OPAC ) |
342 |
[% ELSE %] |
| 331 |
[% ELSE %] |
343 |
<td></td> |
| 332 |
( Staff ) |
|
|
| 333 |
[% END %] |
| 334 |
</strong><br><br> |
| 335 |
[% END %] |
| 336 |
</td> |
| 337 |
<td data-order="[% borrower.debarred | html %]">[% borrower.debarred | $KohaDates %]</td> |
| 338 |
<td>[% borrower.debarredcomment | html %]</td> |
| 339 |
[% FOREACH pa IN borrower.patron_attributes %] |
| 340 |
[% IF ( pa.code ) %] |
| 341 |
[%# Replace pa.attribute with pa.description if we prefer to display the description %] |
| 342 |
<td>[% pa.code | html %]=[% pa.attribute | html %]</td> |
| 343 |
[% ELSE %] |
| 344 |
<td></td> |
| 345 |
[% END %] |
| 346 |
[% END %] |
344 |
[% END %] |
| 347 |
</tr> |
345 |
[% END %] |
| 348 |
[% END %] |
346 |
</tr> |
| 349 |
</tbody> |
347 |
[% END %] |
| 350 |
</table> |
348 |
</tbody> |
| 351 |
</div> |
349 |
</table> |
| 352 |
</div> |
350 |
</div> |
| 353 |
|
351 |
|
| 354 |
[% IF ( op == 'show' ) %] |
352 |
[% IF ( op == 'show' ) %] |
|
Lines 507-513
Link Here
|
| 507 |
let patron_table = KohaTable("borrowerst", { |
505 |
let patron_table = KohaTable("borrowerst", { |
| 508 |
"order": [[ 1, "asc" ]], |
506 |
"order": [[ 1, "asc" ]], |
| 509 |
"autoWidth": true, |
507 |
"autoWidth": true, |
| 510 |
"scrollX": true, |
|
|
| 511 |
}, table_settings); |
508 |
}, table_settings); |
| 512 |
|
509 |
|
| 513 |
$("#selectallbutton").click(function() { |
510 |
$("#selectallbutton").click(function() { |
| 514 |
- |
|
|