From a4a54ccdb8d3510980b4a331e03ec4318e2812bd Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 15 Jul 2016 13:17:14 +0000 Subject: [PATCH] Updating landing page of publication : parse context field (shown as related to) | linkify authors | linkify identifiers | change downloadFrom type | show additional classifications in subjects | add badges in tabs | view all in References tab git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@43244 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/entities/publicationInfo.ts | 3 +- .../publication/publication.component.ts | 261 +++++++++++++++--- src/app/services/publication.service.ts | 116 +++++--- 3 files changed, 304 insertions(+), 76 deletions(-) diff --git a/src/app/entities/publicationInfo.ts b/src/app/entities/publicationInfo.ts index a1cfd63e..0ecc6ec8 100644 --- a/src/app/entities/publicationInfo.ts +++ b/src/app/entities/publicationInfo.ts @@ -1,6 +1,6 @@ export class PublicationInfo { title: string; - authors: string[]; + authors: { [key: string]: string }[]; date: string; types: string[]; downloadFrom: Map; @@ -18,4 +18,5 @@ export class PublicationInfo { relatedResearchData: Map;//{ [key: string]: string }[]; similarPublications: Map;//{ [key: string]: string }[]; references: { [key: string]: string }[]; + contexts: { [key: string]: string }[]; } diff --git a/src/app/landingPages/publication/publication.component.ts b/src/app/landingPages/publication/publication.component.ts index c02ea0be..17a3e69e 100644 --- a/src/app/landingPages/publication/publication.component.ts +++ b/src/app/landingPages/publication/publication.component.ts @@ -6,9 +6,10 @@ import {PublicationInfo} from '../../entities/publicationInfo'; import { RouteParams} from '@angular/router-deprecated'; import { InlineClaimContextComponent} from '../../claimPages/inlineClaimContext/inlineClaimContext.component'; import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/inlineClaimProject.component'; +//import {NgSwitch, ngSwitchCase, NgSwitchDefault} from '@angular/common'; + @Component({ selector: 'publication', - //directives: [...ROUTER_DIRECTIVES], template: `
@@ -23,9 +24,36 @@ import { InlineClaimProjectComponent} from '../../claimPages/inlineClaimProject/