|
Lines 1381-1386
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 1381 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1381 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
| 1382 |
[% INCLUDE 'columns_settings.inc' %] |
1382 |
[% INCLUDE 'columns_settings.inc' %] |
| 1383 |
[% INCLUDE 'js-date-format.inc' %] |
1383 |
[% INCLUDE 'js-date-format.inc' %] |
|
|
1384 |
[% INCLUDE 'js-patron-format.inc' %] |
| 1384 |
[% Asset.js("js/browser.js") | $raw %] |
1385 |
[% Asset.js("js/browser.js") | $raw %] |
| 1385 |
[% Asset.js("js/table_filters.js") | $raw %] |
1386 |
[% Asset.js("js/table_filters.js") | $raw %] |
| 1386 |
<script> |
1387 |
<script> |
|
Lines 1414-1420
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 1414 |
}, |
1415 |
}, |
| 1415 |
"header_filter": false, |
1416 |
"header_filter": false, |
| 1416 |
"embed": [ |
1417 |
"embed": [ |
| 1417 |
"biblio" |
1418 |
"biblio", |
|
|
1419 |
"return_claim.patron" |
| 1418 |
], |
1420 |
], |
| 1419 |
"order": [[ 1, "asc" ]], |
1421 |
"order": [[ 1, "asc" ]], |
| 1420 |
"columnDefs": [ { |
1422 |
"columnDefs": [ { |
|
Lines 1474-1488
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 1474 |
"orderable": true, |
1476 |
"orderable": true, |
| 1475 |
}, |
1477 |
}, |
| 1476 |
{ |
1478 |
{ |
| 1477 |
"data": "lost_status:last_seen_date", |
1479 |
"data": "lost_status:last_seen_date:return_claim.patron", |
| 1478 |
"title": "Status", |
1480 |
"title": "Status", |
| 1479 |
"searchable": false, |
1481 |
"searchable": false, |
| 1480 |
"orderable": true, |
1482 |
"orderable": true, |
| 1481 |
"render": function(data, type, row, meta) { |
1483 |
"render": function(data, type, row, meta) { |
| 1482 |
if ( row.lost_status == bundle_lost_value ) { |
1484 |
if ( row.lost_status == bundle_lost_value ) { |
| 1483 |
return "Last seen: " + row.last_seen_date; |
1485 |
let out = '<span class="lost">' + _("Last seen") + ': ' + row.last_seen_date + '</span>'; |
|
|
1486 |
if ( row.return_claim ) { |
| 1487 |
out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>'; |
| 1488 |
} |
| 1489 |
return out; |
| 1484 |
} |
1490 |
} |
| 1485 |
return "Present"; |
1491 |
else if ( row.lost_status !== 0 ) { |
|
|
1492 |
return '<span class="lost">' + _("Lost") + ': ' + row.lost_status + '</span>'; |
| 1493 |
} |
| 1494 |
return '<span class="available">' + _("Present") + '</span>'; |
| 1486 |
} |
1495 |
} |
| 1487 |
}, |
1496 |
}, |
| 1488 |
{ |
1497 |
{ |
|
Lines 1497-1503
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 1497 |
} |
1506 |
} |
| 1498 |
] |
1507 |
] |
| 1499 |
}, bundle_columns, 1); |
1508 |
}, bundle_columns, 1); |
| 1500 |
|
|
|
| 1501 |
$(".tbundle").on("click", ".remove", function(){ |
1509 |
$(".tbundle").on("click", ".remove", function(){ |
| 1502 |
var bundle_table = $(this).closest('table'); |
1510 |
var bundle_table = $(this).closest('table'); |
| 1503 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1511 |
var host_itemnumber = bundle_table.data('itemnumber'); |
| 1504 |
- |
|
|