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

(-)a/admin/columns_settings.yml (+205 lines)
Lines 1467-1472 modules: Link Here
1467
            -
1467
            -
1468
              columnname: patron
1468
              columnname: patron
1469
1469
1470
      recalls-table:
1471
        default_display_length: 20
1472
        columns:
1473
            - columnname: completed
1474
              cannot_be_toggled: 1
1475
              cannot_be_modified: 1
1476
              is_hidden: 1
1477
            -
1478
              columnname: title
1479
            -
1480
              columnname: requested_by
1481
            -
1482
              columnname: placed_on
1483
            -
1484
              columnname: expires_on
1485
            -
1486
              columnname: pickup_location
1487
            -
1488
              columnname: status
1489
            -
1490
              columnname: due_date
1491
            -
1492
              columnname: actions
1493
              cannot_be_toggled: 1
1494
              cannot_be_modified: 1
1495
1470
    holdshistory:
1496
    holdshistory:
1471
      holdshistory-table:
1497
      holdshistory-table:
1472
        default_display_length: 20
1498
        default_display_length: 20
Lines 1529-1534 modules: Link Here
1529
            -
1555
            -
1530
              columnname: return_date
1556
              columnname: return_date
1531
1557
1558
    recallshistory:
1559
      recallshistory-table:
1560
        default_display_length: 20
1561
        columns:
1562
            - columnname: completed
1563
              cannot_be_toggled: 1
1564
              cannot_be_modified: 1
1565
              is_hidden: 1
1566
            -
1567
              columnname: title
1568
            -
1569
              columnname: requested_by
1570
            -
1571
              columnname: placed_on
1572
            -
1573
              columnname: expires_on
1574
            -
1575
              columnname: pickup_location
1576
            -
1577
              columnname: status
1578
            -
1579
              columnname: due_date
1580
            -
1581
              columnname: actions
1582
              cannot_be_toggled: 1
1583
              cannot_be_modified: 1
1584
1532
    patron-lists:
1585
    patron-lists:
1533
      patron-list-table:
1586
      patron-list-table:
1534
        default_display_length: 20
1587
        default_display_length: 20
Lines 1786-1791 modules: Link Here
1786
            -
1839
            -
1787
              columnname: patron
1840
              columnname: patron
1788
1841
1842
      recalls-table:
1843
        default_display_length: 20
1844
        columns:
1845
            - columnname: completed
1846
              cannot_be_toggled: 1
1847
              cannot_be_modified: 1
1848
              is_hidden: 1
1849
            -
1850
              columnname: title
1851
            -
1852
              columnname: requested_by
1853
            -
1854
              columnname: placed_on
1855
            -
1856
              columnname: expires_on
1857
            -
1858
              columnname: pickup_location
1859
            -
1860
              columnname: status
1861
            -
1862
              columnname: due_date
1863
            -
1864
              columnname: actions
1865
              cannot_be_toggled: 1
1866
              cannot_be_modified: 1
1867
1789
      table_borrowers:
1868
      table_borrowers:
1790
        columns:
1869
        columns:
1791
            -
1870
            -
Lines 2289-2294 modules: Link Here
2289
                    columnname: patron
2368
                    columnname: patron
2290
                -
2369
                -
2291
                    columnname: booking_dates
2370
                    columnname: booking_dates
2371
    recalls:
2372
      recalls-old-queue:
2373
        columns:
2374
            -
2375
              columnname: completed
2376
              cannot_be_toggled: 1
2377
              cannot_be_modified: 1
2378
              is_hidden: 1
2379
            -
2380
              columnname: title
2381
            -
2382
              columnname: requested_by
2383
            -
2384
              columnname: placed_on
2385
            -
2386
              columnname: expires_on
2387
            -
2388
              columnname: pickup_location
2389
            -
2390
              columnname: status
2391
2392
      recalls-overdue:
2393
        columns:
2394
            -
2395
              columnname: completed
2396
              cannot_be_toggled: 1
2397
              cannot_be_modified: 1
2398
              is_hidden: 1
2399
            -
2400
              columnname: checkbox
2401
              cannot_be_toggled: 1
2402
              cannot_be_modified: 1
2403
            -
2404
              columnname: title
2405
            -
2406
              columnname: requested_by
2407
            -
2408
              columnname: placed_on
2409
            -
2410
              columnname: expires_on
2411
            -
2412
              columnname: pickup_location
2413
            -
2414
              columnname: status
2415
            -
2416
              columnname: due_date
2417
            -
2418
              columnname: actions
2419
              cannot_be_toggled: 1
2420
              cannot_be_modified: 1
2421
2422
      recalls-queue:
2423
        columns:
2424
            -
2425
              columnname: completed
2426
              cannot_be_toggled: 1
2427
              cannot_be_modified: 1
2428
              is_hidden: 1
2429
            -
2430
              columnname: checkbox
2431
              cannot_be_toggled: 1
2432
              cannot_be_modified: 1
2433
            -
2434
              columnname: title
2435
            -
2436
              columnname: requested_by
2437
            -
2438
              columnname: placed_on
2439
            -
2440
              columnname: expires_on
2441
            -
2442
              columnname: pickup_location
2443
            -
2444
              columnname: status
2445
            -
2446
              columnname: due_date
2447
            -
2448
              columnname: actions
2449
              cannot_be_toggled: 1
2450
              cannot_be_modified: 1
2451
2452
      recalls-to-pull:
2453
        columns:
2454
            -
2455
              columnname: items_to_pull
2456
            -
2457
              columnname: items_available
2458
            -
2459
              columnname: patrons_with_recalls
2460
            -
2461
              columnname: firstpatron
2462
            -
2463
              columnname: title
2464
            -
2465
              columnname: libraries
2466
            -
2467
              columnname: callnumbers
2468
            -
2469
              columnname: copynumbers
2470
            -
2471
              columnname: enumeration
2472
            -
2473
              columnname: itemtypes
2474
            -
2475
              columnname: locations
2476
            -
2477
              columnname: earliest_recall_date
2478
            -
2479
              columnname: action
2480
              cannot_be_toggled: 1
2481
              cannot_be_modified: 1
2482
2483
      recalls-waiting:
2484
        columns:
2485
            -
2486
              columnname: available_since
2487
            -
2488
              columnname: title
2489
            -
2490
              columnname: requested_by
2491
            -
2492
              columnname: pickup_location
2493
            -
2494
              columnname: action
2495
              cannot_be_toggled: 1
2496
              cannot_be_modified: 1
2292
2497
2293
  opac:
2498
  opac:
2294
    biblio-detail:
2499
    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 1122-1127 Link Here
1122
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1122
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1123
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1123
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1124
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
1124
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
1125
        let table_settings_recalls = [% TablesSettings.GetTableSettings('circ', 'circulation', 'recalls-table', 'json') | $raw %];
1125
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
1126
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
1126
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
1127
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
1127
1128
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+1 lines)
Lines 804-809 Link Here
804
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
804
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
805
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
805
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
806
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
806
        table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %]
807
        let table_settings_recalls = [% TablesSettings.GetTableSettings('members', 'moremember', 'recalls-table', 'json') | $raw %];
807
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
808
        CAN_user_circulate_manage_bookings = [% CAN_user_circulate_manage_bookings | $raw %]
808
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
809
        patron_borrowernumber = [% patron.borrowernumber | $raw %]
809
810
(-)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 / +10 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
                columnDefs: [{ type: "title-string", targets: ["title-string"] }],
162
            });
164
            },
165
                table_settings
166
            )
163
167
164
            $(".revert_recall").click(function (e) {
168
            $(".revert_recall").click(function (e) {
165
                return confirmDelete(_("Are you sure you want to revert this recall's status from Waiting?"));
169
                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