Lines 1568-1573
Note that permanent location is a code, and location may be an authval.
Link Here
|
1568 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1568 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
1569 |
[% INCLUDE 'columns_settings.inc' %] |
1569 |
[% INCLUDE 'columns_settings.inc' %] |
1570 |
[% INCLUDE 'js-date-format.inc' %] |
1570 |
[% INCLUDE 'js-date-format.inc' %] |
|
|
1571 |
[% INCLUDE 'js-patron-format.inc' %] |
1571 |
[% Asset.js("js/browser.js") | $raw %] |
1572 |
[% Asset.js("js/browser.js") | $raw %] |
1572 |
[% Asset.js("js/table_filters.js") | $raw %] |
1573 |
[% Asset.js("js/table_filters.js") | $raw %] |
1573 |
<script> |
1574 |
<script> |
Lines 1601-1607
Note that permanent location is a code, and location may be an authval.
Link Here
|
1601 |
}, |
1602 |
}, |
1602 |
"header_filter": false, |
1603 |
"header_filter": false, |
1603 |
"embed": [ |
1604 |
"embed": [ |
1604 |
"biblio" |
1605 |
"biblio", |
|
|
1606 |
"return_claim.patron" |
1605 |
], |
1607 |
], |
1606 |
"order": [[ 1, "asc" ]], |
1608 |
"order": [[ 1, "asc" ]], |
1607 |
"columnDefs": [ { |
1609 |
"columnDefs": [ { |
Lines 1664-1678
Note that permanent location is a code, and location may be an authval.
Link Here
|
1664 |
"orderable": true, |
1666 |
"orderable": true, |
1665 |
}, |
1667 |
}, |
1666 |
{ |
1668 |
{ |
1667 |
"data": "lost_status:last_seen_date", |
1669 |
"data": "lost_status:last_seen_date:return_claim.patron", |
1668 |
"title": "Status", |
1670 |
"title": "Status", |
1669 |
"searchable": false, |
1671 |
"searchable": false, |
1670 |
"orderable": true, |
1672 |
"orderable": true, |
1671 |
"render": function(data, type, row, meta) { |
1673 |
"render": function(data, type, row, meta) { |
1672 |
if ( row.lost_status == bundle_lost_value ) { |
1674 |
if ( row.lost_status == bundle_lost_value ) { |
1673 |
return "Last seen: " + row.last_seen_date; |
1675 |
let out = '<span class="lost">' + _("Last seen") + ': ' + row.last_seen_date + '</span>'; |
|
|
1676 |
if ( row.return_claim ) { |
1677 |
out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>'; |
1678 |
} |
1679 |
return out; |
1674 |
} |
1680 |
} |
1675 |
return "Present"; |
1681 |
else if ( row.lost_status !== 0 ) { |
|
|
1682 |
return '<span class="lost">' + _("Lost") + ': ' + row.lost_status + '</span>'; |
1683 |
} |
1684 |
return '<span class="available">' + _("Present") + '</span>'; |
1676 |
} |
1685 |
} |
1677 |
}, |
1686 |
}, |
1678 |
{ |
1687 |
{ |
Lines 1687-1693
Note that permanent location is a code, and location may be an authval.
Link Here
|
1687 |
} |
1696 |
} |
1688 |
] |
1697 |
] |
1689 |
}, bundle_settings, 1); |
1698 |
}, bundle_settings, 1); |
1690 |
|
|
|
1691 |
$(".tbundle").on("click", ".remove", function(){ |
1699 |
$(".tbundle").on("click", ".remove", function(){ |
1692 |
var bundle_table = $(this).closest('table'); |
1700 |
var bundle_table = $(this).closest('table'); |
1693 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1701 |
var host_itemnumber = bundle_table.data('itemnumber'); |
1694 |
- |
|
|