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

(-)a/admin/columns_settings.yml (+205 lines)
Lines 1470-1475 modules: Link Here
1470
            -
1470
            -
1471
              columnname: patron
1471
              columnname: patron
1472
1472
1473
      recalls-table:
1474
        default_display_length: 20
1475
        columns:
1476
            - columnname: completed
1477
              cannot_be_toggled: 1
1478
              cannot_be_modified: 1
1479
              is_hidden: 1
1480
            -
1481
              columnname: title
1482
            -
1483
              columnname: requested_by
1484
            -
1485
              columnname: placed_on
1486
            -
1487
              columnname: expires_on
1488
            -
1489
              columnname: pickup_location
1490
            -
1491
              columnname: status
1492
            -
1493
              columnname: due_date
1494
            -
1495
              columnname: actions
1496
              cannot_be_toggled: 1
1497
              cannot_be_modified: 1
1498
1473
    holdshistory:
1499
    holdshistory:
1474
      holdshistory-table:
1500
      holdshistory-table:
1475
        default_display_length: 20
1501
        default_display_length: 20
Lines 1532-1537 modules: Link Here
1532
            -
1558
            -
1533
              columnname: return_date
1559
              columnname: return_date
1534
1560
1561
    recallshistory:
1562
      recallshistory-table:
1563
        default_display_length: 20
1564
        columns:
1565
            - columnname: completed
1566
              cannot_be_toggled: 1
1567
              cannot_be_modified: 1
1568
              is_hidden: 1
1569
            -
1570
              columnname: title
1571
            -
1572
              columnname: requested_by
1573
            -
1574
              columnname: placed_on
1575
            -
1576
              columnname: expires_on
1577
            -
1578
              columnname: pickup_location
1579
            -
1580
              columnname: status
1581
            -
1582
              columnname: due_date
1583
            -
1584
              columnname: actions
1585
              cannot_be_toggled: 1
1586
              cannot_be_modified: 1
1587
1535
    patron-lists:
1588
    patron-lists:
1536
      patron-list-table:
1589
      patron-list-table:
1537
        default_display_length: 20
1590
        default_display_length: 20
Lines 1789-1794 modules: Link Here
1789
            -
1842
            -
1790
              columnname: patron
1843
              columnname: patron
1791
1844
1845
      recalls-table:
1846
        default_display_length: 20
1847
        columns:
1848
            - columnname: completed
1849
              cannot_be_toggled: 1
1850
              cannot_be_modified: 1
1851
              is_hidden: 1
1852
            -
1853
              columnname: title
1854
            -
1855
              columnname: requested_by
1856
            -
1857
              columnname: placed_on
1858
            -
1859
              columnname: expires_on
1860
            -
1861
              columnname: pickup_location
1862
            -
1863
              columnname: status
1864
            -
1865
              columnname: due_date
1866
            -
1867
              columnname: actions
1868
              cannot_be_toggled: 1
1869
              cannot_be_modified: 1
1870
1792
      table_borrowers:
1871
      table_borrowers:
1793
        columns:
1872
        columns:
1794
            -
1873
            -
Lines 2316-2321 modules: Link Here
2316
                    columnname: patron
2395
                    columnname: patron
2317
                -
2396
                -
2318
                    columnname: booking_dates
2397
                    columnname: booking_dates
2398
    recalls:
2399
      recalls-old-queue:
2400
        columns:
2401
            -
2402
              columnname: completed
2403
              cannot_be_toggled: 1
2404
              cannot_be_modified: 1
2405
              is_hidden: 1
2406
            -
2407
              columnname: title
2408
            -
2409
              columnname: requested_by
2410
            -
2411
              columnname: placed_on
2412
            -
2413
              columnname: expires_on
2414
            -
2415
              columnname: pickup_location
2416
            -
2417
              columnname: status
2418
2419
      recalls-overdue:
2420
        columns:
2421
            -
2422
              columnname: completed
2423
              cannot_be_toggled: 1
2424
              cannot_be_modified: 1
2425
              is_hidden: 1
2426
            -
2427
              columnname: checkbox
2428
              cannot_be_toggled: 1
2429
              cannot_be_modified: 1
2430
            -
2431
              columnname: title
2432
            -
2433
              columnname: requested_by
2434
            -
2435
              columnname: placed_on
2436
            -
2437
              columnname: expires_on
2438
            -
2439
              columnname: pickup_location
2440
            -
2441
              columnname: status
2442
            -
2443
              columnname: due_date
2444
            -
2445
              columnname: actions
2446
              cannot_be_toggled: 1
2447
              cannot_be_modified: 1
2448
2449
      recalls-queue:
2450
        columns:
2451
            -
2452
              columnname: completed
2453
              cannot_be_toggled: 1
2454
              cannot_be_modified: 1
2455
              is_hidden: 1
2456
            -
2457
              columnname: checkbox
2458
              cannot_be_toggled: 1
2459
              cannot_be_modified: 1
2460
            -
2461
              columnname: title
2462
            -
2463
              columnname: requested_by
2464
            -
2465
              columnname: placed_on
2466
            -
2467
              columnname: expires_on
2468
            -
2469
              columnname: pickup_location
2470
            -
2471
              columnname: status
2472
            -
2473
              columnname: due_date
2474
            -
2475
              columnname: actions
2476
              cannot_be_toggled: 1
2477
              cannot_be_modified: 1
2478
2479
      recalls-to-pull:
2480
        columns:
2481
            -
2482
              columnname: items_to_pull
2483
            -
2484
              columnname: items_available
2485
            -
2486
              columnname: patrons_with_recalls
2487
            -
2488
              columnname: firstpatron
2489
            -
2490
              columnname: title
2491
            -
2492
              columnname: libraries
2493
            -
2494
              columnname: callnumbers
2495
            -
2496
              columnname: copynumbers
2497
            -
2498
              columnname: enumeration
2499
            -
2500
              columnname: itemtypes
2501
            -
2502
              columnname: locations
2503
            -
2504
              columnname: earliest_recall_date
2505
            -
2506
              columnname: action
2507
              cannot_be_toggled: 1
2508
              cannot_be_modified: 1
2509
2510
      recalls-waiting:
2511
        columns:
2512
            -
2513
              columnname: available_since
2514
            -
2515
              columnname: title
2516
            -
2517
              columnname: requested_by
2518
            -
2519
              columnname: pickup_location
2520
            -
2521
              columnname: action
2522
              cannot_be_toggled: 1
2523
              cannot_be_modified: 1
2319
2524
2320
  opac:
2525
  opac:
2321
    biblio-detail:
2526
    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 1125-1130 Link Here
1125
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1125
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1126
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1126
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1127
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
1127
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
1128
        let table_settings_recalls = [% TablesSettings.GetTableSettings('circ', 'circulation', 'recalls-table', 'json') | $raw %];
1128
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
1129
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
1129
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
1130
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
1130
1131
(-)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