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
e7bc3354
Commit
e7bc3354
authored
Jun 20, 2019
by
Gradl, Tobias
Browse files
1295: Prepare release of v3.7
Task-Url:
https://pm.winseda.de/issues/1295
parent
f6ccc6e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.responseHandler.js
View file @
e7bc3354
...
@@ -158,14 +158,14 @@ ResponseHandler.prototype.processResources = function(isShowMore, resultElements
...
@@ -158,14 +158,14 @@ ResponseHandler.prototype.processResources = function(isShowMore, resultElements
this
.
processImages
();
this
.
processImages
();
if
(
hasMore
)
{
/*
if (hasMore) {
this.elements.resourcesContainer.append(
this.elements.resourcesContainer.append(
"<div class='search-results-resources-show-more'>" +
"<div class='search-results-resources-show-more'>" +
"<button onclick='queryHandler.doSearch(true);' class='btn btn-default btn-lg'>" +
"<button onclick='queryHandler.doSearch(true);' class='btn btn-default btn-lg'>" +
__translator.translate("~eu.dariah.de.minfba.search.view.result.show_more") +
__translator.translate("~eu.dariah.de.minfba.search.view.result.show_more") +
"</button>" +
"</button>" +
"</div>");
"</div>");
}
}
*/
};
};
...
@@ -221,7 +221,7 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
...
@@ -221,7 +221,7 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
if
(
highlights
!=
undefined
&&
highlights
.
length
>
0
)
{
if
(
highlights
!=
undefined
&&
highlights
.
length
>
0
)
{
itemContainer
.
append
(
"
<div class='search-result-highlights'><h4>
"
+
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.result.resources.hits_in_document
"
)
+
"
</h4>
"
+
highlights
+
"
</div>
"
);
itemContainer
.
append
(
"
<div class='search-result-highlights'><h4>
"
+
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.result.resources.hits_in_document
"
)
+
"
</h4>
"
+
highlights
+
"
</div>
"
);
}
}
if
(
search
.
isExplain
())
{
if
(
search
.
isExplain
())
{
itemContainer
.
append
(
this
.
renderExplanation
(
resultItem
));
itemContainer
.
append
(
this
.
renderExplanation
(
resultItem
));
}
}
...
...
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