Lines 1399-1404
Note that permanent location is a code, and location may be an authval.
Link Here
|
1399 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1399 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1400 |
[% INCLUDE 'columns_settings.inc' %] |
1400 |
[% INCLUDE 'columns_settings.inc' %] |
1401 |
[% INCLUDE 'js-date-format.inc' %] |
1401 |
[% INCLUDE 'js-date-format.inc' %] |
|
|
1402 |
[% INCLUDE 'js-patron-format.inc' %] |
1402 |
[% Asset.js("js/browser.js") | $raw %] |
1403 |
[% Asset.js("js/browser.js") | $raw %] |
1403 |
[% Asset.js("js/table_filters.js") | $raw %] |
1404 |
[% Asset.js("js/table_filters.js") | $raw %] |
1404 |
<script> |
1405 |
<script> |
Lines 1432-1438
Note that permanent location is a code, and location may be an authval.
Link Here
|
1432 |
}, |
1433 |
}, |
1433 |
"header_filter": false, |
1434 |
"header_filter": false, |
1434 |
"embed": [ |
1435 |
"embed": [ |
1435 |
"biblio" |
1436 |
"biblio", |
|
|
1437 |
"return_claim.patron" |
1436 |
], |
1438 |
], |
1437 |
"order": [[ 1, "asc" ]], |
1439 |
"order": [[ 1, "asc" ]], |
1438 |
"columnDefs": [ { |
1440 |
"columnDefs": [ { |
Lines 1495-1509
Note that permanent location is a code, and location may be an authval.
Link Here
|
1495 |
"orderable": true, |
1497 |
"orderable": true, |
1496 |
}, |
1498 |
}, |
1497 |
{ |
1499 |
{ |
1498 |
"data": "lost_status:last_seen_date", |
1500 |
"data": "lost_status:last_seen_date:return_claim.patron", |
1499 |
"title": "Status", |
1501 |
"title": "Status", |
1500 |
"searchable": false, |
1502 |
"searchable": false, |
1501 |
"orderable": true, |
1503 |
"orderable": true, |
1502 |
"render": function(data, type, row, meta) { |
1504 |
"render": function(data, type, row, meta) { |
1503 |
if ( row.lost_status == bundle_lost_value ) { |
1505 |
if ( row.lost_status == bundle_lost_value ) { |
1504 |
return "Last seen: " + row.last_seen_date; |
1506 |
let out = '<span class="lost">' + _("Last seen") + ': ' + row.last_seen_date + '</span>'; |
|
|
1507 |
if ( row.return_claim ) { |
1508 |
out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>'; |
1509 |
} |
1510 |
return out; |
1505 |
} |
1511 |
} |
1506 |
return "Present"; |
1512 |
else if ( row.lost_status !== 0 ) { |
|
|
1513 |
return '<span class="lost">' + _("Lost") + ': ' + row.lost_status + '</span>'; |
1514 |
} |
1515 |
return '<span class="available">' + _("Present") + '</span>'; |
1507 |
} |
1516 |
} |
1508 |
}, |
1517 |
}, |
1509 |
{ |
1518 |
{ |
Lines 1518-1524
Note that permanent location is a code, and location may be an authval.
Link Here
|
1518 |
} |
1527 |
} |
1519 |
] |
1528 |
] |
1520 |
}, bundle_settings, 1); |
1529 |
}, bundle_settings, 1); |
1521 |
|
|
|
1522 |
$(".tbundle").on("click", ".remove", function(){ |
1530 |
$(".tbundle").on("click", ".remove", function(){ |
1523 |
var bundle_table = $(this).closest('table'); |
1531 |
var bundle_table = $(this).closest('table'); |
1524 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1532 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1525 |
- |
|
|