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

(-)a/admin/columns_settings.yml (+205 lines)
Lines 1473-1478 modules: Link Here
1473
            -
1473
            -
1474
              columnname: patron
1474
              columnname: patron
1475
1475
1476
      recalls-table:
1477
        default_display_length: 20
1478
        columns:
1479
            - columnname: completed
1480
              cannot_be_toggled: 1
1481
              cannot_be_modified: 1
1482
              is_hidden: 1
1483
            -
1484
              columnname: title
1485
            -
1486
              columnname: requested_by
1487
            -
1488
              columnname: placed_on
1489
            -
1490
              columnname: expires_on
1491
            -
1492
              columnname: pickup_location
1493
            -
1494
              columnname: status
1495
            -
1496
              columnname: due_date
1497
            -
1498
              columnname: actions
1499
              cannot_be_toggled: 1
1500
              cannot_be_modified: 1
1501
1476
    holdshistory:
1502
    holdshistory:
1477
      holdshistory-table:
1503
      holdshistory-table:
1478
        default_display_length: 20
1504
        default_display_length: 20
Lines 1535-1540 modules: Link Here
1535
            -
1561
            -
1536
              columnname: return_date
1562
              columnname: return_date
1537
1563
1564
    recallshistory:
1565
      recallshistory-table:
1566
        default_display_length: 20
1567
        columns:
1568
            - columnname: completed
1569
              cannot_be_toggled: 1
1570
              cannot_be_modified: 1
1571
              is_hidden: 1
1572
            -
1573
              columnname: title
1574
            -
1575
              columnname: requested_by
1576
            -
1577
              columnname: placed_on
1578
            -
1579
              columnname: expires_on
1580
            -
1581
              columnname: pickup_location
1582
            -
1583
              columnname: status
1584
            -
1585
              columnname: due_date
1586
            -
1587
              columnname: actions
1588
              cannot_be_toggled: 1
1589
              cannot_be_modified: 1
1590
1538
    patron-lists:
1591
    patron-lists:
1539
      patron-list-table:
1592
      patron-list-table:
1540
        default_display_length: 20
1593
        default_display_length: 20
Lines 1907-1912 modules: Link Here
1907
            -
1960
            -
1908
              columnname: patron
1961
              columnname: patron
1909
1962
1963
      recalls-table:
1964
        default_display_length: 20
1965
        columns:
1966
            - columnname: completed
1967
              cannot_be_toggled: 1
1968
              cannot_be_modified: 1
1969
              is_hidden: 1
1970
            -
1971
              columnname: title
1972
            -
1973
              columnname: requested_by
1974
            -
1975
              columnname: placed_on
1976
            -
1977
              columnname: expires_on
1978
            -
1979
              columnname: pickup_location
1980
            -
1981
              columnname: status
1982
            -
1983
              columnname: due_date
1984
            -
1985
              columnname: actions
1986
              cannot_be_toggled: 1
1987
              cannot_be_modified: 1
1988
1910
      table_borrowers:
1989
      table_borrowers:
1911
        columns:
1990
        columns:
1912
            -
1991
            -
Lines 2413-2418 modules: Link Here
2413
                    columnname: patron
2492
                    columnname: patron
2414
                -
2493
                -
2415
                    columnname: booking_dates
2494
                    columnname: booking_dates
2495
    recalls:
2496
      recalls-old-queue:
2497
        columns:
2498
            -
2499
              columnname: completed
2500
              cannot_be_toggled: 1
2501
              cannot_be_modified: 1
2502
              is_hidden: 1
2503
            -
2504
              columnname: title
2505
            -
2506
              columnname: requested_by
2507
            -
2508
              columnname: placed_on
2509
            -
2510
              columnname: expires_on
2511
            -
2512
              columnname: pickup_location
2513
            -
2514
              columnname: status
2515
2516
      recalls-overdue:
2517
        columns:
2518
            -
2519
              columnname: completed
2520
              cannot_be_toggled: 1
2521
              cannot_be_modified: 1
2522
              is_hidden: 1
2523
            -
2524
              columnname: checkbox
2525
              cannot_be_toggled: 1
2526
              cannot_be_modified: 1
2527
            -
2528
              columnname: title
2529
            -
2530
              columnname: requested_by
2531
            -
2532
              columnname: placed_on
2533
            -
2534
              columnname: expires_on
2535
            -
2536
              columnname: pickup_location
2537
            -
2538
              columnname: status
2539
            -
2540
              columnname: due_date
2541
            -
2542
              columnname: actions
2543
              cannot_be_toggled: 1
2544
              cannot_be_modified: 1
2545
2546
      recalls-queue:
2547
        columns:
2548
            -
2549
              columnname: completed
2550
              cannot_be_toggled: 1
2551
              cannot_be_modified: 1
2552
              is_hidden: 1
2553
            -
2554
              columnname: checkbox
2555
              cannot_be_toggled: 1
2556
              cannot_be_modified: 1
2557
            -
2558
              columnname: title
2559
            -
2560
              columnname: requested_by
2561
            -
2562
              columnname: placed_on
2563
            -
2564
              columnname: expires_on
2565
            -
2566
              columnname: pickup_location
2567
            -
2568
              columnname: status
2569
            -
2570
              columnname: due_date
2571
            -
2572
              columnname: actions
2573
              cannot_be_toggled: 1
2574
              cannot_be_modified: 1
2575
2576
      recalls-to-pull:
2577
        columns:
2578
            -
2579
              columnname: items_to_pull
2580
            -
2581
              columnname: items_available
2582
            -
2583
              columnname: patrons_with_recalls
2584
            -
2585
              columnname: firstpatron
2586
            -
2587
              columnname: title
2588
            -
2589
              columnname: libraries
2590
            -
2591
              columnname: callnumbers
2592
            -
2593
              columnname: copynumbers
2594
            -
2595
              columnname: enumeration
2596
            -
2597
              columnname: itemtypes
2598
            -
2599
              columnname: locations
2600
            -
2601
              columnname: earliest_recall_date
2602
            -
2603
              columnname: action
2604
              cannot_be_toggled: 1
2605
              cannot_be_modified: 1
2606
2607
      recalls-waiting:
2608
        columns:
2609
            -
2610
              columnname: available_since
2611
            -
2612
              columnname: title
2613
            -
2614
              columnname: requested_by
2615
            -
2616
              columnname: pickup_location
2617
            -
2618
              columnname: action
2619
              cannot_be_toggled: 1
2620
              cannot_be_modified: 1
2416
2621
2417
  opac:
2622
  opac:
2418
    biblio-detail:
2623
    biblio-detail:
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc (-12 / +13 lines)
Lines 4-25 Link Here
4
        <table id="recalls-table">
4
        <table id="recalls-table">
5
            <thead>
5
            <thead>
6
                <tr>
6
                <tr>
7
                    [% IF checkboxes %]<th class="recall-checkbox no-sort">&nbsp;</th>[% END %]
7
                    <th data-colname="completed" class="recall-completed no-sort no-export"></th>
8
                    <th class="recall-title anti-the">Title</th>
8
                    [% IF checkboxes %]<th data-colname="checkbox" class="recall-checkbox no-sort no-export">&nbsp;</th>[% END %]
9
                    [% UNLESS specific_patron %]<th class="recall-patron">Requested by</th>[% END %]
9
                    <th data-colname="title" class="recall-title anti-the">Title</th>
10
                    <th class="recall-date">Placed on</th>
10
                    [% UNLESS specific_patron %]<th data-colname="requested_by" class="recall-patron">Requested by</th>[% END %]
11
                    <th class="recall-expiry">Expires on</th>
11
                    <th data-colname="placed_on" class="recall-date">Placed on</th>
12
                    <th class="recall-branch">Pickup location</th>
12
                    <th data-colname="expires_on" class="recall-expiry">Expires on</th>
13
                    <th class="recall-status">Status</th>
13
                    <th data-colname="pickup_location" class="recall-branch">Pickup location</th>
14
                    [% UNLESS viewing_old %]<th class="recall-duedate">Due date</th>[% END %]
14
                    <th data-colname="status" class="recall-status">Status</th>
15
                    [% UNLESS viewing_old %]<th class="recall-actions no-sort">&nbsp;</th>[% END %]
15
                    [% UNLESS viewing_old %]<th data-colname="due_date" class="recall-duedate">Due date</th>[% END %]
16
                    [% UNLESS viewing_old %]<th data-colname="actions" class="recall-actions no-sort no-export">&nbsp;</th>[% END %]
16
                </tr>
17
                </tr>
17
            </thead>
18
            </thead>
18
19
19
            <tbody>
20
            <tbody>
20
                [% FOREACH recall IN recalls %]
21
                [% FOREACH recall IN recalls %]
21
                    [% SET tr_class = recall.completed ? 'old' : '' %]
22
                    <tr>
22
                    <tr class="[% tr_class | html %]">
23
                        <td class="recall-completed"> [% recall.completed | html %] </td>
23
                        [% IF checkboxes %]
24
                        [% IF checkboxes %]
24
                            <td class="recall-checkbox">
25
                            <td class="recall-checkbox">
25
                                [% IF recall.completed %]
26
                                [% IF recall.completed %]
Lines 90-96 Link Here
90
                                [% IF recall.completed %]
91
                                [% IF recall.completed %]
91
                                    &nbsp;
92
                                    &nbsp;
92
                                [% ELSE %]
93
                                [% ELSE %]
93
                                    <div class="btn-group">
94
                                    <div class="btn-group dropup">
94
                                        <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Actions </button>
95
                                        <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Actions </button>
95
                                        <ul class="dropdown-menu dropdown-menu-end">
96
                                        <ul class="dropdown-menu dropdown-menu-end">
96
                                            [% IF ( recall.requested or recall.overdue ) %]
97
                                            [% IF ( recall.requested or recall.overdue ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (+1 lines)
Lines 1120-1125 Link Here
1120
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1120
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1121
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1121
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1122
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
1122
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
1123
        let table_settings_recalls = [% TablesSettings.GetTableSettings('circ', 'circulation', 'recalls-table', 'json') | $raw %];
1123
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
1124
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
1124
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
1125
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
1125
1126
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+1 lines)
Lines 811-816 Link Here
811
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
811
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
812
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
812
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
813
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
813
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
814
        let table_settings_recalls = [% TablesSettings.GetTableSettings('members', 'moremember', 'recalls-table', 'json') | $raw %];
814
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
815
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
815
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
816
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
816
817
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/recallshistory.tt (+4 lines)
Lines 3-8 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE Asset %]
5
[% USE Asset %]
6
[% USE TablesSettings %]
6
[% PROCESS 'i18n.inc' %]
7
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
Lines 51-56 Link Here
51
[% END %]
52
[% END %]
52
[% MACRO jsinclude BLOCK %]
53
[% MACRO jsinclude BLOCK %]
53
    [% INCLUDE 'datatables.inc' %]
54
    [% INCLUDE 'datatables.inc' %]
55
    <script>
56
        let table_settings_recalls = [% TablesSettings.GetTableSettings('members', 'recallshistory', 'recallshistory-table', 'json') | $raw %];
57
    </script>
54
    [% Asset.js("js/recalls.js") | $raw %]
58
    [% Asset.js("js/recalls.js") | $raw %]
55
[% END %]
59
[% END %]
56
60
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_old_queue.tt (+4 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Asset %]
4
[% USE Asset %]
5
[% USE TablesSettings %]
5
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
Lines 42-47 Link Here
42
43
43
[% MACRO jsinclude BLOCK %]
44
[% MACRO jsinclude BLOCK %]
44
    [% INCLUDE 'datatables.inc' %]
45
    [% INCLUDE 'datatables.inc' %]
46
    <script>
47
        let table_settings = [% TablesSettings.GetTableSettings('circ', 'recalls', 'recalls-old-queue', 'json') | $raw %];
48
    </script>
45
    [% Asset.js("js/recalls.js") | $raw %]
49
    [% Asset.js("js/recalls.js") | $raw %]
46
[% END %]
50
[% END %]
47
51
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_overdue.tt (-1 / +5 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Asset %]
4
[% USE Asset %]
5
[% USE TablesSettings %]
5
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
Lines 38-44 Link Here
38
                <form method="post" action="/cgi-bin/koha/recalls/recalls_overdue.pl">
39
                <form method="post" action="/cgi-bin/koha/recalls/recalls_overdue.pl">
39
                    [% INCLUDE 'csrf-token.inc' %]
40
                    [% INCLUDE 'csrf-token.inc' %]
40
                    <input type="hidden" name="op" value="cud-cancel_multiple_recalls" />
41
                    <input type="hidden" name="op" value="cud-cancel_multiple_recalls" />
41
                    <input type="checkbox" id="select_all" /> <span id="select_all_text">Select all</span>
42
                    <input type="checkbox" id="select_all" /> <label for="select_all" id="select_all_text">Select all</label>
42
                    [% INCLUDE 'recalls.inc' %]
43
                    [% INCLUDE 'recalls.inc' %]
43
                    <fieldset class="action">
44
                    <fieldset class="action">
44
                        <button type="submit" id="cancel_selected" class="btn btn-default btn-sm">Cancel selected recalls</button>
45
                        <button type="submit" id="cancel_selected" class="btn btn-default btn-sm">Cancel selected recalls</button>
Lines 56-61 Link Here
56
57
57
[% MACRO jsinclude BLOCK %]
58
[% MACRO jsinclude BLOCK %]
58
    [% INCLUDE 'datatables.inc' %]
59
    [% INCLUDE 'datatables.inc' %]
60
    <script>
61
        let table_settings = [% TablesSettings.GetTableSettings('circ', 'recalls', 'recalls-overdue', 'json') | $raw %];
62
    </script>
59
    [% Asset.js("js/recalls.js") | $raw %]
63
    [% Asset.js("js/recalls.js") | $raw %]
60
[% END %]
64
[% END %]
61
65
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_queue.tt (-1 / +5 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Asset %]
4
[% USE Asset %]
5
[% USE TablesSettings %]
5
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
Lines 38-44 Link Here
38
                <form method="post" action="/cgi-bin/koha/recalls/recalls_queue.pl">
39
                <form method="post" action="/cgi-bin/koha/recalls/recalls_queue.pl">
39
                    [% INCLUDE 'csrf-token.inc' %]
40
                    [% INCLUDE 'csrf-token.inc' %]
40
                    <input type="hidden" name="op" value="cud-cancel_multiple_recalls" />
41
                    <input type="hidden" name="op" value="cud-cancel_multiple_recalls" />
41
                    <input type="checkbox" id="select_all" /> <span id="select_all_text">Select all</span>
42
                    <input type="checkbox" id="select_all" /> <label for="select_all" id="select_all_text">Select all</label>
42
                    [% INCLUDE 'recalls.inc' %]
43
                    [% INCLUDE 'recalls.inc' %]
43
                    <fieldset class="action">
44
                    <fieldset class="action">
44
                        <button type="submit" id="cancel_selected" class="btn btn-default btn-sm">Cancel selected recalls</button>
45
                        <button type="submit" id="cancel_selected" class="btn btn-default btn-sm">Cancel selected recalls</button>
Lines 56-61 Link Here
56
57
57
[% MACRO jsinclude BLOCK %]
58
[% MACRO jsinclude BLOCK %]
58
    [% INCLUDE 'datatables.inc' %]
59
    [% INCLUDE 'datatables.inc' %]
60
    <script>
61
        let table_settings = [% TablesSettings.GetTableSettings('circ', 'recalls', 'recalls-queue', 'json') | $raw %];
62
    </script>
59
    [% Asset.js("js/recalls.js") | $raw %]
63
    [% Asset.js("js/recalls.js") | $raw %]
60
[% END %]
64
[% END %]
61
65
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt (-1 / +5 lines)
Lines 5-10 Link Here
5
[% USE Branches %]
5
[% USE Branches %]
6
[% USE ItemTypes %]
6
[% USE ItemTypes %]
7
[% USE Asset %]
7
[% USE Asset %]
8
[% USE TablesSettings %]
8
[% PROCESS 'i18n.inc' %]
9
[% PROCESS 'i18n.inc' %]
9
[% SET footerjs = 1 %]
10
[% SET footerjs = 1 %]
10
[% INCLUDE 'doc-head-open.inc' %]
11
[% INCLUDE 'doc-head-open.inc' %]
Lines 151-159 Link Here
151
    [% INCLUDE 'datatables.inc' %]
152
    [% INCLUDE 'datatables.inc' %]
152
    <script>
153
    <script>
153
        $(document).ready(function () {
154
        $(document).ready(function () {
155
            let table_settings = [% TablesSettings.GetTableSettings('circ', 'recalls', 'recalls-to-pull', 'json') | $raw %];
154
            $("#recalls-table").kohaTable({
156
            $("#recalls-table").kohaTable({
155
                pagingType: "full_numbers",
157
                pagingType: "full_numbers",
156
            });
158
            },
159
                table_settings
160
            );
157
161
158
            $(".cancelreturn").click(function () {
162
            $(".cancelreturn").click(function () {
159
                return confirmDelete(_("Are you sure you want to remove this recall and return the item to its home library?"));
163
                return confirmDelete(_("Are you sure you want to remove this recall and return the item to its home library?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt (-6 / +9 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Asset %]
4
[% USE Asset %]
5
[% USE TablesSettings %]
5
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
Lines 45-59 Link Here
45
                [% WRAPPER tab_panel tabname="recallswaiting" bt_active= 1 %]
46
                [% WRAPPER tab_panel tabname="recallswaiting" bt_active= 1 %]
46
                    [% IF ( recalls ) %]
47
                    [% IF ( recalls ) %]
47
                        <table id="recallswaiting-table">
48
                        <table id="recallswaiting-table">
48
                            <thead
49
                            <thead>
49
                                ><tr>
50
                                <tr>
50
                                    <th class="recall-waitingdate">Available since</th>
51
                                    <th class="recall-waitingdate">Available since</th>
51
                                    <th class="recall-title anti-the">Title</th>
52
                                    <th class="recall-title anti-the">Title</th>
52
                                    <th class="recall-patron">Requested by</th>
53
                                    <th class="recall-patron">Requested by</th>
53
                                    <th class="recall-library">Pickup location</th>
54
                                    <th class="recall-library">Pickup location</th>
54
                                    <th class="recall-action no-sort">&nbsp;</th>
55
                                    <th class="recall-action no-sort">&nbsp;</th>
55
                                </tr></thead
56
                                </tr>
56
                            >
57
                            </thead>
57
                            <tbody>
58
                            <tbody>
58
                                [% FOREACH recall IN recalls %]
59
                                [% FOREACH recall IN recalls %]
59
                                    <tr>
60
                                    <tr>
Lines 156-165 Link Here
156
    [% INCLUDE 'datatables.inc' %]
157
    [% INCLUDE 'datatables.inc' %]
157
    <script>
158
    <script>
158
        $(document).ready(function () {
159
        $(document).ready(function () {
160
            let table_settings = [% TablesSettings.GetTableSettings('circ', 'recalls', 'recalls-waiting', 'json') | $raw %];
159
            $("#recallswaiting-table, #recallsover-table").kohaTable({
161
            $("#recallswaiting-table, #recallsover-table").kohaTable({
160
                autoWidth: false,
162
                autoWidth: false,
161
                pagingType: "full_numbers",
163
            },
162
            });
164
                table_settings
165
            )
163
166
164
            $(".revert_recall").click(function (e) {
167
            $(".revert_recall").click(function (e) {
165
                return confirmDelete(_("Are you sure you want to revert this recall's status from Waiting?"));
168
                return confirmDelete(_("Are you sure you want to revert this recall's status from Waiting?"));
(-)a/koha-tmpl/intranet-tmpl/prog/js/recalls.js (-7 / +19 lines)
Lines 1-4 Link Here
1
/* global APIClient __ confirmDelete */
1
/* global APIClient __ confirmDelete table_settings_recalls */
2
$(document).ready(function () {
2
$(document).ready(function () {
3
    const client = APIClient.recall;
3
    const client = APIClient.recall;
4
4
Lines 133-144 $(document).ready(function () { Link Here
133
        }
133
        }
134
    });
134
    });
135
135
136
    $("#recalls-table").kohaTable({
136
    let table = $("#recalls-table").kohaTable(
137
        order: [[1, "asc"]],
137
        {
138
        pagingType: "full_numbers",
138
            bKohaColumnsUseNames: true,
139
            // order: [[1, "asc"]],
140
        },
141
        table_settings_recalls
142
    );
143
144
    let table_dt = table.DataTable();
145
    $("#hide_old").on("change", function () {
146
        let old = $(this).prop("checked");
147
        table_dt
148
            .columns(0)
149
            .search(old ? "" : 0)
150
            .draw();
139
    });
151
    });
140
152
141
    $("#cancel_selected").click(function () {
153
    $("#cancel_selected").click(function (e) {
154
        e.preventDefault();
142
        if ($("input[name='recall_ids']:checked").length > 0) {
155
        if ($("input[name='recall_ids']:checked").length > 0) {
143
            return confirmDelete(
156
            return confirmDelete(
144
                __("Are you sure you want to remove the selected recall(s)?")
157
                __("Are you sure you want to remove the selected recall(s)?")
Lines 148-154 $(document).ready(function () { Link Here
148
        }
161
        }
149
    });
162
    });
150
163
151
    $("#select_all").click(function () {
164
    $("#select_all").on("change", function () {
152
        if ($("#select_all").prop("checked")) {
165
        if ($("#select_all").prop("checked")) {
153
            $("input[name='recall_ids']").prop("checked", true);
166
            $("input[name='recall_ids']").prop("checked", true);
154
        } else {
167
        } else {
155
- 

Return to bug 40589