[% IF (StaffDetailItemSelection) %] [% END %]
+ [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
+ Cover image
+ [% END %]
[% IF ( item_level_itypes ) %]Item type [% END %]
- Current location
+ Current library
Home library
[% IF ( itemdata_ccode ) %]Collection [% END %]
Call number
[% IF volinfo %]
- [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
- Serial enumeration / chronology
- [% ELSE %]
- Serial enumeration / chronology
- [% END %]
+ Serial enumeration / chronology
[% END %]
Status
- Last seen
- Date accessioned
+ Last seen
+ Date accessioned
+ Date last borrowed
Barcode
[% IF ( itemdata_uri ) %]URL [% END %]
[% IF ( itemdata_copynumber ) %]Copy number [% END %]
@@ -263,17 +365,33 @@
[% END %]
+ [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
+
+
+
+ [% FOREACH image IN item.cover_images %]
+
+ [% END %]
+
+
+
+ [% END %]
+
[% IF ( item_level_itypes ) %]
[% IF !noItemTypeImages && item.imageurl %]
[% END %]
- [% item.translated_description | html %]
+ [% item.translated_description | html %]
[% END %]
[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]
- [% Branches.GetName(item.homebranch) | html %]
+ [% Branches.GetName(item.homebranch) | html %]
@@ -895,36 +1056,114 @@ Note that permanent location is a code, and location may be an authval.
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
[% Asset.js("js/catalog.js") | $raw %]
+ [% Asset.js("js/recalls.js") | $raw %]
[% Asset.js("js/coce.js") | $raw %]
+ [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
[% END %]
[% INCLUDE 'datatables.inc' %]
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
- [% INCLUDE 'strings.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% Asset.js("js/browser.js") | $raw %]
[% Asset.js("js/table_filters.js") | $raw %]
@@ -1115,17 +1367,17 @@ Note that permanent location is a code, and location may be an authval.
$(document).ready(function() {
var ids = ['holdings_table', 'otherholdings_table'];
- var columns_settings = [ [% ColumnsSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% ColumnsSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
+ var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
+ var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"];
for (var i in ids) {
var id = ids[i];
+ if ( !has_images[i] ) { // remove the cover_image column
+ columns_settings.splice(1,1);
+ }
var dt_parameters = {
'sDom': 't',
'bPaginate': false,
'bAutoWidth': false,
- "aoColumnDefs": [
- { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
- { "sType": "title-string", "aTargets" : [ "title-string" ] }
- ],
"bKohaColumnsUseNames": true,
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
};
@@ -1133,15 +1385,12 @@ Note that permanent location is a code, and location may be an authval.
}
[% IF Koha.Preference('AcquisitionDetails') %]
- var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
+ var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
var acquisitiondetails_table = KohaTable("orders", {
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
'bPaginate': false,
'bAutoWidth': false,
"aaSorting": [[ 4, "desc" ]],
- "aoColumnDefs": [
- { "aTargets": "title-string", "sType": "title-string" }
- ]
}, columns_settings);
[% END %]
@@ -1155,6 +1404,13 @@ Note that permanent location is a code, and location may be an authval.
}));
[% END %]
});
+
+ $(document).ready(function() {
+ var search_index = localStorage.getItem("cat_search_pulldown_selection");
+ var search_value = localStorage.getItem("searchbox_value");
+ if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)};
+ if ( search_value ){ $('#cat-search-block #search-form').val(search_value)};
+ });
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]