-
(Context)
-
{{entity.title}}
+
+ (Community)
+ {{entity.title}}
`
})
diff --git a/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts b/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts
index a6c56ba6..b1b95aa1 100644
--- a/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts
+++ b/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts
@@ -7,9 +7,9 @@ import {RouterHelper} from '../../../utils/routerHelper.class';
@Component({
selector: 'project-title',
template: `
-
+
+ {{project['name']}} ({{project['funderName']}})
+
`
})
diff --git a/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts b/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
index 253e359b..321e440d 100644
--- a/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
+++ b/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
@@ -5,10 +5,10 @@ import {Component, Input} from '@angular/core';
@Component({
selector: 'publication-title',
template: `
-
+
+ {{title}}
+ {{title}}
+
`
})
diff --git a/portal-2/src/app/landingPages/dataset/dataset.service.ts b/portal-2/src/app/landingPages/dataset/dataset.service.ts
index 0f075b9d..bb475e1f 100644
--- a/portal-2/src/app/landingPages/dataset/dataset.service.ts
+++ b/portal-2/src/app/landingPages/dataset/dataset.service.ts
@@ -56,7 +56,8 @@ export class DatasetService {
this.datasetInfo = new DatasetInfo();
if(data[0] != null) {
- this.datasetInfo.date = data[0].dateofacceptance.substring(0,4);
+ var date:string = (data[0].dateofacceptance)+""; // transform to string in case it is an integer
+ this.datasetInfo.date = (date && (date).indexOf('-') !== -1)?date.split('-')[0]:date;
this.datasetInfo.dateofacceptance = data[0].dateofacceptance;
this.datasetInfo.publisher = data[0].publisher;
if(!Array.isArray(data[0].description)) {
diff --git a/portal-2/src/app/landingPages/publication/publication.service.ts b/portal-2/src/app/landingPages/publication/publication.service.ts
index 14a17a55..2b9043fd 100644
--- a/portal-2/src/app/landingPages/publication/publication.service.ts
+++ b/portal-2/src/app/landingPages/publication/publication.service.ts
@@ -55,7 +55,8 @@ export class PublicationService {
this.publicationInfo = new PublicationInfo();
if(data[0] != null) {
- this.publicationInfo.date = data[0].dateofacceptance.substring(0,4);
+ var date:string = (data[0].dateofacceptance)+""; // transform to string in case it is an integer
+ this.publicationInfo.date = (date && (date).indexOf('-') !== -1)?date.split('-')[0]:date;
this.publicationInfo.dateofacceptance = data[0].dateofacceptance;
this.publicationInfo.publisher = data[0].publisher;
if(!Array.isArray(data[0].description)) {
diff --git a/portal-2/src/app/searchPages/searchUtils/searchForm.component.ts b/portal-2/src/app/searchPages/searchUtils/searchForm.component.ts
index 4d73cae9..88dbbdce 100644
--- a/portal-2/src/app/searchPages/searchUtils/searchForm.component.ts
+++ b/portal-2/src/app/searchPages/searchUtils/searchForm.component.ts
@@ -6,7 +6,7 @@ import {Observable} from 'rxjs/Observable';
template: `
`
})
diff --git a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts
index 0682fb9b..953e1104 100644
--- a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts
+++ b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts
@@ -11,6 +11,7 @@ import { Meta} from '../../../angular2-meta';
import{SearchFilterComponent} from './searchFilter.component';
import {SearchFilterModalComponent} from './searchFilterModal.component';
import {OpenaireProperties} from '../../utils/properties/openaireProperties';
+import { ErrorCodes} from '../../utils/properties/openaireProperties';
@Component({
@@ -35,6 +36,7 @@ import {OpenaireProperties} from '../../utils/properties/openaireProperties';
+
@@ -42,6 +44,9 @@ import {OpenaireProperties} from '../../utils/properties/openaireProperties';
Clear All