Skip to content
Snippets Groups Projects
Commit 64005db4 authored by juanf's avatar juanf
Browse files

SSDM-5706 : Showing information about the dataset owner when showing it on the...

SSDM-5706 : Showing information about the dataset owner when showing it on the entity search dropdown.

SVN: 38912
parent 0f546d82
No related branches found
No related tags found
No related merge requests found
......@@ -867,9 +867,15 @@ function ServerFacade(openbisServer) {
}
if(fetchOptions.withSample) {
fetchOptions.withSample();
if(advancedFetchOptions && advancedFetchOptions.withSampleProperties) {
fetchOptions.withSample().withProperties();
}
}
if(fetchOptions.withExperiment) {
fetchOptions.withExperiment();
if(advancedFetchOptions && advancedFetchOptions.withExperimentProperties) {
fetchOptions.withExperiment().withProperties();
}
}
if(fetchOptions.withTags) {
fetchOptions.withTags();
......
......@@ -131,6 +131,16 @@ function AdvancedEntitySearchDropdown( isMultiple,
} else {
text = entity.code;
}
if(entity["@type"] === "as.dto.dataset.DataSet") {
if(entity.sample) {
text += " " + ELNDictionary.Sample + " [" + getDisplayName(entity.sample) + "]";
}
if(entity.experiment) {
text += " " + ELNDictionary.getExperimentDualName() + " [" + getDisplayName(entity.experiment) + "]";
}
}
return text;
}
......@@ -172,7 +182,7 @@ function AdvancedEntitySearchDropdown( isMultiple,
}
};
mainController.serverFacade.searchForDataSetsAdvanced(criteria, null, function(results) { results.type = "DataSets"; action(results) });
mainController.serverFacade.searchForDataSetsAdvanced(criteria, { withSampleProperties : true, withExperimentProperties : true }, function(results) { results.type = "DataSets"; action(results) });
}
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment