Lines 1350-1361
Note that permanent location is a code, and location may be an authval.
Link Here
|
1350 |
|
1350 |
|
1351 |
$(document).ready(function() { |
1351 |
$(document).ready(function() { |
1352 |
var ids = ['holdings_table', 'otherholdings_table']; |
1352 |
var ids = ['holdings_table', 'otherholdings_table']; |
1353 |
var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
1353 |
var table_settings = [ [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
1354 |
var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"]; |
1354 |
var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"]; |
1355 |
for (var i in ids) { |
1355 |
for (var i in ids) { |
1356 |
var id = ids[i]; |
1356 |
var id = ids[i]; |
1357 |
if ( !has_images[i] ) { // remove the cover_image column |
1357 |
if ( !has_images[i] ) { // remove the cover_image column |
1358 |
columns_settings.splice(1,1); |
1358 |
table_settings.splice(1,1); |
1359 |
} |
1359 |
} |
1360 |
var dt_parameters = { |
1360 |
var dt_parameters = { |
1361 |
'sDom': 't', |
1361 |
'sDom': 't', |
Lines 1364-1380
Note that permanent location is a code, and location may be an authval.
Link Here
|
1364 |
"bKohaColumnsUseNames": true, |
1364 |
"bKohaColumnsUseNames": true, |
1365 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1365 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1366 |
}; |
1366 |
}; |
1367 |
var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters'); |
1367 |
var table = KohaTable(id, dt_parameters, table_settings[i], 'with_filters'); |
1368 |
} |
1368 |
} |
1369 |
|
1369 |
|
1370 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1370 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1371 |
var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %]; |
1371 |
var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') %]; |
1372 |
var acquisitiondetails_table = KohaTable("orders", { |
1372 |
var acquisitiondetails_table = KohaTable("orders", { |
1373 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1373 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1374 |
'bPaginate': false, |
1374 |
'bPaginate': false, |
1375 |
'bAutoWidth': false, |
1375 |
'bAutoWidth': false, |
1376 |
"aaSorting": [[ 4, "desc" ]], |
1376 |
"aaSorting": [[ 4, "desc" ]], |
1377 |
}, columns_settings); |
1377 |
}, table_settings); |
1378 |
[% END %] |
1378 |
[% END %] |
1379 |
|
1379 |
|
1380 |
[% IF suggestions.count %] |
1380 |
[% IF suggestions.count %] |
1381 |
- |
|
|