Konstantina Galouni
b88c65a343
1. string-utils.class.ts: a. Added method "public static getEntityName(entityType: string, plural: boolean = false): string" to return OpenaireEntities name by entityType. b. Added method "public static getEntityFileName(entityType: string): string" to return OpenaireEntities file name by entityType. 2. directLinking.component.ts & dataProvider.component.ts & project.component.ts & resultLanding.component.ts & myOrcidLinks.component.ts & searchResearchResults.component.ts & result-preview.component.ts & search-tab.component.ts: Call StringUtils.getEntityName and StringUtils.getEntityFileName methods instead of checking if/then/else locally. |
||
---|---|---|
.. | ||
result-preview.component.html | ||
result-preview.component.ts | ||
result-preview.module.ts | ||
result-preview.ts |