Skip to content

Commit

Permalink
Merge pull request #422 from AjitPS/knetminer-3.1
Browse files Browse the repository at this point in the history
fixes for knetmaps item-info
  • Loading branch information
AjitPS authored Sep 12, 2019
2 parents 9ca9f35 + 5b0487d commit 0bc30a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var url_mappings= {
{"cv": "CHEMBL", "weblink": "https://www.ebi.ac.uk/chembldb/compound/inspect/", "cc_restriction": ""},
{"cv": "CHEMBLASSAY", "weblink": "https://www.ebi.ac.uk/chembldb/assay/inspect/", "cc_restriction": ""},
{"cv": "CHEMBLTARGET", "weblink": "https://www.ebi.ac.uk/chembldb/target/inspect/", "cc_restriction": ""},
{"cv": "CIRAD", "weblink": "http://sugarcane-genome.cirad.fr/feature/", "cc_restriction": ""},
{"cv": "CO", "weblink": "http://www.cropontology.org/terms/CO_321:", "cc_restriction": ""},
{"cv": "DOI", "weblink": "http://dx.doi.org/", "cc_restriction": ""},
{"cv": "DrugBank", "weblink": "https://www.drugbank.ca/drugs/", "cc_restriction": ""},
Expand All @@ -24,7 +25,7 @@ var url_mappings= {
{"cv": "GENOSCOPE", "weblink": "http://www.genoscope.cns.fr/brassicanapus/cgi-bin/gbrowse/colza/?name=", "cc_restriction": ""},
{"cv": "GO", "weblink": "http://www.ebi.ac.uk/QuickGO/term/", "cc_restriction": ""},
{"cv": "INTACT", "weblink": "http://www.ebi.ac.uk/intact/pages/interactions/interactions.xhtml?query=", "cc_restriction": ""},
{"cv": "IPRO", "weblink": "http://www.ebi.ac.uk/interpro/IEntry?ac=", "cc_restriction": ""},
{"cv": "IPRO", "weblink": "http://www.ebi.ac.uk/interpro/entry/", "cc_restriction": ""},
{"cv": "KEGG", "weblink": "http://www.genome.jp/dbget-bin/www_bget?cpd:", "cc_restriction": "Comp"},
{"cv": "MC", "weblink": "http://metacyc.org/META/substring-search?type=NIL&object=", "cc_restriction": ""},
{"cv": "NC_GE", "weblink": "http://www.ncbi.nlm.nih.gov/sites/entrez?db=gene&term=", "cc_restriction": ""},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ KNETMAPS.ItemInfo = function() {
if(url_mappings.html_acc[u].cv === accessionID) {
coAccUrl= url_mappings.html_acc[u].weblink + co_acc; // co-accession url.
if(accessionID === "CO") { coAccUrl= coAccUrl +"/"; }
coAccUrl= coAccUrl.replace('TO:','').replace('PO:',''); // remove TO: or PO:, if exists
coAccUrl= coAccUrl.replace(/\s/g,''); // remove spaces, if any
// open attribute url in new blank tab.
co_acc= "<a href=\""+ coAccUrl +"\" onclick=\"window.open(this.href,'_blank');return false;\">"+ co_acc +"</a>";
Expand Down

0 comments on commit 0bc30a3

Please sign in to comment.