Lines 1366-1371
Note that permanent location is a code, and location may be an authval.
Link Here
|
1366 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1366 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1367 |
[% INCLUDE 'columns_settings.inc' %] |
1367 |
[% INCLUDE 'columns_settings.inc' %] |
1368 |
[% INCLUDE 'js-date-format.inc' %] |
1368 |
[% INCLUDE 'js-date-format.inc' %] |
|
|
1369 |
[% INCLUDE 'js-patron-format.inc' %] |
1369 |
[% Asset.js("js/browser.js") | $raw %] |
1370 |
[% Asset.js("js/browser.js") | $raw %] |
1370 |
[% Asset.js("js/table_filters.js") | $raw %] |
1371 |
[% Asset.js("js/table_filters.js") | $raw %] |
1371 |
<script> |
1372 |
<script> |
Lines 1399-1405
Note that permanent location is a code, and location may be an authval.
Link Here
|
1399 |
}, |
1400 |
}, |
1400 |
"header_filter": false, |
1401 |
"header_filter": false, |
1401 |
"embed": [ |
1402 |
"embed": [ |
1402 |
"biblio" |
1403 |
"biblio", |
|
|
1404 |
"return_claim.patron" |
1403 |
], |
1405 |
], |
1404 |
"order": [[ 1, "asc" ]], |
1406 |
"order": [[ 1, "asc" ]], |
1405 |
"columnDefs": [ { |
1407 |
"columnDefs": [ { |
Lines 1459-1473
Note that permanent location is a code, and location may be an authval.
Link Here
|
1459 |
"orderable": true, |
1461 |
"orderable": true, |
1460 |
}, |
1462 |
}, |
1461 |
{ |
1463 |
{ |
1462 |
"data": "lost_status:last_seen_date", |
1464 |
"data": "lost_status:last_seen_date:return_claim.patron", |
1463 |
"title": "Status", |
1465 |
"title": "Status", |
1464 |
"searchable": false, |
1466 |
"searchable": false, |
1465 |
"orderable": true, |
1467 |
"orderable": true, |
1466 |
"render": function(data, type, row, meta) { |
1468 |
"render": function(data, type, row, meta) { |
1467 |
if ( row.lost_status == bundle_lost_value ) { |
1469 |
if ( row.lost_status == bundle_lost_value ) { |
1468 |
return "Last seen: " + row.last_seen_date; |
1470 |
let out = '<span class="lost">' + _("Last seen") + ': ' + row.last_seen_date + '</span>'; |
|
|
1471 |
if ( row.return_claim ) { |
1472 |
out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>'; |
1473 |
} |
1474 |
return out; |
1469 |
} |
1475 |
} |
1470 |
return "Present"; |
1476 |
else if ( row.lost_status !== 0 ) { |
|
|
1477 |
return '<span class="lost">' + _("Lost") + ': ' + row.lost_status + '</span>'; |
1478 |
} |
1479 |
return '<span class="available">' + _("Present") + '</span>'; |
1471 |
} |
1480 |
} |
1472 |
}, |
1481 |
}, |
1473 |
{ |
1482 |
{ |
Lines 1482-1488
Note that permanent location is a code, and location may be an authval.
Link Here
|
1482 |
} |
1491 |
} |
1483 |
] |
1492 |
] |
1484 |
}, bundle_columns, 1); |
1493 |
}, bundle_columns, 1); |
1485 |
|
|
|
1486 |
$(".tbundle").on("click", ".remove", function(){ |
1494 |
$(".tbundle").on("click", ".remove", function(){ |
1487 |
var bundle_table = $(this).closest('table'); |
1495 |
var bundle_table = $(this).closest('table'); |
1488 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1496 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1489 |
- |
|
|