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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-41 / +13 lines)
Lines 68-74 Link Here
68
                    </span>
68
                    </span>
69
                </div>
69
                </div>
70
            [% END %]
70
            [% END %]
71
            <table>
71
            [% SET table_id = closed ? "closed_subscriptions" : "opened_subscriptions" %]
72
73
            <table id="[% table_id | html %]">
72
                <thead>
74
                <thead>
73
                    <tr>
75
                    <tr>
74
                        <th class="NoSort noExport"></th>
76
                        <th class="NoSort noExport"></th>
Lines 185-215 Link Here
185
                                        [% END # IF closed %]
187
                                        [% END # IF closed %]
186
                                    </div> <!-- /.btn-group -->
188
                                    </div> <!-- /.btn-group -->
187
                                </td>
189
                                </td>
188
189
                            </tr>
190
                            </tr>
190
                        [% END # /UNLESS subscription.cannotdisplay %]
191
                        [% END # /UNLESS subscription.cannotdisplay %]
191
                    [% END  # /FOREACH subscription %]
192
                    [% END  # /FOREACH subscription %]
192
                </tbody>
193
                </tbody>
193
                <tfoot>
194
                    <tr>
195
                        <td></td>
196
                        <td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search ISSN" /></td>
197
                        <td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search title" /></td>
198
                        <td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search notes" /></td>
199
                        <td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search library" /></td>
200
                        <td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search location" /></td>
201
                        <td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search callnumber" /></td>
202
                        [% SET column_num = 6 %]
203
                        [% UNLESS closed %]
204
                            <td><input type="text" class="dt-filter" data-column_num="7" placeholder="Search expiration date" /></td>
205
                            [% SET column_num = column_num + 1 %]
206
                        [% END %]
207
                        [% FOR field IN additional_fields_for_subscription %]
208
                            <td><input type="text" class="dt-filter" data-column_num="[% loop.count + column_num | html %]" placeholder="Search [% field.name | html %]" /></td>
209
                        [% END %]
210
                        <td></td>
211
                    </tr>
212
                </tfoot>
213
            </table>
194
            </table>
214
        </div>
195
        </div>
215
    [% END # /BLOCK subscriptions_table %]
196
    [% END # /BLOCK subscriptions_table %]
Lines 311-316 Link Here
311
[% MACRO jsinclude BLOCK %]
292
[% MACRO jsinclude BLOCK %]
312
    [% INCLUDE 'calendar.inc' %]
293
    [% INCLUDE 'calendar.inc' %]
313
    [% INCLUDE 'datatables.inc' %]
294
    [% INCLUDE 'datatables.inc' %]
295
    [% INCLUDE 'columns_settings.inc' %]
314
    <script>
296
    <script>
315
        var subscriptionid = "[% subscriptionid | html %]";
297
        var subscriptionid = "[% subscriptionid | html %]";
316
    </script>
298
    </script>
Lines 343-366 Link Here
343
        }
325
        }
344
326
345
        $(document).ready(function() {
327
        $(document).ready(function() {
346
            var osrlt = $("#opened_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
328
            var osrlt = KohaTable("opened_subscriptions", {
347
                "pagingType": "full",
329
                pagingType: "full",
348
                "order": [[ 2, "asc" ]],
330
                order: [[2, "asc"]],
349
                "columnDefs": [
331
            }, null, true);
350
                    { "orderable": false, "searchable":  false, "targets": [ 'NoSort' ] },
332
351
                    { "type": "anti-the", "targets":  [ 'anti-the'] }
333
            var csrlt = KohaTable("closed_subscriptions", {
352
                ]
334
                order: [[2, "asc"]],
353
            }));
335
                pagingType: "full",
354
336
            }, null, true);
355
            var csrlt = $("#closed_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
356
                // FIXME sort function of additional_fields!
357
                "order": [[ 2, "asc" ]],
358
                "pagingType": "full",
359
                "columnDefs": [
360
                    { "orderable": false, "targets": [ 'NoSort' ] },
361
                    { "type": "anti-the", "targets":  [ 'anti-the'] }
362
                ]
363
            }));
364
337
365
            var manarlt = $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults, {
338
            var manarlt = $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults, {
366
                "pagingType": "full",
339
                "pagingType": "full",
367
- 

Return to bug 39814