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
4b14145e
Commit
4b14145e
authored
May 12, 2021
by
Gradl, Tobias
Browse files
425: Fix minor search handling issues (OPENED)
Task-Url:
search#425
parent
4af9947b
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.responseHandler.js
View file @
4b14145e
...
...
@@ -220,6 +220,9 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
}
// Being loaded in-queue
this
.
handleImages
(
resultElement
,
index
,
datamodelId
,
resultId
);
}
else
{
// Show placeholder right away
this
.
showImage
(
"
#search-result-image-container-
"
+
index
,
__util
.
composeUrl
(
"
theme/img/placeholder-logo.png
"
),
undefined
);
}
if
(
title
==
undefined
||
title
.
length
==
0
)
{
title
=
"
<em>
"
+
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.result.no_title
"
)
+
"
</em>
"
;
...
...
@@ -258,7 +261,7 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
}
};
ResponseHandler
.
prototype
.
handleImages
=
function
(
resultElement
,
index
,
datasetId
,
resultId
)
{
ResponseHandler
.
prototype
.
handleImages
=
function
(
resultElement
,
index
,
datasetId
,
resultId
)
{
var
images
=
{
datamodelId
:
datasetId
,
resultId
:
resultId
,
...
...
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