Commit 8b22dfd8 by Kim Eunchul

#40821 【TECSS Web 1.9.2.6】「or」「(」「半角スペース」で検索した時の結果が統一されていない

parent 5aa0e913
......@@ -1081,6 +1081,9 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}else{
//myRegExpArr[0] = new RegExp(myArray[0]);
myQuery = 'true';
if(myArray[0] == "OR" || myArray[0] == "or" || myArray[0] == "Or" || myArray[0] == "oR"){
myQuery = ' || ';
}
}
for (var i = 1; i < myArray.length; i++){
if(myArray[i] == "OR" || myArray[i] == "or" || myArray[i] == "Or" || myArray[i] == "oR"){
......@@ -1141,11 +1144,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
}catch(error){
if(searchText.length === 0 || !searchText.trim()){
searchText = "invaildsearchtextzeroresultfoundEmpty";
}else{
searchText = "invaildsearchtextzeroresultfound";
}
searchText = "invaildsearchtextzeroresultfound";
}
}
if(count > 5){
......
......@@ -308,7 +308,10 @@ HEADER.searchHeaderButtonFunction = function(){
}
}else{
//myRegExpArr[0] = new RegExp(myArray[0]);
myQuery = 'true';
myQuery = 'true';
if(myArray[0] == "OR" || myArray[0] == "or" || myArray[0] == "Or" || myArray[0] == "oR"){
myQuery = ' || ';
}
}
for (var i = 1; i < myArray.length; i++){
if(myArray[i] == "OR" || myArray[i] == "or" || myArray[i] == "Or" || myArray[i] == "oR"){
......@@ -386,12 +389,7 @@ HEADER.searchHeaderButtonFunction = function(){
return;
}
if(searchText.length === 0 || !searchText.trim()){
ClientData.searchCond_searchText("invaildsearchtextzeroresultfoundEmpty");
}else{
ClientData.searchCond_searchText("invaildsearchtextzeroresultfound");
}
ClientData.searchCond_searchText("invaildsearchtextzeroresultfound");
ClientData.searchCond_searchDivision(searchDivision);
ClientData.searchCond_searchText_Dummy(searchText);
//window.location = COMMON.ScreenIds.ContentSearch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment