From 2df5fc85709581456797e07b66ceff613c6daa09 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 11 Nov 2016 10:24:00 +0000 Subject: [PATCH] Enhance pubs/data info in claiming git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@44443 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../claim-utils/claimDataset.component.ts | 24 ++++++++----- .../claimPublication.component.html | 36 ++++++++++++------- .../claim-utils/claimPublication.component.ts | 9 +++-- 3 files changed, 45 insertions(+), 24 deletions(-) diff --git a/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts b/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts index ba23cd03..e0acad3d 100644 --- a/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts +++ b/portal-2/src/app/claimPages/claim-utils/claimDataset.component.ts @@ -36,11 +36,14 @@ import { ErrorCodes} from '../../utils/properties/openaireProperties'; --> @@ -55,12 +58,15 @@ import { ErrorCodes} from '../../utils/properties/openaireProperties';
No results found
diff --git a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html index 64fe33f4..9be05844 100644 --- a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html +++ b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.html @@ -18,11 +18,15 @@
  • - - {{item.title}} - {{item.title}} - - +
    + {{item.title}} + {{item.title}} + +
    + Publisher: {{item.publisher}}({{(item['published-print']['date-parts'][0][0])?item['published-print']['date-parts'][0][0]:item['published-print']['date-parts'][0]}}) +
    Authors: {{author.family}} {{author.given}}{{(i < (item.author.length-1))?"; ":""}}
    +
    Editors: {{author.family}} {{author.given}}{{(i < (item.editor.length-1))?"; ":""}}
    +
@@ -40,11 +44,14 @@
  • - - {{result['title'].name}} - {{result['title'].name}} - - +
    + {{result['title'].name}} + {{result['title'].name}} + +
    + Publisher: {{result.publisher}}({{result.year}}) +
    Authors: {{author.name}}{{(i < (result.authors.length-1))?"; ":""}}
    +
@@ -84,8 +91,13 @@
  • - {{item['work-title']['title'].value}} - +
    + {{item['work-title']['title'].value}} + +
    + Journal: {{item['journal-title'].value}} ({{item['publication-date'].year.value}}) +
    Authors: {{author}}{{(i < (item.contributors.length-1))?"; ":""}}
    +
No results found
diff --git a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts index 1484167f..7fffefa7 100644 --- a/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts +++ b/portal-2/src/app/claimPages/claim-utils/claimPublication.component.ts @@ -106,9 +106,9 @@ private getCrossrefResults (term: string, size : number, page : number) { this.crossrefResultsNum = data['total-results']; this.crossrefStatus = this.errorCodes.DONE; + }else{ + this.crossrefStatus = this.errorCodes.ERROR; } - this.crossrefStatus = this.errorCodes.ERROR; - }, err =>{ console.error(err.status); @@ -116,6 +116,8 @@ private getCrossrefResults (term: string, size : number, page : number) { } ); + }else{ + this.crossrefStatus = this.errorCodes.DONE; } } }, @@ -149,8 +151,9 @@ private getCrossrefResults (term: string, size : number, page : number) { this.crossrefResultsNum = data['total-results']; this.crossrefStatus = this.errorCodes.DONE; + }else{ + this.crossrefStatus = this.errorCodes.ERROR; } - this.crossrefStatus = this.errorCodes.ERROR; }, err => {