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. |
||
---|---|---|
.. | ||
app | ||
assets | ||
beta | ||
environments | ||
prod | ||
sitemaps | ||
OpenSearchDescriptor.xml | ||
index.html | ||
karma.conf.js | ||
main.server.ts | ||
main.ts | ||
manifest.json | ||
material.scss | ||
polyfills.ts | ||
robots.txt | ||
styles.css | ||
test.ts | ||
tsconfig.app.json | ||
tsconfig.server.json | ||
tsconfig.spec.json |