0" class="uk-alert uk-alert-warning" role="alert">{{warningMessage}}
@@ -102,6 +102,7 @@
Metrics
+
@@ -242,6 +243,10 @@
- Share - Bookmark
-
+
diff --git a/portal-2/src/app/landingPages/publication/publication.component.ts b/portal-2/src/app/landingPages/publication/publication.component.ts
index 32083ca4..364719f5 100644
--- a/portal-2/src/app/landingPages/publication/publication.component.ts
+++ b/portal-2/src/app/landingPages/publication/publication.component.ts
@@ -58,6 +58,8 @@ export class PublicationComponent {
public bioentitiesNum: number = 0;
+ private doi: string;
+
public result ;
/* @ViewChild (InlineClaimProjectComponent) inlineClaimProject : InlineClaimProjectComponent ;
@@ -79,16 +81,20 @@ export class PublicationComponent {
// this.result = []
// this.result = {id: id, type :"dataset", source : "openaire", title: this.publicationInfo.title,url: '', result: '', accessRights: this.publicationInfo.bestlicense, embargoEndDate: ''};
- let bioentitiesNum = 0;
- if(this.publicationInfo.bioentities != undefined) {
- this.publicationInfo.bioentities.forEach(function (value, key, map) {
- bioentitiesNum += value.size;
- });
- }
- this.bioentitiesNum = bioentitiesNum;
+ let bioentitiesNum = 0;
+ if(this.publicationInfo.bioentities != undefined) {
+ this.publicationInfo.bioentities.forEach(function (value, key, map) {
+ bioentitiesNum += value.size;
+ });
+ }
+ this.bioentitiesNum = bioentitiesNum;
- this.result = {id: this.articleId, type :"publication", source : "openaire", title: this.publicationInfo.title,url: '', result: '', accessRights: this.publicationInfo.bestlicense, embargoEndDate: ''};
- // this.result.push(result_);
+ this.result = {id: this.articleId, type :"publication", source : "openaire", title: this.publicationInfo.title,url: '', result: '', accessRights: this.publicationInfo.bestlicense, embargoEndDate: ''};
+ // this.result.push(result_);
+
+ if(this.publicationInfo.identifiers != undefined && this.publicationInfo.identifiers.has('doi')) {
+ this.doi = this.publicationInfo.identifiers.get('doi')[0];
+ }
},
err => {
console.log(err);
diff --git a/portal-2/src/app/services/dataProvider.service.ts b/portal-2/src/app/services/dataProvider.service.ts
index 4c5366de..b31c8052 100644
--- a/portal-2/src/app/services/dataProvider.service.ts
+++ b/portal-2/src/app/services/dataProvider.service.ts
@@ -72,9 +72,7 @@ export class DataProviderService {
if(this.dataProviderInfo.tabsInTypes.datasetsTab.has(data[1].classid)) {
this.dataProviderInfo.tabs.push({"name": "Datasets", "content": "datasetsTab"});
}
- if(this.dataProviderInfo.tabsInTypes.statisticsTab.has(data[1].classid)) {
- this.dataProviderInfo.tabs.push({"name": "Statistics", "content": "statisticsTab"});
- }
+
if(this.dataProviderInfo.tabsInTypes.projectsTab.has(data[1].classid)) {
this.dataProviderInfo.tabs.push({"name": "Projects", "content": "projectsTab"});
}
@@ -87,6 +85,10 @@ export class DataProviderService {
this.dataProviderInfo.tabs.push({"name": "Related Data Providers", "content": "relatedDatasourcesTab"});
}
+ if(this.dataProviderInfo.tabsInTypes.statisticsTab.has(data[1].classid)) {
+ this.dataProviderInfo.tabs.push({"name": "Statistics", "content": "statisticsTab"});
+ }
+
this.dataProviderInfo.tabs.push({"name": "Metrics", "content": "metricsTab"});
if(this.dataProviderInfo.resultTypes.collectedFrom.has(data[1].classid)) {
diff --git a/portal-2/src/app/services/dataset.service.ts b/portal-2/src/app/services/dataset.service.ts
index 9425b32a..b49c4101 100644
--- a/portal-2/src/app/services/dataset.service.ts
+++ b/portal-2/src/app/services/dataset.service.ts
@@ -42,9 +42,8 @@ export class DatasetService {
this._cache.set(key, res);
})
.map(res => this.parseDatasetInfo(res));
+ }
-
-}
private handleError (error: Response) {
// in a real world app, we may send the error to some remote logging infrastructure
// instead of just logging it to the console
diff --git a/portal-2/src/index.html b/portal-2/src/index.html
index dc0303a6..5de35d81 100644
--- a/portal-2/src/index.html
+++ b/portal-2/src/index.html
@@ -66,6 +66,9 @@
}
}
+
+
+