From db5c95fe248c0e4fe059602185ee8a6161d9949f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 5 Jul 2022 17:48:28 +0300 Subject: [PATCH] Fix my claims and admin claims pages with new UI. --- .../displayClaims.component.html | 5 ++- .../claimEntityFormatter.component.ts | 14 ++++---- .../projectTitleFormatter.component.ts | 28 ++++++++-------- .../publicationTitleFormatter.component.ts | 16 ++++------ claims/claimsAdmin/claimsAdmin.component.ts | 6 ++-- claims/myClaims/myClaims.component.ts | 32 ++++++++----------- 6 files changed, 47 insertions(+), 54 deletions(-) diff --git a/claims/claim-utils/displayClaims/displayClaims.component.html b/claims/claim-utils/displayClaims/displayClaims.component.html index dcb6460b..990101a4 100644 --- a/claims/claim-utils/displayClaims/displayClaims.component.html +++ b/claims/claim-utils/displayClaims/displayClaims.component.html @@ -81,13 +81,12 @@ -
+
-
- +
diff --git a/claims/claim-utils/entityFormatter/claimEntityFormatter.component.ts b/claims/claim-utils/entityFormatter/claimEntityFormatter.component.ts index d48853f4..647b2e4f 100644 --- a/claims/claim-utils/entityFormatter/claimEntityFormatter.component.ts +++ b/claims/claim-utils/entityFormatter/claimEntityFormatter.component.ts @@ -15,21 +15,21 @@ import {StringUtils} from "../../../utils/string-utils.class";
{{getEntityName(type)}}
-
- Link to: +
+ Link to:
- Link to: + class="uk-flex"> + Link to:
-
- Link to: - {{entity.title}} +
+ Link to: + {{entity.title}}
` }) diff --git a/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts b/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts index be9d9370..92557d9a 100644 --- a/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts +++ b/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts @@ -7,24 +7,26 @@ import {properties} from "../../../../../environments/environment"; @Component({ selector: 'project-title', template: ` - - {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} - - - {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} - - - - Funder: {{project['funderName']}} + +
+

+ + {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} + + + {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} + +

+
+
+ + Funder: {{project['funderName']}} ` }) export class ProjectTitleFormatter { - @Input() project: string[]; + @Input() project: any; @Input() searchLink: string; @Input() externalPortalUrl: string = null; public url: string; diff --git a/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts b/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts index b51d7761..796c7ef1 100644 --- a/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts +++ b/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts @@ -6,17 +6,15 @@ import {RouterHelper} from '../../../utils/routerHelper.class'; @Component({ selector: 'publication-title', template: ` - -
- {{entity.title?entity.title:"[No title available]"}} + +
+

+ {{entity.title?entity.title:"[No title available]"}} + {{entity.title?entity.title:"[No title available]"}} +

- -
- {{entity.title?entity.title:"[No title available]"}} -
-
` }) diff --git a/claims/claimsAdmin/claimsAdmin.component.ts b/claims/claimsAdmin/claimsAdmin.component.ts index 20f8fc6a..6654ff02 100644 --- a/claims/claimsAdmin/claimsAdmin.component.ts +++ b/claims/claimsAdmin/claimsAdmin.component.ts @@ -10,13 +10,13 @@ import {Subscriber} from "rxjs"; @Component({ selector: 'claims-admin', template: ` -
+
-
+

Manage links -

+
-
-
- -
-
- My links -
- -
- Manage your links in OpenAIRE -
-
- - -
-
+
+
+

+ My links +

+
+ Manage your links in OpenAIRE +
+
+ +