Lines 1405-1410
Note that permanent location is a code, and location may be an authval.
Link Here
|
1405 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1405 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1406 |
[% INCLUDE 'columns_settings.inc' %] |
1406 |
[% INCLUDE 'columns_settings.inc' %] |
1407 |
[% INCLUDE 'js-date-format.inc' %] |
1407 |
[% INCLUDE 'js-date-format.inc' %] |
|
|
1408 |
[% INCLUDE 'js-patron-format.inc' %] |
1408 |
[% Asset.js("js/browser.js") | $raw %] |
1409 |
[% Asset.js("js/browser.js") | $raw %] |
1409 |
[% Asset.js("js/table_filters.js") | $raw %] |
1410 |
[% Asset.js("js/table_filters.js") | $raw %] |
1410 |
<script> |
1411 |
<script> |
Lines 1438-1444
Note that permanent location is a code, and location may be an authval.
Link Here
|
1438 |
}, |
1439 |
}, |
1439 |
"header_filter": false, |
1440 |
"header_filter": false, |
1440 |
"embed": [ |
1441 |
"embed": [ |
1441 |
"biblio" |
1442 |
"biblio", |
|
|
1443 |
"return_claim.patron" |
1442 |
], |
1444 |
], |
1443 |
"order": [[ 1, "asc" ]], |
1445 |
"order": [[ 1, "asc" ]], |
1444 |
"columnDefs": [ { |
1446 |
"columnDefs": [ { |
Lines 1501-1515
Note that permanent location is a code, and location may be an authval.
Link Here
|
1501 |
"orderable": true, |
1503 |
"orderable": true, |
1502 |
}, |
1504 |
}, |
1503 |
{ |
1505 |
{ |
1504 |
"data": "lost_status:last_seen_date", |
1506 |
"data": "lost_status:last_seen_date:return_claim.patron", |
1505 |
"title": "Status", |
1507 |
"title": "Status", |
1506 |
"searchable": false, |
1508 |
"searchable": false, |
1507 |
"orderable": true, |
1509 |
"orderable": true, |
1508 |
"render": function(data, type, row, meta) { |
1510 |
"render": function(data, type, row, meta) { |
1509 |
if ( row.lost_status == bundle_lost_value ) { |
1511 |
if ( row.lost_status == bundle_lost_value ) { |
1510 |
return "Last seen: " + row.last_seen_date; |
1512 |
let out = '<span class="lost">' + _("Last seen") + ': ' + row.last_seen_date + '</span>'; |
|
|
1513 |
if ( row.return_claim ) { |
1514 |
out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>'; |
1515 |
} |
1516 |
return out; |
1511 |
} |
1517 |
} |
1512 |
return "Present"; |
1518 |
else if ( row.lost_status !== 0 ) { |
|
|
1519 |
return '<span class="lost">' + _("Lost") + ': ' + row.lost_status + '</span>'; |
1520 |
} |
1521 |
return '<span class="available">' + _("Present") + '</span>'; |
1513 |
} |
1522 |
} |
1514 |
}, |
1523 |
}, |
1515 |
{ |
1524 |
{ |
Lines 1524-1530
Note that permanent location is a code, and location may be an authval.
Link Here
|
1524 |
} |
1533 |
} |
1525 |
] |
1534 |
] |
1526 |
}, bundle_settings, 1); |
1535 |
}, bundle_settings, 1); |
1527 |
|
|
|
1528 |
$(".tbundle").on("click", ".remove", function(){ |
1536 |
$(".tbundle").on("click", ".remove", function(){ |
1529 |
var bundle_table = $(this).closest('table'); |
1537 |
var bundle_table = $(this).closest('table'); |
1530 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1538 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1531 |
- |
|
|