Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
17d2fbd6
Commit
17d2fbd6
authored
Dec 09, 2020
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#40708 【TECSS(Biz) webviewer/Win 1.9】【仕様確認】同じ検索キーワードで動作が異なるものがある
parent
780f6fd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
22 deletions
+16
-22
abvw/js/contentsearch.js
+5
-11
abvw/js/header.js
+11
-11
No files found.
abvw/js/contentsearch.js
View file @
17d2fbd6
...
...
@@ -1060,7 +1060,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
}
while
(
match
!=
null
);
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
myArray
.
length
;
i
++
){
if
(
myArray
[
i
]
!=
"OR"
&&
myArray
[
i
]
!=
"or"
&&
myArray
[
i
]
!=
"Or"
&&
myArray
[
i
]
!=
"oR"
&&
myArray
[
i
]
!=
"("
&&
myArray
[
i
]
!=
")"
){
count
++
;
}
...
...
@@ -1078,12 +1078,10 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
else
{
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
].
slice
(
1
));
myQuery
=
'( true'
;
count
++
;
}
}
else
{
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
]);
myQuery
=
'true'
;
count
++
;
}
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
...
...
@@ -1100,11 +1098,9 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
||
myArray
[
i
-
1
]
==
"Or"
||
myArray
[
i
-
1
]
==
"oR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( true'
;
count
++
;
}
else
{
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' && ( true'
;
count
++
;
}
}
}
else
if
(
myArray
[
i
].
charAt
(
myArray
[
i
].
length
-
1
)
==
")"
||
myArray
[
i
]
==
")"
){
...
...
@@ -1114,32 +1110,26 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
||
myArray
[
i
-
1
]
==
"Or"
||
myArray
[
i
-
1
]
==
"oR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || true )'
;
count
++
;
}
else
{
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' && true )'
;
count
++
;
}
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
||
myArray
[
i
-
1
]
==
"Or"
||
myArray
[
i
-
1
]
==
"oR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || true'
;
count
++
;
}
else
{
if
(
myArray
[
i
-
1
]
==
"("
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' true'
;
count
++
;
}
else
{
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' && true'
;
count
++
;
}
}
}
}
console
.
log
(
"1"
+
myQuery
);
if
(
eval
(
myQuery
))
{
//is not correct query
}
...
...
@@ -1148,6 +1138,10 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
searchText
=
"invaildsearchtextzeroresultfound"
;
}
}
if
(
count
>
5
){
alert
(
'語句数は最大5つです'
);
return
;
}
if
(
CONTENTSEARCH
.
overClick
()){
return
;
...
...
abvw/js/header.js
View file @
17d2fbd6
...
...
@@ -288,7 +288,7 @@ HEADER.searchHeaderButtonFunction = function(){
}
}
while
(
match
!=
null
);
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
myArray
.
length
;
i
++
){
if
(
myArray
[
i
]
!=
"OR"
&&
myArray
[
i
]
!=
"or"
&&
myArray
[
i
]
!=
"Or"
&&
myArray
[
i
]
!=
"oR"
&&
myArray
[
i
]
!=
"("
&&
myArray
[
i
]
!=
")"
){
count
++
;
}
...
...
@@ -306,12 +306,10 @@ HEADER.searchHeaderButtonFunction = function(){
}
else
{
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
].
slice
(
1
));
myQuery
=
'( true'
;
count
++
;
}
}
else
{
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
]);
myQuery
=
'true'
;
count
++
;
}
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
...
...
@@ -328,11 +326,9 @@ HEADER.searchHeaderButtonFunction = function(){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
||
myArray
[
i
-
1
]
==
"Or"
||
myArray
[
i
-
1
]
==
"oR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( true'
;
count
++
;
}
else
{
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' && ( true'
;
count
++
;
}
}
}
else
if
(
myArray
[
i
].
charAt
(
myArray
[
i
].
length
-
1
)
==
")"
||
myArray
[
i
]
==
")"
){
...
...
@@ -342,31 +338,27 @@ HEADER.searchHeaderButtonFunction = function(){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
||
myArray
[
i
-
1
]
==
"Or"
||
myArray
[
i
-
1
]
==
"oR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || true )'
;
count
++
;
}
else
{
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' && true )'
;
count
++
;
}
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
||
myArray
[
i
-
1
]
==
"Or"
||
myArray
[
i
-
1
]
==
"oR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || true'
;
count
++
;
}
else
{
if
(
myArray
[
i
-
1
]
==
"("
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' true'
;
count
++
;
}
else
{
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' && true'
;
count
++
;
}
}
}
}
if
(
eval
(
myQuery
))
{
//is not correct query
}
...
...
@@ -384,7 +376,10 @@ HEADER.searchHeaderButtonFunction = function(){
{
searchDivision
=
$
(
'#searchbox-body'
).
val
();
}
if
(
count
>
5
){
alert
(
'語句数は最大5つです'
);
return
;
}
ClientData
.
searchCond_searchText
(
"invaildsearchtextzeroresultfound"
);
ClientData
.
searchCond_searchDivision
(
searchDivision
);
//window.location = COMMON.ScreenIds.ContentSearch;
...
...
@@ -393,6 +388,11 @@ HEADER.searchHeaderButtonFunction = function(){
}
}
if
(
count
>
5
){
alert
(
'語句数は最大5つです'
);
return
;
}
if
(
HEADER
.
overClick
()){
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment