Skip to content

Commit

Permalink
MIR-1250 Set q.alt parameter on /find request handler (#914)
Browse files Browse the repository at this point in the history
* MIR-1250 Set q.alt parameter on /find request handler

* MIR-1250 Removed javascript modifying empty search input element
  • Loading branch information
Possommi authored Nov 15, 2023
1 parent 4058662 commit 42c8c63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,6 @@

$('.confirm_deletion').confirm();

// modify empty search
// add * as value for an empty search to get results
$(".searchfield_box").submit(function() {
if ( $("input.search-query").val() == "" ) {
$("input.search-query").val("*");
}
});

// search person index
// makes sure the query ends with .* on submit
$("#index_search_form").submit( function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"wt": "xml",
"bq": "created:[NOW/DAY-6MONTH TO NOW/DAY]",
"condQuery": "*",
"q.alt": "*:*",
"sort": "score desc, mods.dateIssued desc"
},
"appends": {
Expand Down Expand Up @@ -195,4 +196,4 @@
}
}
}
]
]

0 comments on commit 42c8c63

Please sign in to comment.