Lines 284-290
Link Here
|
284 |
<tr> |
284 |
<tr> |
285 |
[% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %] |
285 |
[% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %] |
286 |
[% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] |
286 |
[% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] |
287 |
<th id="[% tab | html %]_cover" data-colname="[% tab | html %]_cover">Cover image</th> |
287 |
<th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th> |
288 |
[% END %] |
288 |
[% END %] |
289 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
289 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
290 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> |
290 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> |
Lines 1269-1276
Note that permanent location is a code, and location may be an authval.
Link Here
|
1269 |
$(document).ready(function() { |
1269 |
$(document).ready(function() { |
1270 |
var ids = ['holdings_table', 'otherholdings_table']; |
1270 |
var ids = ['holdings_table', 'otherholdings_table']; |
1271 |
var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
1271 |
var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
|
|
1272 |
var has_images = ["[% itemloop_has_images %]", "[% otheritemloop_has_images %]"]; |
1272 |
for (var i in ids) { |
1273 |
for (var i in ids) { |
1273 |
var id = ids[i]; |
1274 |
var id = ids[i]; |
|
|
1275 |
if ( !has_images[i] ) { // remove the cover_image column |
1276 |
columns_settings.splice(1,1); |
1277 |
} |
1274 |
var dt_parameters = { |
1278 |
var dt_parameters = { |
1275 |
'sDom': 't', |
1279 |
'sDom': 't', |
1276 |
'bPaginate': false, |
1280 |
'bPaginate': false, |
1277 |
- |
|
|