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

(-)a/admin/columns_settings.yml (+24 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
            -
9
              columnname: budget_period_description
10
            -
11
              columnname: fund_code
12
            -
13
              columnname: fund_name
14
            -
15
              columnname: owner
16
            -
17
              columnname: library
18
            -
19
              columnname: amount
20
            -
21
              columnname: ordered
22
            -
23
              columnname: spent
24
            -
25
              columnname: total_available
26
3
    histsearch:
27
    histsearch:
4
      histsearcht:
28
      histsearcht:
5
        columns:
29
        columns:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-1 / +11 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>Koha &rsaquo; Acquisitions</title>
8
<title>Koha &rsaquo; Acquisitions</title>
Lines 195-200 Link Here
195
196
196
[% MACRO jsinclude BLOCK %]
197
[% MACRO jsinclude BLOCK %]
197
    [% INCLUDE 'datatables.inc' %]
198
    [% INCLUDE 'datatables.inc' %]
199
    [% INCLUDE 'columns_settings.inc' %]
198
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
200
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
199
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
201
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
200
    <script>
202
    <script>
Lines 202-207 Link Here
202
204
203
        $(document).ready(function() {
205
        $(document).ready(function() {
204
206
207
            var column_settings = [% TablesSettings.GetColumns( 'acqui', 'acq_acqui-home', 'accounts', 'json' ) | $raw %]; 
208
			var accounts_table = KohaTable("accounts", {
209
				"columnDefs": [
210
					{ "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
211
					{ "type": "title-string", "targets" : [ "title-string" ] }
212
				],
213
				'autoWidth': false,
214
			}, column_settings );
215
205
            var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
216
            var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
206
                "fnDrawCallback": function ( oSettings ) {
217
                "fnDrawCallback": function ( oSettings ) {
207
                    if ( oSettings.aiDisplay.length == 0 )
218
                    if ( oSettings.aiDisplay.length == 0 )
208
- 

Return to bug 27212