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

(-)a/admin/columns_settings.yml (+71 lines)
Lines 2519-2524 modules: Link Here
2519
            -
2519
            -
2520
              columnname: link
2520
              columnname: link
2521
2521
2522
    patron_details:
2523
      checkoutst:
2524
        columns:
2525
            -
2526
              columnname: title
2527
            -
2528
              columnname: author
2529
            -
2530
              columnname: datedue
2531
            -
2532
              columnname: itemtype
2533
            -
2534
              columnname: barcode
2535
            -
2536
              columnname: callnumber
2537
            -
2538
              columnname: renew
2539
            -
2540
              columnname: fines
2541
            -
2542
              columnname: links
2543
      holdst:
2544
        columns:
2545
            -
2546
              columnname: title
2547
            -
2548
              columnname: placed_on
2549
            -
2550
              columnname: expires_on
2551
            -
2552
              columnname: pickup_location
2553
            -
2554
              columnname: priority
2555
            -
2556
              columnname: notes
2557
            -
2558
              columnname: suspend
2559
            -
2560
              columnname: modify
2561
      overduest:
2562
        columns:
2563
            -
2564
              columnname: title
2565
            -
2566
              columnname: itemtype
2567
            -
2568
              columnname: barcode
2569
            -
2570
              columnname: callnumber
2571
            -
2572
              columnname: checkoutdate
2573
            -
2574
              columnname: duedate
2575
            -
2576
              columnname: renew
2577
            -
2578
              columnname: fines
2579
2580
      opac_user_relative_issues_table:
2581
        columns:
2582
            -
2583
              columnname: title
2584
            -
2585
              columnname: duedate
2586
            -
2587
              columnname: barcode
2588
            -
2589
              columnname: callnumber
2590
            -
2591
              columnname: relative
2592
2522
  serials:
2593
  serials:
2523
    claims:
2594
    claims:
2524
      claimst:
2595
      claimst:
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc (-9 / +9 lines)
Lines 9-36 Link Here
9
    <!-- HOLDS TABLE ROWS -->
9
    <!-- HOLDS TABLE ROWS -->
10
    <thead>
10
    <thead>
11
        <tr>
11
        <tr>
12
            <th class="all anti-the">Title</th>
12
            <th data-colname="title" class="all anti-the">Title</th>
13
            [% IF ( showpriority ) %]
13
            [% IF ( showpriority ) %]
14
                <th>Placed on</th>
14
                <th data-colname="placed_on">Placed on</th>
15
            [% ELSE %]
15
            [% ELSE %]
16
                <th class="psort">Placed on</th>
16
                <th data-colname="placed_on" class="psort">Placed on</th>
17
            [% END %]
17
            [% END %]
18
            <th>Expires on</th>
18
            <th data-colname="expires_on">Expires on</th>
19
            [% UNLESS( singleBranchMode) %]
19
            [% UNLESS( singleBranchMode) %]
20
                <th>Pickup location</th>
20
                <th data-colname="pickup_location">Pickup location</th>
21
            [% END %]
21
            [% END %]
22
            [% IF ( showpriority ) %]
22
            [% IF ( showpriority ) %]
23
                <th class="psort">Priority</th>
23
                <th data-colname="priority" class="psort">Priority</th>
24
            [% END %]
24
            [% END %]
25
            [% IF Koha.Preference('OpacHoldNotes') %]
25
            [% IF Koha.Preference('OpacHoldNotes') %]
26
                <th>Notes</th>
26
                <th data-colname="notes">Notes</th>
27
            [% END %]
27
            [% END %]
28
            <th>Status</th>
28
            <th>Status</th>
29
            [% IF SuspendHoldsOpac and ! onlyinfo %]
29
            [% IF SuspendHoldsOpac and ! onlyinfo %]
30
                <th class="nosort">Suspend</th>
30
                <th data-colname="suspend" class="nosort" >Suspend</th>
31
            [% END %]
31
            [% END %]
32
            [% IF ! onlyinfo %]
32
            [% IF ! onlyinfo %]
33
                <th class="nosort">Modify</th>
33
                <th data-colname="modify" class="nosort">Modify</th>
34
            [% END %]
34
            [% END %]
35
            <th></th>
35
            <th></th>
36
        </tr>
36
        </tr>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-26 / +30 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE TablesSettings %]
5
[% USE Branches %]
6
[% USE Branches %]
6
[% USE I18N %]
7
[% USE I18N %]
7
[% USE ItemTypes %]
8
[% USE ItemTypes %]
Lines 309-337 Link Here
309
                                            <thead>
310
                                            <thead>
310
                                                <tr>
311
                                                <tr>
311
                                                    [% IF ( JacketImages ) %]<th class="no-sort">&nbsp;</th>[% END %]
312
                                                    [% IF ( JacketImages ) %]<th class="no-sort">&nbsp;</th>[% END %]
312
                                                    <th class="all anti-the">Title</th>
313
                                                    <th id="title" data-colname="title" class="all anti-the">Title</th>
313
                                                    <th>Author</th>
314
                                                    <th id="author" data-colname="author">Author</th>
314
                                                    <th>Checked out on</th>
315
                                                    <th id="checkoutdate" data-colname="checkoutdate" class="psort">Checked out on</th>
315
                                                    <th class="psort">Due</th>
316
                                                    <th id="duedate" data-colname="datedue" class="psort">Due</th>
316
                                                    [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %]
317
                                                    [% IF ( Koha.Preference('BiblioItemtypeInfo') || !item_level_itypes ) %]
317
                                                        <th>Item type</th>
318
                                                        <th data-colname="itemtype">Item type</th>
318
                                                    [% END %]
319
                                                    [% END %]
319
                                                    [% IF ( show_barcode ) %]
320
                                                    [% IF ( show_barcode ) %]
320
                                                        <th>Barcode</th>
321
                                                        <th data-colname="barcode">Barcode</th>
321
                                                    [% END %]
322
                                                    [% END %]
322
                                                    <th>Call number</th>
323
                                                    <th data-colname="callnumber">Call number</th>
323
                                                    [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions_contains('renew') ) ) %]
324
                                                    [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions_contains('renew') ) ) %]
324
                                                        <th>Renew</th>
325
                                                        <th data-colname="renew">Renew</th>
325
                                                    [% END %]
326
                                                    [% END %]
326
                                                    [% IF ( OPACFinesTab ) %]
327
                                                    [% IF ( OPACFinesTab ) %]
327
                                                        <th>Fines</th>
328
                                                        <th data-colname="fines">Fines</th>
328
                                                    [% END %]
329
                                                    [% END %]
329
                                                    [% IF Koha.Preference('OPACMySummaryHTML') %]
330
                                                    [% IF Koha.Preference('OPACMySummaryHTML') %]
330
                                                        <th class="no-sort">Links</th>
331
                                                        <th class="no-sort" data-colname="links">Links</th>
331
                                                    [% END %]
332
                                                    [% END %]
332
                                                    [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
333
                                                    [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
333
                                                        <th class="hidden">Checkout note</th>
334
                                                        <th class="hidden">Checkout note</th>
334
                                                        <th id="checkout-notes" class="no-sort no-export" title="Use this to report any problems with your currently checked out items">Report a problem</th>
335
                                                        <th id="checkout-notes" class="no-sort no-export" title="Use this to report any problems with your currently checked out items" data-colname="note">Report a problem</th>
335
                                                    [% END %]
336
                                                    [% END %]
336
                                                    <th class="dtr-control-col"></th>
337
                                                    <th class="dtr-control-col"></th>
337
                                                </tr>
338
                                                </tr>
Lines 650-660 Link Here
650
                                        <caption class="sr-only">Relatives' checkouts</caption>
651
                                        <caption class="sr-only">Relatives' checkouts</caption>
651
                                        <thead>
652
                                        <thead>
652
                                            <tr>
653
                                            <tr>
653
                                                <th class="all anti-the">Title</th>
654
                                                <th data-colname="title" class="all anti-the">Title</th>
654
                                                <th>Due</th>
655
                                                <th data-colname="duedate">Due</th>
655
                                                <th>Barcode</th>
656
                                                <th data-colname="barcode">Barcode</th>
656
                                                <th>Call number</th>
657
                                                <th data-colname="callnumber">Call number</th>
657
                                                <th class="psort">Relative</th>
658
                                                <th data-colname="relative" class="psort">Relative</th>
658
                                                <th class="dtr-control-col"></th>
659
                                                <th class="dtr-control-col"></th>
659
                                            </tr>
660
                                            </tr>
660
                                        </thead>
661
                                        </thead>
Lines 692-708 Link Here
692
                                        <thead>
693
                                        <thead>
693
                                            <tr>
694
                                            <tr>
694
                                                [% IF ( JacketImages ) %]<th class="no-sort">&nbsp;</th>[% END %]
695
                                                [% IF ( JacketImages ) %]<th class="no-sort">&nbsp;</th>[% END %]
695
                                                <th class="all anti-the">Title</th>
696
                                                <th data-colname="title" class="all anti-the">Title</th>
696
                                                [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
697
                                                [% UNLESS ( item_level_itypes ) %]<th data-colname="itemtype">Item type</th> [% END %]
697
                                                [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
698
                                                [% IF ( show_barcode ) %]<th data-colname="barcode">Barcode</th>[% END %]
698
                                                <th>Call number</th>
699
                                                <th data-colname="callnumber">Call number</th>
699
                                                <th>Checked out on</th>
700
                                                <th data-colname="checkoutdate">Checked out on</th>
700
                                                <th class="psort">Due</th>
701
                                                <th data-colname="duedate" class="psort">Due</th>
701
                                                [% IF ( OpacRenewalAllowed ) %]
702
                                                [% IF ( OpacRenewalAllowed ) %]
702
                                                    <th class="no-sort">Renew</th>
703
                                                    <th data-colname="renew" class="no-sort">Renew</th>
703
                                                [% END %]
704
                                                [% END %]
704
                                                [% IF ( OPACFinesTab ) %]
705
                                                [% IF ( OPACFinesTab ) %]
705
                                                    <th>Fines</th>
706
                                                    <th data-colname="fines">Fines</th>
706
                                                [% END %]
707
                                                [% END %]
707
                                                <th class="dtr-control-col"></th>
708
                                                <th class="dtr-control-col"></th>
708
                                            </tr>
709
                                            </tr>
Lines 1175-1180 Link Here
1175
                );
1176
                );
1176
            });
1177
            });
1177
1178
1179
            var tables_settings = new Map();
1180
            [% FOREACH table IN ['checkoutst', 'holdst', 'overduest','opac_user_relative_issues_table'] %]
1181
            tables_settings.set("[% table | $raw %]", [% TablesSettings.GetTableSettings( 'opac', 'patron_details', table, 'json') | $raw %]);
1182
            [% END %]
1178
            var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
1183
            var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
1179
            dTables.each(function(){
1184
            dTables.each(function(){
1180
                var thIndex = $(this).find("th.psort").index();
1185
                var thIndex = $(this).find("th.psort").index();
Lines 1216-1222 Link Here
1216
                            }
1221
                            }
1217
                        }
1222
                        }
1218
                    ]
1223
                    ]
1219
                });
1224
                }, tables_settings.get($(this).attr('id')));
1220
            });
1225
            });
1221
1226
1222
            var dataTables = $("#recalls-table,#article-requests-table");
1227
            var dataTables = $("#recalls-table,#article-requests-table");
1223
- 

Return to bug 30221