Skip to content

Conversation

@q4wen
Copy link
Collaborator

@q4wen q4wen commented May 15, 2018

In search info box, the text and link of HGNC are changed (ref. #756 ):

  1. Text: "HGNC Symbol"
  2. URI format: http://identifiers.org/hgnc.symbol/<HGNC approved symbol>

Before:
link-before




After:
screen shot 2018-05-15 at 3 09 31 pm

@maxkfranz
Copy link
Member

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.

q4wen added 4 commits May 17, 2018 14:24
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.
@q4wen
Copy link
Collaborator Author

q4wen commented May 18, 2018

@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});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 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 });

Copy link
Member

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'}],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in 'NGNC' --> 'HGNC'?

@d2fong d2fong merged commit 0d9df9b into PathwayCommons:development May 18, 2018
@q4wen q4wen deleted the infobox-link branch May 18, 2018 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants