Skip to content

Commit

Permalink
Merge 39662be into 8854eb5
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Oct 15, 2020
2 parents 8854eb5 + 39662be commit 48ffb22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/js/widgets/classic_form/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ define([
.value();
if (trues.length > 1) {
if (fullSet && keys.length === trues.length) {
return '(' + keys.join(' AND ') + ')';
return '(' + trues.join(' AND ') + ')';
}
return '(' + keys.join(' OR ') + ')';
return '(' + trues.join(' OR ') + ')';
}
return trues[0];
},
Expand Down
6 changes: 3 additions & 3 deletions test/mocha/js/widgets/classic_search_widget.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ define([
$Q.abs().val('a b c d +e -f =g +"h" -"i"');
$Q.bibstem().val('a b c d +e -f =g +"h" -"i"');
triggerChanges();

setTimeout(function() {

expect(w.model.get('query')).to.eql({
"q": [
"pubdate:[2010-10 TO 9999-12]",
Expand Down Expand Up @@ -169,10 +169,10 @@ define([
],
"__fq_database": [
"AND",
"(astronomy OR physics OR general)"
"(astronomy OR physics)"
],
"fq_database": [
"database: (astronomy OR physics OR general)"
"database: (astronomy OR physics)"
],
"__fq_property": [
"AND",
Expand Down

0 comments on commit 48ffb22

Please sign in to comment.