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

(-)a/admin/columns_settings.yml (+25 lines)
Lines 316-318 modules: Link Here
316
          columnname: export
316
          columnname: export
317
          cannot_be_toggled: 1
317
          cannot_be_toggled: 1
318
          cannot_be_modified: 1
318
          cannot_be_modified: 1
319
320
    view_holdsqueue:
321
      holds-table:
322
        -
323
          columnname: title
324
        -
325
          columnname: collection:
326
        -
327
          columnname: document_type
328
        -
329
          columnname: callnumber
330
        -
331
          columnname: copynumber
332
        -
333
          columnname: enumeration
334
        -
335
          columnname: barcode
336
        -
337
          columnname: patron
338
        -
339
          columnname: send_to
340
        -
341
          columnname: date
342
        -
343
          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 / +86 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
            holdst.api().column(idx + ':visible').search(input.val()).draw();
26
        }, 200);
27
    };
28
    $('#holdst thead input').on('change keyup keydown', filterColumn);
29
30
    var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') %];
31
    var holdst = KohaTable("#holdst", {
18
        "aaSorting": [[ 3, "asc" ]],
32
        "aaSorting": [[ 3, "asc" ]],
19
        "aoColumns": [
33
        "aoColumns": [
20
            { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
34
            { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
21
        ],
35
        ],
22
        "sDom": 't',
36
        "sDom": 'B<"clearfix">t',
37
        "bSortCellsTop": true,
23
        "bPaginate": false
38
        "bPaginate": false
24
    });
39
    }, columns_settings);
40
25
});
41
});
26
//]]>
42
//]]>
27
</script>
43
</script>
44
</head>
45
<body id="circ_view_holdsqueue" class="circ">
46
[% INCLUDE 'header.inc' %]
47
[% INCLUDE 'cat-search.inc' %]
28
48
29
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
49
<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>
50
&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 %]
52
[% IF ( run_report ) %] &rsaquo; Results[% END %]
33
</div>
53
</div>
34
54
35
<div id="doc" class="yui-t7">
55
<div id="doc2" class="yui-t7">
36
56
37
   <div id="bd">
57
   <div id="bd">
38
	<div id="yui-main">
58
	<div id="yui-main">
Lines 51-57 $(document).ready(function() { Link Here
51
    [% IF ( itemsloop ) %]
71
    [% IF ( itemsloop ) %]
52
<table id="holdst">
72
<table id="holdst">
53
	<thead>
73
	<thead>
54
	<tr>
74
    <tr>
55
        <th class="hq-title">Title</th>
75
        <th class="hq-title">Title</th>
56
        <th class="hq-collection">Collection</th>
76
        <th class="hq-collection">Collection</th>
57
        <th class="hq-itemtype">Item type</th>
77
        <th class="hq-itemtype">Item type</th>
Lines 64-69 $(document).ready(function() { Link Here
64
        <th class="hq-date">Date</th>
84
        <th class="hq-date">Date</th>
65
        <th class="hq-notes">Notes</th>
85
        <th class="hq-notes">Notes</th>
66
    </tr>
86
    </tr>
87
    <tr>
88
        <td class="hq-title">
89
            <span class="filter_column filter_text">
90
                <input class="text_filter" type="text" placeholder="Title">
91
            </span>
92
        </td>
93
        <td class="hq-collection">
94
            <span class="filter_column filter_text">
95
                <input type="text" placeholder="Collection">
96
            </span>
97
        </td>
98
        <td class="hq-itemtype">
99
            <span class="filter_column filter_text">
100
                <input type="text" placeholder="Item type">
101
            </span>
102
        </td>
103
        <td class="hq-callnumber">
104
            <span class="filter_column filter_text">
105
                <input type="text" placeholder="Call number">
106
            </span>
107
        </td>
108
        <td class="hq-copynumber">
109
            <span class="filter_column filter_text">
110
                <input type="text" placeholder="Copy number">
111
            </span>
112
        </td>
113
        <td class="hq-enumchron">
114
            <span class="filter_column filter_text">
115
                <input type="text" placeholder="Enumeration">
116
            </span>
117
        </td>
118
        <td class="hq-barcode">
119
            <span class="filter_column filter_text">
120
                <input type="text" placeholder="Barcode">
121
            </span>
122
        </td>
123
        <td class="hq-patron">
124
            <span class="filter_column filter_text">
125
                <input type="text" placeholder="Patron">
126
            </span>
127
        </td>
128
        <td class="hq-sendto">
129
            <span class="filter_column filter_text">
130
                <input type="text" placeholder="Send to">
131
            </span>
132
        </td>
133
        <td class="hq-date">
134
            <span class="filter_column filter_text">
135
                <input type="text" placeholder="Date">
136
            </span>
137
        </td>
138
        <td class="hq-notes">
139
            <span class="filter_column filter_text">
140
                <input type="text" placeholder="Notes">
141
            </span>
142
        </td>
143
    </tr>
67
	</thead>
144
	</thead>
68
     <tbody>[% FOREACH itemsloo IN itemsloop %]
145
     <tbody>[% FOREACH itemsloo IN itemsloop %]
69
        <tr>
146
        <tr>
70
- 

Return to bug 15471