Skip to content

Commit

Permalink
revert commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Collins authored and Chris Collins committed Jun 27, 2022
1 parent 5136c46 commit 553916f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10,074 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,31 +118,12 @@ export class GlossaryTermEntity implements Entity<GlossaryTerm> {
};

getOverridePropertiesFromEntity = (glossaryTerm?: GlossaryTerm | null): GenericEntityProperties => {
// let institutionalMemory = glossaryTerm?.institutionalMemory;
// if (glossaryTerm?.properties?.sourceUrl) {
// const sourceInfo = {
// url: glossaryTerm.properties.sourceUrl,
// label: 'Definition',
// } as InstitutionalMemoryMetadata;

// if (glossaryTerm.institutionalMemory) {
// const elements = glossaryTerm.institutionalMemory.elements || [];
// const updatedElements = [...elements, sourceInfo];
// institutionalMemory = { ...glossaryTerm.institutionalMemory, elements: updatedElements };
// } else {
// institutionalMemory = { elements: [sourceInfo], __typename: 'InstitutionalMemory' };
// }
// }

// if dataset has subTypes filled out, pick the most specific subtype and return it
return {
customProperties: glossaryTerm?.properties?.customProperties,
// institutionalMemory,
};
};

// if

renderSearch = (result: SearchResult) => {
return this.renderPreview(PreviewType.SEARCH, result.entity as GlossaryTerm);
};
Expand Down
Loading

0 comments on commit 553916f

Please sign in to comment.