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 {