Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
1361870c
Commit
1361870c
authored
Sep 04, 2019
by
Gradl, Tobias
Browse files
1325: Return results from metasearch with regular queries
Task-Url:
https://pm.winseda.de/issues/1325
parent
95e0d475
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.responseHandler.js
View file @
1361870c
...
...
@@ -48,14 +48,17 @@ ResponseHandler.prototype.process = function(resultArray, isShowMore) {
for
(
var
i
=
0
;
i
<
resultArray
.
length
;
i
++
)
{
var
data
=
resultArray
[
i
];
this
.
processExecutedQueries
(
data
.
executedQueries
);
this
.
processResources
(
isShowMore
,
data
.
resultElements
,
data
.
startIndex
,
data
.
totalHits
,
data
.
took
,
data
.
hasMore
);
this
.
processResponseDatasources
(
data
.
resultDatasources
);
this
.
processFilters
(
data
.
availableFilters
);
if
(
data
.
resultType
==
"
REGULAR
"
)
{
//_this.processResponseTerms();
//_this.processResponseSubjects();
//
this
.
processExecutedQueries
(
data
.
executedQueries
);
this
.
processResources
(
isShowMore
,
data
.
resultElements
,
data
.
startIndex
,
data
.
totalHits
,
data
.
took
,
data
.
hasMore
);
this
.
processResponseDatasources
(
data
.
resultDatasources
);
this
.
processFilters
(
data
.
availableFilters
);
//_this.processResponseTerms();
//_this.processResponseSubjects();
//
}
}
};
...
...
@@ -321,7 +324,7 @@ ResponseHandler.prototype.showImage = function(containerSelector, tmbsrc, src) {
ResponseHandler
.
prototype
.
renderHighlightTexts
=
function
(
resultElement
)
{
var
strHighlight
;
// Search highlights (content matches)
if
(
resultElement
.
fieldHighlights
!==
undefined
&&
resultElement
.
fieldHighlights
.
length
>
0
)
{
if
(
resultElement
.
fieldHighlights
!==
null
&&
resultElement
.
fieldHighlights
!==
undefined
&&
resultElement
.
fieldHighlights
.
length
>
0
)
{
var
highlights
=
[];
for
(
var
i
=
0
;
i
<
resultElement
.
fieldHighlights
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
resultElement
.
fieldHighlights
[
i
].
highlightTexts
.
length
;
j
++
)
{
...
...
Write
Preview
Supports
Markdown
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