diff --git a/portal-2/src/app/claims/claim-utils/claimDataset.component.ts b/portal-2/src/app/claims/claim-utils/claimDataset.component.ts index a8a1b83b..17aa2058 100644 --- a/portal-2/src/app/claims/claim-utils/claimDataset.component.ts +++ b/portal-2/src/app/claims/claim-utils/claimDataset.component.ts @@ -65,7 +65,7 @@ import{DOI} from '../../utils/string-utils.class'; - ({{result.year}}) +
diff --git a/portal-2/src/app/claims/claim-utils/claimPublication.component.ts b/portal-2/src/app/claims/claim-utils/claimPublication.component.ts index d8242f28..b01b205d 100644 --- a/portal-2/src/app/claims/claim-utils/claimPublication.component.ts +++ b/portal-2/src/app/claims/claim-utils/claimPublication.component.ts @@ -332,13 +332,13 @@ private getCrossrefResults (term: string, size : number, page : number) { var result: ClaimResult ; if(itemSource == 'crossref'){ date = (date == null) ? null : date.substring(0,10); - result = {id: id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate, date}; + result = {id: id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate, date: date}; }else if (itemSource == 'orcid'){ date = (date == null) ? null : date + "-01.-01" - result = {id:id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate, date}; + result = {id:id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate: this.nextDate, date: date}; }else if (itemSource == 'openaire'){ //TODO put right access rights - result = {id:id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: accessMode, embargoEndDate: null, date}; + result = {id:id, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: accessMode, embargoEndDate: null, date: date}; } console.info("Added result:"+result.date); diff --git a/portal-2/src/app/claims/linking/linkingGeneric.component.ts b/portal-2/src/app/claims/linking/linkingGeneric.component.ts index 2fac7d80..bb02a94d 100644 --- a/portal-2/src/app/claims/linking/linkingGeneric.component.ts +++ b/portal-2/src/app/claims/linking/linkingGeneric.component.ts @@ -1,10 +1,13 @@ import {Component, Input} from '@angular/core'; import {Observable} from 'rxjs/Observable'; -import { Router } from '@angular/router'; +import {ActivatedRoute, Router} from '@angular/router'; +import {EntitiesSearchService} from '../../utils/entitiesAutoComplete/entitySearch.service'; +import {ClaimProject, ClaimResult} from '../claim-utils/claimEntities.class'; +import {SearchPublicationsService} from '../../services/searchPublications.service'; +import {SearchDatasetsService} from '../../services/searchDatasets.service'; @Component({ selector: 'linking-generic', - //providers: [MdRadioDispatcher], template: `