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

(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-20 / +7 lines)
Lines 730-742 async function load_patron_holds_table(biblio_id, split_data) { Link Here
730
                url: url,
730
                url: url,
731
                data: function (params) {
731
                data: function (params) {
732
                    pageStart = params.start;
732
                    pageStart = params.start;
733
                    var query = {
734
                        _per_page: params.length,
735
                        _page: params.start / params.length + 1,
736
                        _order_by: "priority",
737
                        _match: "exact",
738
                    };
739
                    return query;
740
                },
733
                },
741
            },
734
            },
742
            embed: ["patron", "item", "item_group"],
735
            embed: ["patron", "item", "item_group"],
Lines 767-773 async function load_patron_holds_table(biblio_id, split_data) { Link Here
767
                },
760
                },
768
                {
761
                {
769
                    data: "priority",
762
                    data: "priority",
770
                    orderable: false,
763
                    orderable: true,
771
                    searchable: false,
764
                    searchable: false,
772
                    render: function (data, type, row, meta) {
765
                    render: function (data, type, row, meta) {
773
                        let select =
766
                        let select =
Lines 895-901 async function load_patron_holds_table(biblio_id, split_data) { Link Here
895
                },
888
                },
896
                {
889
                {
897
                    data: "patron.cardnumber",
890
                    data: "patron.cardnumber",
898
                    orderable: false,
891
                    orderable: true,
899
                    searchable: true,
892
                    searchable: true,
900
                    render: function (data, type, row, meta) {
893
                    render: function (data, type, row, meta) {
901
                        if (data == null) {
894
                        if (data == null) {
Lines 926-932 async function load_patron_holds_table(biblio_id, split_data) { Link Here
926
                },
919
                },
927
                {
920
                {
928
                    data: "hold_date",
921
                    data: "hold_date",
929
                    orderable: false,
922
                    orderable: true,
930
                    searchable: false,
923
                    searchable: false,
931
                    render: function (data, type, row, meta) {
924
                    render: function (data, type, row, meta) {
932
                        if (AllowHoldDateInFuture) {
925
                        if (AllowHoldDateInFuture) {
Lines 946-952 async function load_patron_holds_table(biblio_id, split_data) { Link Here
946
                },
939
                },
947
                {
940
                {
948
                    data: "expiration_date",
941
                    data: "expiration_date",
949
                    orderable: false,
942
                    orderable: true,
950
                    searchable: false,
943
                    searchable: false,
951
                    render: function (data, type, row, meta) {
944
                    render: function (data, type, row, meta) {
952
                        return (
945
                        return (
Lines 962-968 async function load_patron_holds_table(biblio_id, split_data) { Link Here
962
                },
955
                },
963
                {
956
                {
964
                    data: "pickup_library_id",
957
                    data: "pickup_library_id",
965
                    orderable: false,
958
                    orderable: true,
966
                    searchable: false,
959
                    searchable: false,
967
                    render: function (data, type, row, meta) {
960
                    render: function (data, type, row, meta) {
968
                        var branchSelect =
961
                        var branchSelect =
Lines 1140-1146 async function load_patron_holds_table(biblio_id, split_data) { Link Here
1140
                                if (row.suspended) {
1133
                                if (row.suspended) {
1141
                                    td +=
1134
                                    td +=
1142
                                        '<i class="fa fa-play" aria-hidden="true"></i> ' +
1135
                                        '<i class="fa fa-play" aria-hidden="true"></i> ' +
1143
                                        __("Resume") +
1136
                                        __("Unsuspend") +
1144
                                        "</button>";
1137
                                        "</button>";
1145
                                } else {
1138
                                } else {
1146
                                    td +=
1139
                                    td +=
Lines 1207-1218 async function load_patron_holds_table(biblio_id, split_data) { Link Here
1207
        hold_table_settings
1200
        hold_table_settings
1208
    );
1201
    );
1209
    $(table_id).on("draw.dt", function () {
1202
    $(table_id).on("draw.dt", function () {
1210
        // Remove the search box. Don't know why it isn't working in the table settings
1211
        $(this).parent().find(".pager .table_controls .dt-search").remove();
1212
        $(this)
1213
            .parent()
1214
            .find(".pager .table_controls .dt-buttons .dt_button_clear_filter")
1215
            .remove();
1216
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
1203
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
1217
        $(".cancel_selected_holds").html(
1204
        $(".cancel_selected_holds").html(
1218
            MSG_CANCEL_SELECTED.format(
1205
            MSG_CANCEL_SELECTED.format(
Lines 1380-1385 async function load_patron_holds_table(biblio_id, split_data) { Link Here
1380
                        data: JSON.stringify(req),
1367
                        data: JSON.stringify(req),
1381
                        success: function (data) {
1368
                        success: function (data) {
1382
                            holdsQueueTable.api().ajax.reload(null, false);
1369
                            holdsQueueTable.api().ajax.reload(null, false);
1370
                            $(instance.input).attr("data-current-date", dateStr);
1383
                        },
1371
                        },
1384
                        error: function (jqXHR, textStatus, errorThrown) {
1372
                        error: function (jqXHR, textStatus, errorThrown) {
1385
                            holdsQueueTable.api().ajax.reload(null, false);
1373
                            holdsQueueTable.api().ajax.reload(null, false);
1386
- 

Return to bug 23269