Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Compare Revisions
af2a4c85bcf339986256c41090cbf4fac7c4aaa2...65f0ef804983df6409aaee4e879f673f7edb67ac
Commits (1)
441: Fix issues related to deployment of upcoming v4-release (OPENED)
· 65f0ef80
Gradl, Tobias
authored
Jul 19, 2021
Task-Url:
search#441
65f0ef80
Hide whitespace changes
Inline
Side-by-side
js/search/search.js
View file @
65f0ef80
...
...
@@ -28,6 +28,7 @@ Search.prototype.init = function() {
};
Search
.
prototype
.
bindEvents
=
function
()
{
var
_this
=
this
;
$
(
"
#btn-exec-search
"
).
click
(
function
()
{
search
.
search
(
true
);
});
$
(
"
#explain
"
).
change
(
function
()
{
search
.
search
();
});
...
...
@@ -35,7 +36,7 @@ Search.prototype.bindEvents = function() {
$
(
"
#size
"
).
bind
(
"
slider:changed
"
,
function
(
event
,
data
)
{
$
(
"
#size_shown
"
).
text
(
data
.
value
);
_this
.
queryHandler
.
doSearchDelayed
(
true
);
});
// Required for page reload in FF
...
...
js/search/search.queryHandler.js
View file @
65f0ef80
...
...
@@ -212,7 +212,7 @@ QueryHandler.prototype.doSearchDelayed = function(initSearch) {
QueryHandler
.
prototype
.
delaySearch
=
function
(
timestamp
,
initSearch
)
{
if
(
timestamp
===
this
.
lastDelayedQueryTs
)
{
this
.
lastDelayedQueryTs
=
null
;
this
.
doSearch
(
false
,
initSearch
);
this
.
doSearch
(
undefined
,
initSearch
);
}
};
...
...
js/search/search.responseHandler.js
View file @
65f0ef80
...
...
@@ -219,7 +219,7 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
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
);
this
.
showImage
(
"
#search-result-image-container-
"
+
index
,
__util
.
composeUrl
(
"
theme/img/placeholder-logo.png
"
),
undefined
,
datamodelId
,
resultId
);
}
if
(
title
==
undefined
||
title
.
length
==
0
)
{
title
=
"
<em>
"
+
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.result.no_title
"
)
+
"
</em>
"
;
...
...