Skip to content
GitLab
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
27d742bc
Commit
27d742bc
authored
May 14, 2019
by
Gradl, Tobias
Browse files
1294: Render es mappings based on resources only
Task-Url:
https://pm.winseda.de/issues/1294
parent
48ffc9c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/item/item.js
View file @
27d742bc
...
...
@@ -20,6 +20,9 @@ var ResultItem = function(options) {
this
.
loadedData
=
[];
$
(
'
.venobox
'
).
venobox
();
__translator
.
addTranslations
([
"
~eu.dariah.de.minfba.search.view.item.no_dataset
"
]);
__translator
.
getTranslations
();
};
ResultItem
.
prototype
.
resize
=
function
()
{
...
...
@@ -83,7 +86,11 @@ ResultItem.prototype.loadData = function(dataType, containerSelector, contentSel
dataType
:
"
html
"
,
success
:
function
(
data
,
textStatus
,
jqXHR
)
{
$
(
containerSelector
).
addClass
(
"
show
"
);
$
(
contentSelector
).
html
(
data
);
if
(
data
==
null
||
data
.
length
==
0
)
{
$
(
contentSelector
).
html
(
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.item.no_dataset
"
));
}
else
{
$
(
contentSelector
).
html
(
data
);
}
_this
.
loadedData
.
push
(
dataType
);
$
(
indicator
).
addClass
(
"
fa-chevron-circle-up
"
).
removeClass
(
"
fa-spinner fa-spin
"
);
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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