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

(-)a/admin/columns_settings.yml (+28 lines)
Lines 1-5 Link Here
1
modules:
1
modules:
2
  acqui:
2
  acqui:
3
    acq_acqui-home:
4
      accounts:
5
        columns:
6
            -
7
              columnname: active
8
              cannot_be_toggled: 1
9
              cannot_be_modified: 1
10
            -
11
              columnname: budget_period_descriptions
12
              cannot_be_toggled: 1
13
              cannot_be_modified: 1
14
            -
15
              columnname: fund_code
16
            -
17
              columnname: fund_name
18
            -
19
              columnname: owner
20
            -
21
              columnname: library
22
            -
23
              columnname: amount
24
            -
25
              columnname: ordered
26
            -
27
              columnname: spent
28
            -
29
              columnname: total_available
30
3
    histsearch:
31
    histsearch:
4
      histsearcht:
32
      histsearcht:
5
        columns:
33
        columns:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-3 / +3 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Price %]
3
[% USE Price %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE TablesSettings %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Acquisitions &rsaquo; Koha</title>
8
<title>Acquisitions &rsaquo; Koha</title>
Lines 196-202 Link Here
196
        dt_overwrite_html_sorting_localeCompare();
197
        dt_overwrite_html_sorting_localeCompare();
197
198
198
        $(document).ready(function() {
199
        $(document).ready(function() {
199
200
            var column_settings = [% TablesSettings.GetColumns( 'acqui', 'acq_acqui-home', 'accounts', 'json' ) | $raw %];
200
            var oTable = KohaTable("accounts", {
201
            var oTable = KohaTable("accounts", {
201
                "fnDrawCallback": function ( oSettings ) {
202
                "fnDrawCallback": function ( oSettings ) {
202
                    if ( oSettings.aiDisplay.length == 0 )
203
                    if ( oSettings.aiDisplay.length == 0 )
Lines 236-242 Link Here
236
                'aaSortingFixed': [[ 1, 'asc' ]],
237
                'aaSortingFixed': [[ 1, 'asc' ]],
237
                'bPaginate': false,
238
                'bPaginate': false,
238
                "bAutoWidth": false
239
                "bAutoWidth": false
239
            });
240
            }, column_settings );
240
241
241
            $(oTable).treetable({
242
            $(oTable).treetable({
242
                expandable: true
243
                expandable: true
243
- 

Return to bug 27212