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

(-)a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js (-5 / +8 lines)
Lines 15-20 $(document).ready(function () { Link Here
15
    // marclistanywhere
15
    // marclistanywhere
16
    $("#value_any").autocomplete({
16
    $("#value_any").autocomplete({
17
        source: function (request, response) {
17
        source: function (request, response) {
18
            const operator_value = $("#marclistanywhere").val();
18
            $.ajax({
19
            $.ajax({
19
                url: "/cgi-bin/koha/authorities/ysearch.pl",
20
                url: "/cgi-bin/koha/authorities/ysearch.pl",
20
                dataType: "json",
21
                dataType: "json",
Lines 25-31 $(document).ready(function () { Link Here
25
                    op: "do_search",
26
                    op: "do_search",
26
                    type: "intranet",
27
                    type: "intranet",
27
                    and_or: "and",
28
                    and_or: "and",
28
                    operator: "start",
29
                    operator: operator_value,
29
                    orderby: "HeadingAsc",
30
                    orderby: "HeadingAsc",
30
                    querytype: "all",
31
                    querytype: "all",
31
                },
32
                },
Lines 49-54 $(document).ready(function () { Link Here
49
    // marclistheading
50
    // marclistheading
50
    $("#value_match").autocomplete({
51
    $("#value_match").autocomplete({
51
        source: function (request, response) {
52
        source: function (request, response) {
53
            const operator_value = $("#marclistheading").val();
52
            $.ajax({
54
            $.ajax({
53
                url: "/cgi-bin/koha/authorities/ysearch.pl",
55
                url: "/cgi-bin/koha/authorities/ysearch.pl",
54
                dataType: "json",
56
                dataType: "json",
Lines 59-65 $(document).ready(function () { Link Here
59
                    op: "do_search",
61
                    op: "do_search",
60
                    type: "intranet",
62
                    type: "intranet",
61
                    and_or: "and",
63
                    and_or: "and",
62
                    operator: "start",
64
                    operator: operator_value,
63
                    orderby: "HeadingAsc",
65
                    orderby: "HeadingAsc",
64
                    querytype: "match",
66
                    querytype: "match",
65
                },
67
                },
Lines 83-88 $(document).ready(function () { Link Here
83
    // mainentry
85
    // mainentry
84
    $("#value_main").autocomplete({
86
    $("#value_main").autocomplete({
85
        source: function (request, response) {
87
        source: function (request, response) {
88
            const operator_value = $("#mainentry").val();
86
            $.ajax({
89
            $.ajax({
87
                url: "/cgi-bin/koha/authorities/ysearch.pl",
90
                url: "/cgi-bin/koha/authorities/ysearch.pl",
88
                dataType: "json",
91
                dataType: "json",
Lines 93-99 $(document).ready(function () { Link Here
93
                    op: "do_search",
96
                    op: "do_search",
94
                    type: "intranet",
97
                    type: "intranet",
95
                    and_or: "and",
98
                    and_or: "and",
96
                    operator: "start",
99
                    operator: operator_value,
97
                    orderby: "HeadingAsc",
100
                    orderby: "HeadingAsc",
98
                    querytype: "mainentry",
101
                    querytype: "mainentry",
99
                },
102
                },
Lines 117-122 $(document).ready(function () { Link Here
117
    // mainmainentry
120
    // mainmainentry
118
    $("#value_mainstr").autocomplete({
121
    $("#value_mainstr").autocomplete({
119
        source: function (request, response) {
122
        source: function (request, response) {
123
            const operator_value = $("#mainmainentry").val();
120
            $.ajax({
124
            $.ajax({
121
                url: "/cgi-bin/koha/authorities/ysearch.pl",
125
                url: "/cgi-bin/koha/authorities/ysearch.pl",
122
                dataType: "json",
126
                dataType: "json",
Lines 127-133 $(document).ready(function () { Link Here
127
                    op: "do_search",
131
                    op: "do_search",
128
                    type: "intranet",
132
                    type: "intranet",
129
                    and_or: "and",
133
                    and_or: "and",
130
                    operator: "start",
134
                    operator: operator_value,
131
                    orderby: "HeadingAsc",
135
                    orderby: "HeadingAsc",
132
                    querytype: "mainmainentry",
136
                    querytype: "mainmainentry",
133
                },
137
                },
134
- 

Return to bug 41859