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 216-222 Link Here
216
        dt_overwrite_html_sorting_localeCompare();
217
        dt_overwrite_html_sorting_localeCompare();
217
218
218
        $(document).ready(function() {
219
        $(document).ready(function() {
219
220
            var column_settings = [% TablesSettings.GetColumns( 'acqui', 'acq_acqui-home', 'accounts', 'json' ) | $raw %];
220
            var oTable = KohaTable("accounts", {
221
            var oTable = KohaTable("accounts", {
221
                "fnDrawCallback": function ( oSettings ) {
222
                "fnDrawCallback": function ( oSettings ) {
222
                    if ( oSettings.aiDisplay.length == 0 )
223
                    if ( oSettings.aiDisplay.length == 0 )
Lines 256-262 Link Here
256
                'aaSortingFixed': [[ 1, 'asc' ]],
257
                'aaSortingFixed': [[ 1, 'asc' ]],
257
                'bPaginate': false,
258
                'bPaginate': false,
258
                "bAutoWidth": false
259
                "bAutoWidth": false
259
            });
260
            }, column_settings );
260
261
261
            $(oTable).treetable({
262
            $(oTable).treetable({
262
                expandable: true
263
                expandable: true
263
- 

Return to bug 27212