From 1cbe7fd930869f73a6098d9a911467e21487982a Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 3 Jun 2022 13:01:56 +0300 Subject: [PATCH] [Library | new-theme]: Create common methods to get entity name and entity file name from OpenaireEntities. 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. --- explore/src/app/openaireLibrary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explore/src/app/openaireLibrary b/explore/src/app/openaireLibrary index c69ff39d..b88c65a3 160000 --- a/explore/src/app/openaireLibrary +++ b/explore/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit c69ff39d03a2d90f4702f2807c9a861d791ec268 +Subproject commit b88c65a3430a3689770e40e1e6f34d8bb10b86c3