Lines 3-8
Link Here
|
3 |
[% USE AuthorisedValues %] |
3 |
[% USE AuthorisedValues %] |
4 |
[% USE Branches %] |
4 |
[% USE Branches %] |
5 |
[% USE Biblio %] |
5 |
[% USE Biblio %] |
|
|
6 |
[% USE ColumnsSettings %] |
6 |
|
7 |
|
7 |
[% IF Koha.Preference('AmazonAssocTag') %] |
8 |
[% IF Koha.Preference('AmazonAssocTag') %] |
8 |
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %] |
9 |
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %] |
Lines 329-355
Link Here
|
329 |
<table class="items_table" id="[% tab %]_table"> |
330 |
<table class="items_table" id="[% tab %]_table"> |
330 |
<thead> |
331 |
<thead> |
331 |
<tr> |
332 |
<tr> |
332 |
[% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %] |
333 |
[% IF (StaffDetailItemSelection) %]<th id="[% tab %]_checkbox" data-colname="[% tab %]_checkbox" class="NoSort"></th>[% END %] |
333 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
334 |
[% IF ( item_level_itypes ) %]<th id="[% tab %]_itype" data-colname="[% tab %]_itype" >Item type</th>[% END %] |
334 |
<th>Current location</th> |
335 |
<th id="[% tab %]_holdingbranch" data-colname="[% tab %]_holdingbranch">Current location</th> |
335 |
<th>Home library</th> |
336 |
<th id="[% tab %]_homebranch" data-colname="[% tab %]_homebranch">Home library</th> |
336 |
[% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %] |
337 |
[% IF ( itemdata_ccode ) %]<th id="[% tab %]_ccode" data-colname="[% tab %]_ccode">Collection</th>[% END %] |
337 |
<th>Call number</th> |
338 |
<th id="[% tab %]_itemcallnumber" data-colname="[% tab %]_itemcallnumber">Call number</th> |
338 |
<th>Status</th> |
339 |
<th id="[% tab %]_status" data-colname="[% tab %]_status">Status</th> |
339 |
<th>Last seen</th> |
340 |
<th id="[% tab %]_lastseen" data-colname="[% tab %]_lastseen">Last seen</th> |
340 |
<th>Barcode</th> |
341 |
<th id="[% tab %]_barcode" data-colname="[% tab %]_barcode">Barcode</th> |
341 |
[% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %] |
342 |
[% IF ( volinfo ) %]<th id="[% tab %]_enumchron" data-colname="[% tab %]_enumchron">Serial enumeration / chronology</th>[% END %] |
342 |
[% IF ( itemdata_uri ) %]<th>URL</th>[% END %] |
343 |
[% IF ( itemdata_uri ) %]<th id="[% tab %]_uri" data-colname="[% tab %]_uri">URL</th>[% END %] |
343 |
[% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %] |
344 |
[% IF ( itemdata_copynumber ) %]<th id="[% tab %]_copynumber" data-colname="[% tab %]_copynumber">Copy number</th>[% END %] |
344 |
[% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %] |
345 |
[% IF ( itemdata_stocknumber ) %]<th id="[% tab %]_stocknumber" data-colname="[% tab %]_stocknumber">Inventory number</th>[% END %] |
345 |
[% IF materials %]<th>Materials specified</th>[% END %] |
346 |
[% IF materials %]<th id="[% tab %]_materials" data-colname="[% tab %]_materials">Materials specified</th>[% END %] |
346 |
[% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %] |
347 |
[% IF ( itemdata_itemnotes ) %]<th id="[% tab %]_itemnotes" data-colname="[% tab %]_itemnotes">Public notes</th>[% END %] |
347 |
[% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %] |
348 |
[% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab %]_itemnotes_nonpublic" data-colname="[% tab %]_itemnotes_nonpublic">Non-public notes</th>[% END %] |
348 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %] |
349 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab %]_spinelabel" data-colname="[% tab %]_spinelabel">Spine label</th>[% END %] |
349 |
[% IF ( hostrecords ) %]<th>Host records</th>[% END %] |
350 |
[% IF ( hostrecords ) %]<th id="[% tab %]_hostrecord" data-colname="[% tab %]_hostrecord">Host records</th>[% END %] |
350 |
[% IF ( analyze ) %]<th>Used in</th><th></th>[% END %] |
351 |
[% IF ( analyze ) %]<th id="[% tab %]_usedin" data-colname="[% tab %]_usedin">Used in</th><th id="[% tab %]_usedin_col" data-colname="[% tab %]_usedin_col"></th>[% END %] |
351 |
[% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %] |
352 |
[% IF ( ShowCourseReserves ) %]<th id="[% tab %]_course_reserves" data-colname="[% tab %]_course_reserves">Course Reserves</th>[% END %] |
352 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %] |
353 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort" id="[% tab %]_actions" data-colname="[% tab %]_actions"> </th>[% END %] |
353 |
</tr> |
354 |
</tr> |
354 |
</thead> |
355 |
</thead> |
355 |
<tbody> |
356 |
<tbody> |
Lines 1053-1060
Link Here
|
1053 |
|
1054 |
|
1054 |
$(document).ready(function() { |
1055 |
$(document).ready(function() { |
1055 |
var ids = ['holdings_table', 'otherholdings_table']; |
1056 |
var ids = ['holdings_table', 'otherholdings_table']; |
1056 |
|
1057 |
var columns_settings = [ [% ColumnsSettings.GetColumns('catalogue', 'detail','holdings_table','json') %], [% ColumnsSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') %] ]; |
1057 |
for (var i in ids) { |
1058 |
for (var i in ids) { |
|
|
1059 |
console.log( i ); |
1058 |
var id = ids[i]; |
1060 |
var id = ids[i]; |
1059 |
var dt_parameters = { |
1061 |
var dt_parameters = { |
1060 |
'sDom': 't', |
1062 |
'sDom': 't', |
Lines 1062-1070
Link Here
|
1062 |
'bAutoWidth': false, |
1064 |
'bAutoWidth': false, |
1063 |
"aoColumnDefs": [ |
1065 |
"aoColumnDefs": [ |
1064 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] } |
1066 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] } |
1065 |
] |
1067 |
], |
|
|
1068 |
"bKohaColumnsUseNames": true, |
1069 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1066 |
}; |
1070 |
}; |
1067 |
var table = KohaTable(id, dt_parameters, null, 'with_filters'); |
1071 |
var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters'); |
1068 |
} |
1072 |
} |
1069 |
|
1073 |
|
1070 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1074 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1071 |
- |
|
|