Skip to content

Commit

Permalink
Allow gene/products to have a summary; display named complex using pr…
Browse files Browse the repository at this point in the history
…otein template
  • Loading branch information
jvwong committed Jun 19, 2023
1 parent b6fbb8a commit e7a3694
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/client/components/element-info/entity-assoc-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const { IDENTIFIERS_ORG_ID_BASE_URL } = require('../../../config');

let protein = (m, searchTerms, includeOrganism = true) => {
return [
m.summary ?
h('div.entity-info-section', [
h('span.entity-info-title', 'Summary'),
h('span', m.summary)
]): null,
includeOrganism ? h('div.entity-info-section', [
h('span.entity-info-title', 'Organism'),
h('span', m.organismName)
Expand Down Expand Up @@ -36,6 +41,7 @@ let protein = (m, searchTerms, includeOrganism = true) => {
let ggp = protein;
let dna = protein;
let rna = protein;
let namedComplex = protein;

let chemical = (m, searchTerms) => {
return [
Expand Down Expand Up @@ -96,6 +102,6 @@ let modification = (mod, onEdit) => h('div.entity-info-section.entity-info-mod-s
])
]);

export const assocDisp = { ggp, dna, rna, protein, modification, chemical, complex, link };
export const assocDisp = { ggp, dna, rna, protein, modification, chemical, complex, link, namedComplex };

export default assocDisp;

0 comments on commit e7a3694

Please sign in to comment.