Skip to content
Snippets Groups Projects
Commit e894d19f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

helpt tip for chemical panel

parent 013cbd26
No related branches found
No related tags found
1 merge request!32Resolve "Help tips"
......@@ -10,9 +10,15 @@ var PanelControlElementType = require('../PanelControlElementType');
function ChemicalPanel(params) {
params.panelName = "chemical";
params.helpTip = '<p>source: Comparative Toxicogenomics Database <a target="_ctd" href="http://ctdbase.org/">ctdbase.org</a></p>'
+ '<p>use only the full name of chemicals according to <a target="_ctd_chemicals" href="http://ctdbase.org/voc.go?type=chem/"> ctdbase/chem</a> for search</p>'
+ '<p>only curated associations between genes and chemicals with direct evidence to '
+ 'Parkinson Disease (<a href="http://bioportal.bioontology.org/ontologies/1351?p=terms&conceptid=D010300" target="_blank">D010300</a>) are displayed</p>'
+ '<p>separate multiple search by semicolon';
AbstractDbPanel.call(this, params);
if (params.disease===undefined) {
if (params.disease === undefined) {
this.disablePanel("DISEASE NOT DEFINED FOR PROJECT. PLEASE, DEFINE IT IN THE ADMIN SECTION.");
}
}
......@@ -29,7 +35,8 @@ ChemicalPanel.prototype.createPreamble = function(chemical) {
result.appendChild(self.createParamLine("Description: ", chemical.getDescription()));
result.appendChild(self.createArrayParamLine("Synonyms: ", chemical.getSynonyms()));
result.appendChild(self.createParamLine("Direct Evidence: ", chemical.getDirectEvidence()));
result.appendChild(self.createAnnotations("Directe Evidence Publications: ", chemical.getDirectEvidenceReferences()));
result.appendChild(self
.createAnnotations("Directe Evidence Publications: ", chemical.getDirectEvidenceReferences()));
result.appendChild(self.createAnnotations("Sources: ", chemical.getReferences()));
result.appendChild(self.createNewLine());
}
......@@ -44,13 +51,13 @@ ChemicalPanel.prototype.createTableElement = function(target, icon) {
ChemicalPanel.prototype.searchByQuery = function() {
var self = this;
var query = self.getControlElement(PanelControlElementType.SEARCH_INPUT).value;
return self.getOverlayDb().searchByQuery(query);
};
ChemicalPanel.prototype.init = function() {
var query = ServerConnector.getSessionData().getChemicalQuery();
if (query!==undefined) {
if (query !== undefined) {
return this.getOverlayDb().searchByEncodedQuery(query);
} else {
return Promise.resolve();
......
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