View | Details | Raw Unified | Return to bug 15668
Collapse All | Expand All

(-)a/admin/columns_settings.yml (-1 / +100 lines)
Lines 245-253 modules: Link Here
245
          cannot_be_toggled: 1
245
          cannot_be_toggled: 1
246
          cannot_be_modified: 1
246
          cannot_be_modified: 1
247
247
248
249
  catalogue:
248
  catalogue:
250
    detail:
249
    detail:
250
      holdings_table:
251
        -
252
          columnname: holdings_checkbox
253
          cannot_be_toggled: 1
254
          cannot_be_modified: 1
255
        -
256
          columnname: holdings_itype
257
        -
258
          columnname: holdings_holdingbranch
259
        -
260
          columnname: holdings_homebranch
261
        -
262
          columnname: holdings_ccode
263
        -
264
          columnname: holdings_itemcallnumber
265
        -
266
          columnname: holdings_status
267
        -
268
          columnname: holdings_lastseen
269
        -
270
          columnname: holdings_barcode
271
        -
272
          columnname: holdings_enumchron
273
        -
274
          columnname: holdings_uri
275
        -
276
          columnname: holdings_copynumber
277
        -
278
          columnname: holdings_stocknumber
279
        -
280
          columnname: holdings_materials
281
        -
282
          columnname: holdings_itemnotes
283
        -
284
          columnname: holdings_itemnotes_nonpublic	
285
        -
286
          columnname: holdings_hostrecord
287
        -
288
          columnname: holdings_usedin
289
        -
290
          columnname: holdings_usedin_col
291
        -
292
          columnname: holdings_course_reserves
293
        -
294
          columnname: holdings_spinelabel
295
        -
296
          columnname: holdings_actions
297
          cannot_be_toggled: 1
298
          cannot_be_modified: 1
299
300
      otherholdings_table:
301
        -
302
          columnname: otherholdings_checkbox
303
          cannot_be_toggled: 1
304
          cannot_be_modified: 1
305
        -
306
          columnname: otherholdings_itype
307
        -
308
          columnname: otherholdings_holdingbranch
309
        -
310
          columnname: otherholdings_homebranch
311
        -
312
          columnname: otherholdings_ccode
313
        -
314
          columnname: otherholdings_itemcallnumber
315
        -
316
          columnname: otherholdings_status
317
        -
318
          columnname: otherholdings_lastseen
319
        -
320
          columnname: otherholdings_barcode
321
        -
322
          columnname: otherholdings_enumchron
323
        -
324
          columnname: otherholdings_uri
325
        -
326
          columnname: otherholdings_copynumber
327
        -
328
          columnname: otherholdings_stocknumber
329
        -
330
          columnname: otherholdings_materials
331
        -
332
          columnname: otherholdings_itemnotes
333
        -
334
          columnname: otherholdings_itemnotes_nonpublic	
335
        -
336
          columnname: otherholdings_hostrecord
337
        -
338
          columnname: otherholdings_usedin
339
        -
340
          columnname: otherholdings_usedin_col
341
        -
342
          columnname: otherholdings_course_reserves
343
        -
344
          columnname: otherholdings_spinelabel
345
        -
346
          columnname: otherholdings_actions
347
          cannot_be_toggled: 1
348
          cannot_be_modified: 1
349
251
      acquisitiondetails-table:
350
      acquisitiondetails-table:
252
        -
351
        -
253
          columnname: vendor
352
          columnname: vendor
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-28 / +29 lines)
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">&nbsp;</th>[% END %]
253
                [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort">&nbsp;</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
- 

Return to bug 15668