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