-
Couldn't load subscription status.
- Fork 17
Infobox text and URI change #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Great! I think it makes sense for the text in the UI to just say "HGNC". Users don't really care how the link is made. |
Name of database NGNC changes from "NGNC Symbol" to "NGNC"
Originally, the text is the same as searching name . For example, if searching "HGNC Symbol", the displayed text will show "HGNC Symbol". Adding displayName can customize the displayed text.
|
@d2fong The text and link are updated. Could you review? |
| usedDatabases.forEach((usedDatabase)=>{ | ||
| let dbLink = dbs[usedDatabase.configName]; | ||
| if (dbLink != null) { | ||
| links.push({"link":dbLink,"displayName":usedDatabase.displayName}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This is a minor nitpick but to keep the coding style consistent: for object keys you generally don't need to use strings you can just do something like this.
links.push({ link: dbLink, displayName: usedDatabase.displayName });There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only place where quotation marks are mandatory on keys is in JSON files.
| ['GeneID',{configName:'NCBI Gene',gProfiler:'NCBIGene'}], | ||
| ['Uniprot',{configName:'Uniprot',gProfiler:'Uniprot'}] | ||
| ['GeneCards',{configName:'Gene Cards',gProfiler:'HGNCSYMBOL',displayName:'Gene Cards'}], | ||
| ['HGNC Symbol',{configName:'HGNC Symbol',gProfiler:'HGNCSymbol',displayName:'NGNC'}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in 'NGNC' --> 'HGNC'?
In search info box, the text and link of HGNC are changed (ref. #756 ):
http://identifiers.org/hgnc.symbol/<HGNC approved symbol>Before:


After: