From 9277043cda679f504df2152bca793363fe555592 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 4 May 2018 10:45:40 +0000 Subject: [PATCH] Claims - search results: Fix a non-closed div that brakes the tabs git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51931 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../claim-utils/claimResultSearchForm.component.html | 11 +++++------ claims/claim-utils/claimResultSearchForm.component.ts | 7 +++---- claims/claim-utils/claimResults.component.ts | 3 ++- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/claims/claim-utils/claimResultSearchForm.component.html b/claims/claim-utils/claimResultSearchForm.component.html index 8920fe71..72baca83 100644 --- a/claims/claim-utils/claimResultSearchForm.component.html +++ b/claims/claim-utils/claimResultSearchForm.component.html @@ -94,7 +94,7 @@ - +
@@ -123,7 +123,7 @@
- +
@@ -138,10 +138,9 @@ -
- - -
+
+ +
diff --git a/claims/claim-utils/claimResultSearchForm.component.ts b/claims/claim-utils/claimResultSearchForm.component.ts index aa31051c..608568fb 100644 --- a/claims/claim-utils/claimResultSearchForm.component.ts +++ b/claims/claim-utils/claimResultSearchForm.component.ts @@ -594,18 +594,17 @@ openaireSoftwarePageChange($event) { for(var i=0; i< data.length; i++){ var item = data[i]; var result: ClaimResult = new ClaimResult(); - result.publisher = null; + result.publisher = (item.publisher && item.publisher != "")?item.publisher:null; result.journal = null; result.DOI = null; result.id = item.id; result.title = item.title.name; result.url = item.title.url; result.source = "openaire"; - result.date = item.year; + result.date = (item.year && item.year != "")?item.year:null; result.accessRights = item.title.accessMode; - console.log(item); result.type = type; - + result.embargoEndDate = (item.embargoEndDate && item.embargoEndDate != "")?item.embargoEndDate:null; result.publisher = item.publisher; result.result = item; if(item.authors){ diff --git a/claims/claim-utils/claimResults.component.ts b/claims/claim-utils/claimResults.component.ts index b121fdf7..15d5015a 100644 --- a/claims/claim-utils/claimResults.component.ts +++ b/claims/claim-utils/claimResults.component.ts @@ -22,7 +22,8 @@ declare var UIkit:any; Journal: {{result.journal}} ({{result.date}})
Authors: {{author}}{{(i < (result.authors.slice(0,10).length-1))?"; ":""}}{{(i == result.authors.slice(0,10).length-1 && result.authors.length > 10)?"...":""}}
Editors: {{author}}{{(i < (result.authors.slice(0,10).length-1))?"; ":""}}{{(i == result.authors.slice(0,10).length-1 && result.authors.length > 10)?"...":""}}
- `, + + `, }) export class ClaimResultsComponent {