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

(-)a/admin/columns_settings.yml (+25 lines)
Lines 314-316 modules: Link Here
314
          columnname: export
314
          columnname: export
315
          cannot_be_toggled: 1
315
          cannot_be_toggled: 1
316
          cannot_be_modified: 1
316
          cannot_be_modified: 1
317
318
    view_holdsqueue:
319
      holds-table:
320
        -
321
          columnname: title
322
        -
323
          columnname: collection:
324
        -
325
          columnname: document_type
326
        -
327
          columnname: callnumber
328
        -
329
          columnname: copynumber
330
        -
331
          columnname: enumeration
332
        -
333
          columnname: barcode
334
        -
335
          columnname: patron
336
        -
337
          columnname: send_to
338
        -
339
          columnname: date
340
        -
341
          columnname: notes
(-)a/koha-tmpl/intranet-tmpl/prog/en/css/datatables.css (-2 / +2 lines)
Lines 239-248 tr.even.selected td { Link Here
239
}
239
}
240
240
241
/* ColumnFilter */
241
/* ColumnFilter */
242
span.filter_column > input.text_filter {
242
span.filter_column > input[type="text"] {
243
    font-size: 80%;
243
    font-size: 80%;
244
    width: 100%;
244
    width: 100%;
245
    padding: 0;
245
    box-sizing: border-box;
246
}
246
}
247
247
248
/* Row grouping */
248
/* Row grouping */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt (-10 / +87 lines)
Lines 2-30 Link Here
2
[% USE ItemTypes %]
2
[% USE ItemTypes %]
3
[% USE Branches %]
3
[% USE Branches %]
4
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
5
[% USE ColumnsSettings %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
7
<title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
<style type="text/css"> p { margin-top: 0; }</style>
9
<style type="text/css"> p { margin-top: 0; }</style>
9
</head>
10
<body id="circ_view_holdsqueue" class="circ">
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
13
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
10
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
14
[% INCLUDE 'datatables.inc' %]
11
[% INCLUDE 'datatables.inc' %]
12
[% INCLUDE 'columns_settings.inc' %]
15
<script type="text/javascript">//<![CDATA[
13
<script type="text/javascript">//<![CDATA[
16
$(document).ready(function() {
14
$(document).ready(function() {
17
    $("#holdst").dataTable({
15
    var holdst;
16
17
    // Setup filters before DataTables initialisation, in case some columns are
18
    // hidden by default
19
    var filterColumnTimeoutId;
20
    var filterColumn = function(e) {
21
        clearTimeout(filterColumnTimeoutId);
22
        filterColumnTimeoutId = setTimeout(function() {
23
            var input = $(e.target);
24
            var idx = input.parents('td').index();
25
            console.log('filter' + Math.random());
26
            holdst.api().column(idx + ':visible').search(input.val()).draw();
27
        }, 200);
28
    };
29
    $('#holdst thead input').on('change keyup keydown', filterColumn);
30
31
    var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') %];
32
    var holdst = KohaTable("#holdst", {
18
        "aaSorting": [[ 3, "asc" ]],
33
        "aaSorting": [[ 3, "asc" ]],
19
        "aoColumns": [
34
        "aoColumns": [
20
            { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
35
            { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
21
        ],
36
        ],
22
        "sDom": 't',
37
        "sDom": 'B<"clearfix">t',
38
        "bSortCellsTop": true,
23
        "bPaginate": false
39
        "bPaginate": false
24
    });
40
    }, columns_settings);
41
25
});
42
});
26
//]]>
43
//]]>
27
</script>
44
</script>
45
</head>
46
<body id="circ_view_holdsqueue" class="circ">
47
[% INCLUDE 'header.inc' %]
48
[% INCLUDE 'cat-search.inc' %]
28
49
29
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
50
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
30
&rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
51
&rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
Lines 32-38 $(document).ready(function() { Link Here
32
[% IF ( run_report ) %] &rsaquo; Results[% END %]
53
[% IF ( run_report ) %] &rsaquo; Results[% END %]
33
</div>
54
</div>
34
55
35
<div id="doc" class="yui-t7">
56
<div id="doc2" class="yui-t7">
36
57
37
   <div id="bd">
58
   <div id="bd">
38
	<div id="yui-main">
59
	<div id="yui-main">
Lines 51-57 $(document).ready(function() { Link Here
51
    [% IF ( itemsloop ) %]
72
    [% IF ( itemsloop ) %]
52
<table id="holdst">
73
<table id="holdst">
53
	<thead>
74
	<thead>
54
	<tr>
75
    <tr>
55
        <th class="hq-title">Title</th>
76
        <th class="hq-title">Title</th>
56
        <th class="hq-collection">Collection</th>
77
        <th class="hq-collection">Collection</th>
57
        <th class="hq-itemtype">Item type</th>
78
        <th class="hq-itemtype">Item type</th>
Lines 64-69 $(document).ready(function() { Link Here
64
        <th class="hq-date">Date</th>
85
        <th class="hq-date">Date</th>
65
        <th class="hq-notes">Notes</th>
86
        <th class="hq-notes">Notes</th>
66
    </tr>
87
    </tr>
88
    <tr>
89
        <td class="hq-title">
90
            <span class="filter_column filter_text">
91
                <input class="text_filter" type="text" placeholder="Title">
92
            </span>
93
        </td>
94
        <td class="hq-collection">
95
            <span class="filter_column filter_text">
96
                <input type="text" placeholder="Collection">
97
            </span>
98
        </td>
99
        <td class="hq-itemtype">
100
            <span class="filter_column filter_text">
101
                <input type="text" placeholder="Item type">
102
            </span>
103
        </td>
104
        <td class="hq-callnumber">
105
            <span class="filter_column filter_text">
106
                <input type="text" placeholder="Call number">
107
            </span>
108
        </td>
109
        <td class="hq-copynumber">
110
            <span class="filter_column filter_text">
111
                <input type="text" placeholder="Copy number">
112
            </span>
113
        </td>
114
        <td class="hq-enumchron">
115
            <span class="filter_column filter_text">
116
                <input type="text" placeholder="Enumeration">
117
            </span>
118
        </td>
119
        <td class="hq-barcode">
120
            <span class="filter_column filter_text">
121
                <input type="text" placeholder="Barcode">
122
            </span>
123
        </td>
124
        <td class="hq-patron">
125
            <span class="filter_column filter_text">
126
                <input type="text" placeholder="Patron">
127
            </span>
128
        </td>
129
        <td class="hq-sendto">
130
            <span class="filter_column filter_text">
131
                <input type="text" placeholder="Send to">
132
            </span>
133
        </td>
134
        <td class="hq-date">
135
            <span class="filter_column filter_text">
136
                <input type="text" placeholder="Date">
137
            </span>
138
        </td>
139
        <td class="hq-notes">
140
            <span class="filter_column filter_text">
141
                <input type="text" placeholder="Notes">
142
            </span>
143
        </td>
144
    </tr>
67
	</thead>
145
	</thead>
68
     <tbody>[% FOREACH itemsloo IN itemsloop %]
146
     <tbody>[% FOREACH itemsloo IN itemsloop %]
69
        <tr>
147
        <tr>
70
- 

Return to bug 15471