Lines 223-256
Link Here
|
223 |
<table class="items_table" id="[% tab | html %]_table"> |
223 |
<table class="items_table" id="[% tab | html %]_table"> |
224 |
<thead> |
224 |
<thead> |
225 |
<tr> |
225 |
<tr> |
226 |
[% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %] |
226 |
[% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %] |
227 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
227 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
228 |
<th>Current location</th> |
228 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current location</th> |
229 |
<th>Home library</th> |
229 |
<th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th> |
230 |
[% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %] |
230 |
[% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %] |
231 |
<th>Call number</th> |
231 |
<th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th> |
232 |
[% IF volinfo %] |
232 |
[% IF volinfo %] |
233 |
[% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%] |
233 |
[% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%] |
234 |
<th class="title-string">Serial enumeration / chronology</th> |
234 |
<th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th> |
235 |
[% ELSE %] |
235 |
[% ELSE %] |
236 |
<th>Serial enumeration / chronology</th> |
236 |
<th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th> |
237 |
[% END %] |
237 |
[% END %] |
238 |
[% END %] |
238 |
[% END %] |
239 |
<th>Status</th> |
239 |
<th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th> |
240 |
<th class="title-string">Last seen</th> |
240 |
<th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th> |
241 |
<th class="title-string">Date accessioned</th> |
241 |
<th id="[% tab | html %]_datesccessioned" date-colname="[% tab | html %]_datesccessioned" class="title-string">Date accessioned</th> |
242 |
<th>Barcode</th> |
242 |
<th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th> |
243 |
[% IF ( itemdata_uri ) %]<th>URL</th>[% END %] |
243 |
[% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %] |
244 |
[% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %] |
244 |
[% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %] |
245 |
[% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %] |
245 |
[% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %] |
246 |
[% IF materials %]<th>Materials specified</th>[% END %] |
246 |
[% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %] |
247 |
[% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %] |
247 |
[% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %] |
248 |
[% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %] |
248 |
[% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %] |
249 |
[% IF ( hostrecords ) %]<th>Host records</th>[% END %] |
249 |
[% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %] |
250 |
[% IF ( analyze ) %]<th>Used in</th><th></th>[% END %] |
250 |
[% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %] |
251 |
[% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %] |
251 |
[% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course Reserves</th>[% END %] |
252 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %] |
252 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %] |
253 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %] |
253 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %] |
254 |
</tr> |
254 |
</tr> |
255 |
</thead> |
255 |
</thead> |
256 |
<tbody> |
256 |
<tbody> |
Lines 1040-1046
Note that permanent location is a code, and location may be an authval.
Link Here
|
1040 |
|
1040 |
|
1041 |
$(document).ready(function() { |
1041 |
$(document).ready(function() { |
1042 |
var ids = ['holdings_table', 'otherholdings_table']; |
1042 |
var ids = ['holdings_table', 'otherholdings_table']; |
1043 |
|
1043 |
var columns_settings = [ [% ColumnsSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% ColumnsSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ]; |
1044 |
for (var i in ids) { |
1044 |
for (var i in ids) { |
1045 |
var id = ids[i]; |
1045 |
var id = ids[i]; |
1046 |
var dt_parameters = { |
1046 |
var dt_parameters = { |
Lines 1050-1058
Note that permanent location is a code, and location may be an authval.
Link Here
|
1050 |
"aoColumnDefs": [ |
1050 |
"aoColumnDefs": [ |
1051 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
1051 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
1052 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
1052 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
1053 |
] |
1053 |
], |
|
|
1054 |
"bKohaColumnsUseNames": true, |
1055 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
1054 |
}; |
1056 |
}; |
1055 |
var table = KohaTable(id, dt_parameters, null, 'with_filters'); |
1057 |
var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters'); |
1056 |
} |
1058 |
} |
1057 |
|
1059 |
|
1058 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1060 |
[% IF Koha.Preference('AcquisitionDetails') %] |
1059 |
- |
|
|