Lines 1370-1379
Note that permanent location is a code, and location may be an authval.
Link Here
|
1370 |
var ids = ['holdings_table', 'otherholdings_table']; |
1370 |
var ids = ['holdings_table', 'otherholdings_table']; |
1371 |
var table_settings = [ [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
1371 |
var table_settings = [ [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
1372 |
var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"]; |
1372 |
var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"]; |
1373 |
for (var i in ids) { |
1373 |
ids.forEach( function(item, index) { |
1374 |
var id = ids[i]; |
1374 |
if ( !has_images[index] ) { |
1375 |
if ( !has_images[i] ) { // remove the cover_image column |
1375 |
table_settings[index].columns.splice(1,1); |
1376 |
table_settings.splice(1,1); |
|
|
1377 |
} |
1376 |
} |
1378 |
var dt_parameters = { |
1377 |
var dt_parameters = { |
1379 |
'sDom': 't', |
1378 |
'sDom': 't', |
Lines 1382-1389
Note that permanent location is a code, and location may be an authval.
Link Here
|
1382 |
"bKohaColumnsUseNames": true, |
1381 |
"bKohaColumnsUseNames": true, |
1383 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1382 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1384 |
}; |
1383 |
}; |
1385 |
var table = KohaTable(id, dt_parameters, table_settings[i], 'with_filters'); |
1384 |
var table = KohaTable(item, dt_parameters, table_settings[index], 'with_filters'); |
1386 |
} |
1385 |
}); |
1387 |
|
1386 |
|
1388 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1387 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1389 |
var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') | $raw %]; |
1388 |
var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') | $raw %]; |
1390 |
- |
|
|