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

(-)a/admin/columns_settings.yml (-1 / +100 lines)
Lines 249-257 modules: Link Here
249
          cannot_be_toggled: 1
249
          cannot_be_toggled: 1
250
          cannot_be_modified: 1
250
          cannot_be_modified: 1
251
251
252
253
  catalogue:
252
  catalogue:
254
    detail:
253
    detail:
254
      holdings_table:
255
        -
256
          columnname: holdings_checkbox
257
          cannot_be_toggled: 1
258
          cannot_be_modified: 1
259
        -
260
          columnname: holdings_itype
261
        -
262
          columnname: holdings_holdingbranch
263
        -
264
          columnname: holdings_homebranch
265
        -
266
          columnname: holdings_ccode
267
        -
268
          columnname: holdings_itemcallnumber
269
        -
270
          columnname: holdings_status
271
        -
272
          columnname: holdings_lastseen
273
        -
274
          columnname: holdings_barcode
275
        -
276
          columnname: holdings_enumchron
277
        -
278
          columnname: holdings_uri
279
        -
280
          columnname: holdings_copynumber
281
        -
282
          columnname: holdings_stocknumber
283
        -
284
          columnname: holdings_materials
285
        -
286
          columnname: holdings_itemnotes
287
        -
288
          columnname: holdings_itemnotes_nonpublic
289
        -
290
          columnname: holdings_hostrecord
291
        -
292
          columnname: holdings_usedin
293
        -
294
          columnname: holdings_usedin_col
295
        -
296
          columnname: holdings_course_reserves
297
        -
298
          columnname: holdings_spinelabel
299
        -
300
          columnname: holdings_actions
301
          cannot_be_toggled: 1
302
          cannot_be_modified: 1
303
304
      otherholdings_table:
305
        -
306
          columnname: otherholdings_checkbox
307
          cannot_be_toggled: 1
308
          cannot_be_modified: 1
309
        -
310
          columnname: otherholdings_itype
311
        -
312
          columnname: otherholdings_holdingbranch
313
        -
314
          columnname: otherholdings_homebranch
315
        -
316
          columnname: otherholdings_ccode
317
        -
318
          columnname: otherholdings_itemcallnumber
319
        -
320
          columnname: otherholdings_status
321
        -
322
          columnname: otherholdings_lastseen
323
        -
324
          columnname: otherholdings_barcode
325
        -
326
          columnname: otherholdings_enumchron
327
        -
328
          columnname: otherholdings_uri
329
        -
330
          columnname: otherholdings_copynumber
331
        -
332
          columnname: otherholdings_stocknumber
333
        -
334
          columnname: otherholdings_materials
335
        -
336
          columnname: otherholdings_itemnotes
337
        -
338
          columnname: otherholdings_itemnotes_nonpublic
339
        -
340
          columnname: otherholdings_hostrecord
341
        -
342
          columnname: otherholdings_usedin
343
        -
344
          columnname: otherholdings_usedin_col
345
        -
346
          columnname: otherholdings_course_reserves
347
        -
348
          columnname: otherholdings_spinelabel
349
        -
350
          columnname: otherholdings_actions
351
          cannot_be_toggled: 1
352
          cannot_be_modified: 1
353
255
      acquisitiondetails-table:
354
      acquisitiondetails-table:
256
        -
355
        -
257
          columnname: vendor
356
          columnname: vendor
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-28 / +29 lines)
Lines 225-258 Link Here
225
    <table class="items_table" id="[% tab | html %]_table">
225
    <table class="items_table" id="[% tab | html %]_table">
226
        <thead>
226
        <thead>
227
            <tr>
227
            <tr>
228
                [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
228
                [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
229
                [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
229
                [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
230
                <th>Current location</th>
230
                <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current location</th>
231
                <th>Home library</th>
231
                <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
232
                [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
232
                [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
233
                <th>Call number</th>
233
                <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
234
                [% IF volinfo %]
234
                [% IF volinfo %]
235
                    [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
235
                [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
236
                        <th class="title-string">Serial enumeration / chronology</th>
236
                        <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th>
237
                    [% ELSE %]
237
                    [% ELSE %]
238
                        <th>Serial enumeration / chronology</th>
238
                        <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
239
                    [% END %]
239
                    [% END %]
240
                [% END %]
240
                [% END %]
241
                <th>Status</th>
241
                <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
242
                <th class="title-string">Last seen</th>
242
                <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th>
243
                <th class="title-string">Date accessioned</th>
243
                <th id="[% tab | html %]_datesccessioned" date-colname="[% tab | html %]_datesccessioned" class="title-string">Date accessioned</th>
244
                <th>Barcode</th>
244
                <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
245
                [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
245
                [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
246
                [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
246
                [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
247
                [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
247
                [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
248
                [% IF materials %]<th>Materials specified</th>[% END %]
248
                [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
249
                [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
249
                [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
250
                [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
250
                [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
251
                [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
251
                [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
252
                [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
252
                [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
253
                [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
253
                [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course Reserves</th>[% END %]
254
                [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
254
                [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
255
                [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort">&nbsp;</th>[% END %]
255
                [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort">&nbsp;</th>[% END %]
256
            </tr>
256
            </tr>
257
        </thead>
257
        </thead>
258
        <tbody>
258
        <tbody>
Lines 1115-1121 Note that permanent location is a code, and location may be an authval. Link Here
1115
1115
1116
        $(document).ready(function() {
1116
        $(document).ready(function() {
1117
            var ids = ['holdings_table', 'otherholdings_table'];
1117
            var ids = ['holdings_table', 'otherholdings_table'];
1118
1118
            var columns_settings = [ [% ColumnsSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% ColumnsSettings.GetColumns('catalogue', 'detail','otherholdings_table','json')  | $raw %] ];
1119
            for (var i in ids) {
1119
            for (var i in ids) {
1120
                var id = ids[i];
1120
                var id = ids[i];
1121
                var dt_parameters = {
1121
                var dt_parameters = {
Lines 1125-1133 Note that permanent location is a code, and location may be an authval. Link Here
1125
                    "aoColumnDefs": [
1125
                    "aoColumnDefs": [
1126
                        { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1126
                        { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1127
                        { "sType": "title-string", "aTargets" : [ "title-string" ] }
1127
                        { "sType": "title-string", "aTargets" : [ "title-string" ] }
1128
                    ]
1128
                    ],
1129
                    "bKohaColumnsUseNames": true,
1130
                    "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1129
                };
1131
                };
1130
                var table = KohaTable(id, dt_parameters, null, 'with_filters');
1132
                var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
1131
            }
1133
            }
1132
1134
1133
            [% IF Koha.Preference('AcquisitionDetails') %]
1135
            [% IF Koha.Preference('AcquisitionDetails') %]
1134
- 

Return to bug 15668