1. dataProvider.component & statisticsTab.component: Use statisticsTab in dataprovider component for landing page.
2. dataProvider.component: variable 'statsClicked' set to false when statistics tab closes (avoid requests). 3. #3690: datasetInfo.ts, dataset.component, dataset.service: Parse 'subtitle' field and display it in dataset landing page. 4. #3484: publicationInfo.ts, publication.component, publication.service: Parse 'essn' and 'iss' fields of 'journal' and change the way journal information is displayed in publication landing page. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@53512 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
4f8a366174
commit
a381a25305
|
@ -193,7 +193,7 @@
|
||||||
<div class="uk-accordion-content">
|
<div class="uk-accordion-content">
|
||||||
<div *ngIf="activeTab=='Statistics' && statsClicked">
|
<div *ngIf="activeTab=='Statistics' && statsClicked">
|
||||||
|
|
||||||
<errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status]" [type]="'statistics'" tab_error_class=true></errorMessages>
|
<!-- <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status]" [type]="'statistics'" tab_error_class=true></errorMessages>
|
||||||
|
|
||||||
<div *ngIf="(fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE)">
|
<div *ngIf="(fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE)">
|
||||||
<p class="uk-text-bold">Latest Research Result Timeline</p>
|
<p class="uk-text-bold">Latest Research Result Timeline</p>
|
||||||
|
@ -218,8 +218,9 @@
|
||||||
<p class="uk-text-bold">Projects with most Research Data</p>
|
<p class="uk-text-bold">Projects with most Research Data</p>
|
||||||
<i-frame [url]=dataProjectsUrl width="100%" height="350"></i-frame>
|
<i-frame [url]=dataProjectsUrl width="100%" height="350"></i-frame>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
<statisticsTab [fetchPublications]="fetchPublications" [fetchDatasets]="fetchDatasets" [datasourceId]="datasourceId"></statisticsTab>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
|
@ -324,7 +324,7 @@ export class DataProviderComponent {
|
||||||
} else if(content=='metricsTab') {
|
} else if(content=='metricsTab') {
|
||||||
this.metricsClicked = true;
|
this.metricsClicked = true;
|
||||||
} else if(content=='statisticsTab') {
|
} else if(content=='statisticsTab') {
|
||||||
this.statsClicked = true;
|
this.statsClicked = !this.statsClicked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,66 +1,66 @@
|
||||||
import {Component, Input} from '@angular/core';
|
import {Component, Input} from '@angular/core';
|
||||||
import { SearchDatasetsComponent } from '../../searchPages/simple/searchDatasets.component';
|
import {ActivatedRoute} from '@angular/router';
|
||||||
import { SearchPublicationsComponent } from '../../searchPages/simple/searchPublications.component';
|
import {FetchPublications} from '../../utils/fetchEntitiesClasses/fetchPublications.class';
|
||||||
import { ErrorCodes} from '../../utils/properties/errorCodes';
|
import {FetchDatasets} from '../../utils/fetchEntitiesClasses/fetchDatasets.class';
|
||||||
|
import {ErrorCodes} from '../../utils/properties/errorCodes';
|
||||||
|
import {EnvProperties} from '../../utils/properties/env-properties';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'statisticsTab',
|
selector: 'statisticsTab',
|
||||||
template: `
|
template: `
|
||||||
<div *ngIf="show">
|
<errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status]" [type]="'statistics'" tab_error_class=true></errorMessages>
|
||||||
<errorMessages [status]="[searchPublicationsComponent.searchUtils.status, DatasetsComponent.searchUtils.status]" [type]="'statistics'" tab_error_class=true></errorMessages>
|
|
||||||
|
|
||||||
<div *ngIf="searchPublicationsComponent.searchUtils.status == errorCodes.DONE || searchDatasetsComponent.searchUtils.status == errorCodes.DONE">
|
<div *ngIf="(fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE)">
|
||||||
<p class="uk-text-bold">Latest Documents Timeline</p>
|
<p class="uk-text-bold">Latest Research Result Timeline</p>
|
||||||
<i-frame [url]=docsTimelineUrl width="100%" height="350"></i-frame>
|
<i-frame [url]=docsTimelineUrl width="100%" height="350"></i-frame>
|
||||||
<p class="uk-text-bold">Documents Types</p>
|
<p class="uk-text-bold">Research Result Types</p>
|
||||||
<i-frame [url]=docsTypesUrl width="100%" height="350"></i-frame>
|
<i-frame [url]=docsTypesUrl width="100%" height="350"></i-frame>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="fetchPublications.searchUtils.totalResults > 0 || (fetchDatasets.searchUtils.totalResults > 0)">
|
||||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults > 0)">
|
<p class="uk-text-bold">Funders in Research Results of content provider</p>
|
||||||
<div>
|
<i-frame [url]=docsFunderUrl width="100%" height="350"></i-frame>
|
||||||
<p class="uk-text-bold">Funders in content providers Publications</p>
|
|
||||||
<i-frame [url]=docsFunderUrl width="100%" height="350"></i-frame>
|
|
||||||
<p class="uk-text-bold">Projects with most Publications</p>
|
|
||||||
<i-frame [url]=pubsProjectsUrl width="100%" height="350"></i-frame>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="(searchDatasetsComponent.searchUtils.totalResults > 0)">
|
|
||||||
<div>
|
|
||||||
<p class="uk-text-bold">Projects with most Research Data</p>
|
|
||||||
<i-frame [url]=dataProjectsUrl width="100%" height="350"></i-frame>
|
|
||||||
|
|
||||||
</div>
|
<div *ngIf="fetchPublications.searchUtils.totalResults > 0 ">
|
||||||
|
<p class="uk-text-bold">Projects with most Publications</p>
|
||||||
|
<i-frame [url]=pubsProjectsUrl width="100%" height="350"></i-frame>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="(fetchDatasets.searchUtils.totalResults > 0)">
|
||||||
|
<div>
|
||||||
|
<p class="uk-text-bold">Projects with most Research Data</p>
|
||||||
|
<i-frame [url]=dataProjectsUrl width="100%" height="350"></i-frame>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
||||||
export class StatisticsTabComponent {
|
export class StatisticsTabComponent {
|
||||||
|
@Input() datasourceId;
|
||||||
|
@Input() fetchPublications : FetchPublications;
|
||||||
|
@Input() fetchDatasets : FetchDatasets;
|
||||||
|
|
||||||
@Input() statistics;
|
private docsTimelineUrl: string;
|
||||||
@Input() id;
|
private docsTypesUrl:string;
|
||||||
@Input() searchDatasetsComponent : SearchDatasetsComponent;
|
private docsFunderUrl:string;
|
||||||
@Input() searchPublicationsComponent : SearchPublicationsComponent;
|
private dataProjectsUrl:string ;
|
||||||
@Input() show : boolean = false;
|
private pubsProjectsUrl:string;
|
||||||
|
public errorCodes:ErrorCodes = new ErrorCodes();
|
||||||
|
|
||||||
private docsTimelineUrl: string;
|
constructor (private route: ActivatedRoute) {}
|
||||||
private docsTypesUrl:string;
|
|
||||||
private docsFunderUrl:string;
|
|
||||||
private dataProjectsUrl:string ;
|
|
||||||
private pubsProjectsUrl:string;
|
|
||||||
public errorCodes:ErrorCodes = new ErrorCodes();
|
|
||||||
|
|
||||||
constructor () {}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.route.data
|
||||||
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
||||||
|
var properties = data.envSpecific;
|
||||||
|
|
||||||
this.docsTimelineUrl ='https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcYear","dtsrcName":"'+this.id+'","table": "result", "fields": [{"fld": "number", "agg": "count", "type": "line", "yaxis":1, "c":true}], "xaxis":{"name": "year", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Documents"], "in": [{"f":0, "text": "Yearly"}], "filters": [{"name":"year","max":"2016","min":"1997"},{"name": "result_datasources-datasource-name", "values":[""], "to": "-1"}],"having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": "Year"}&w=100%&h=250';
|
this.docsTimelineUrl =properties.statisticsFrameAPIURL+'chart.php?com=query&persistent=false&data={"query":"dtsrcYear","dtsrcName":"'+this.datasourceId+'","table": "result", "fields": [{"fld": "number", "agg": "count", "type": "line", "yaxis":1, "c":true}], "xaxis":{"name": "year", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": -30, "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Research Results"], "in": [{"f":0, "text": "Yearly"}], "filters": [{"name":"year","max":"2016","min":"1997"},{"name": "result_datasources-datasource-name", "values":[""], "to": "-1"}],"having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": "Year"}&w=100%&h=250';
|
||||||
this.docsTypesUrl = 'https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcPubs","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Documents"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
this.docsTypesUrl = properties.statisticsFrameAPIURL+'chart.php?com=query&persistent=false&data={"query":"dtsrcPubs","dtsrcName":"'+this.datasourceId+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Research Results"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
||||||
this.docsFunderUrl =' https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcPubsFund","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Documents"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
this.docsFunderUrl =properties.statisticsFrameAPIURL+'chart.php?com=query&persistent=false&data={"query":"dtsrcPubsFund","dtsrcName":"'+this.datasourceId+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Research Results"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
||||||
this.dataProjectsUrl ='https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcProjData","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "bar", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Datasets"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
this.dataProjectsUrl =properties.statisticsFrameAPIURL+'chart.php?com=query&persistent=false&data={"query":"dtsrcProjData","dtsrcName":"'+this.datasourceId+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "bar", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Research Data"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
||||||
this.pubsProjectsUrl ='https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcProjPubs","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "bar", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Publications"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
this.pubsProjectsUrl =properties.statisticsFrameAPIURL+'chart.php?com=query&persistent=false&data={"query":"dtsrcProjPubs","dtsrcName":"'+this.datasourceId+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "bar", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Publications"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=100%&h=250';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {}
|
ngOnDestroy() {}
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<div class="uk-width-expand@m uk-width-1-1@s">
|
<div class="uk-width-expand@m uk-width-1-1@s">
|
||||||
<schema2jsonld *ngIf="datasetInfo.record" [data]=datasetInfo.record [URL]="properties.baseLink+'/search/dataset?datasetId='+datasetId"></schema2jsonld>
|
<schema2jsonld *ngIf="datasetInfo.record" [data]=datasetInfo.record [URL]="properties.baseLink+'/search/dataset?datasetId='+datasetId"></schema2jsonld>
|
||||||
<showTitle [titleName]="datasetInfo.title"></showTitle>
|
<showTitle [titleName]="datasetInfo.title"></showTitle>
|
||||||
|
<p class="uk-text-large" *ngIf="datasetInfo.subtitle">
|
||||||
|
<span [innerHTML]="datasetInfo.subtitle"></span>
|
||||||
|
</p>
|
||||||
<span *ngIf="datasetInfo.types && datasetInfo.types.length > 0"class="uk-label custom-label label-dataset " title="Type">{{datasetInfo.types.join(", ")}}</span>
|
<span *ngIf="datasetInfo.types && datasetInfo.types.length > 0"class="uk-label custom-label label-dataset " title="Type">{{datasetInfo.types.join(", ")}}</span>
|
||||||
<span *ngIf="datasetInfo.languages && datasetInfo.languages.length > 0" class="uk-label custom-label label-language " title="Language">{{datasetInfo.languages.join(", ")}}</span>
|
<span *ngIf="datasetInfo.languages && datasetInfo.languages.length > 0" class="uk-label custom-label label-language " title="Language">{{datasetInfo.languages.join(", ")}}</span>
|
||||||
<span *ngIf="datasetInfo.countries && datasetInfo.countries.length > 0" class="uk-label custom-label label-country " title="Country">{{datasetInfo.countries.join(", ")}}</span>
|
<span *ngIf="datasetInfo.countries && datasetInfo.countries.length > 0" class="uk-label custom-label label-country " title="Country">{{datasetInfo.countries.join(", ")}}</span>
|
||||||
|
|
|
@ -87,6 +87,9 @@ export class DatasetService {
|
||||||
if(data[1] != null) {
|
if(data[1] != null) {
|
||||||
if(Array.isArray(data[1])) {
|
if(Array.isArray(data[1])) {
|
||||||
this.datasetInfo.title = data[1][0].content;
|
this.datasetInfo.title = data[1][0].content;
|
||||||
|
if(data[1][1].classid == "subtitle") {
|
||||||
|
this.datasetInfo.subtitle = data[1][1].content;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.datasetInfo.title = data[1].content;
|
this.datasetInfo.title = data[1].content;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,35 +35,44 @@
|
||||||
<li *ngIf="publicationInfo.publisher"><span class="uk-text-bold">Publisher:</span> {{publicationInfo.publisher}}</li>
|
<li *ngIf="publicationInfo.publisher"><span class="uk-text-bold">Publisher:</span> {{publicationInfo.publisher}}</li>
|
||||||
<li *ngIf="publicationInfo.journal &&
|
<li *ngIf="publicationInfo.journal &&
|
||||||
(publicationInfo.journal['journal'] || publicationInfo.journal['issn'] || publicationInfo.journal['lissn']
|
(publicationInfo.journal['journal'] || publicationInfo.journal['issn'] || publicationInfo.journal['lissn']
|
||||||
|| publicationInfo.journal['volume'] || publicationInfo.journal['start_page'] || publicationInfo.journal['end_page'])">
|
|| publicationInfo.journal['volume'] || publicationInfo.journal['eissn'] || publicationInfo.journal['issue'])">
|
||||||
<span class="uk-text-bold">Journal:</span>
|
<span class="uk-text-bold">Journal:</span>
|
||||||
<span *ngIf="publicationInfo.journal['journal']">{{publicationInfo.journal['journal']}}</span>
|
<span *ngIf="publicationInfo.journal['journal']">{{publicationInfo.journal['journal']}}</span
|
||||||
<span *ngIf="publicationInfo.journal['issn'] || publicationInfo.journal['lissn'] || publicationInfo.journal['volume']
|
><span *ngIf="publicationInfo.journal['journal'] && (publicationInfo.journal['volume'] || publicationInfo.journal['issue'])">,</span>
|
||||||
|| publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">(</span
|
<span *ngIf="publicationInfo.journal['volume']"
|
||||||
><span *ngIf="publicationInfo.journal['issn']">issn: {{publicationInfo.journal['issn']}}<span *ngIf="publicationInfo.journal['lissn'] || publicationInfo.journal['volume'] || publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">, </span
|
>volume
|
||||||
></span
|
|
||||||
><span *ngIf="publicationInfo.journal['lissn']">lissn: {{publicationInfo.journal['lissn']}}<span *ngIf="publicationInfo.journal['volume'] || publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">, </span
|
|
||||||
></span
|
|
||||||
><span *ngIf="publicationInfo.journal['volume']"
|
|
||||||
>vol:
|
|
||||||
<span *ngIf="publicationInfo.journal['volume'] > 0">{{publicationInfo.journal['volume'] | number}}</span
|
<span *ngIf="publicationInfo.journal['volume'] > 0">{{publicationInfo.journal['volume'] | number}}</span
|
||||||
><span *ngIf="!(publicationInfo.journal['volume'] > 0)">{{publicationInfo.journal['volume']}}</span
|
><span *ngIf="!(publicationInfo.journal['volume'] > 0)">{{publicationInfo.journal['volume']}}</span
|
||||||
><span *ngIf="publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">, </span
|
><span *ngIf="publicationInfo.journal['issue'] || publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">,</span>
|
||||||
|
</span>
|
||||||
|
<span *ngIf="publicationInfo.journal['issue']"
|
||||||
|
>issue
|
||||||
|
<span *ngIf="publicationInfo.journal['issue'] > 0">{{publicationInfo.journal['issue'] | number}}</span
|
||||||
|
><span *ngIf="!(publicationInfo.journal['issue'] > 0)">{{publicationInfo.journal['issue']}}</span
|
||||||
|
><span *ngIf="publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">,</span>
|
||||||
|
</span>
|
||||||
|
<span *ngIf="(publicationInfo.journal['volume'] || publicationInfo.journal['issue']) &&
|
||||||
|
(publicationInfo.journal['start_page'] && publicationInfo.journal['end_page'])">pages</span>
|
||||||
|
<span *ngIf="(publicationInfo.journal['volume'] || publicationInfo.journal['issue']) &&
|
||||||
|
((publicationInfo.journal['start_page'] && !publicationInfo.journal['end_page']) ||
|
||||||
|
(!publicationInfo.journal['start_page'] && publicationInfo.journal['end_page']))">page</span>
|
||||||
|
<span *ngIf="publicationInfo.journal['start_page']"
|
||||||
|
><span *ngIf="publicationInfo.journal['start_page'] > 0">{{publicationInfo.journal['start_page'] | number}}</span
|
||||||
|
><span *ngIf="!(publicationInfo.journal['start_page'] > 0)">{{publicationInfo.journal['start_page']}}</span
|
||||||
></span
|
></span
|
||||||
><span *ngIf="publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']"
|
><span *ngIf="publicationInfo.journal['start_page'] && publicationInfo.journal['end_page']">-</span
|
||||||
>pp:
|
><span *ngIf="publicationInfo.journal['end_page']"
|
||||||
<span *ngIf="publicationInfo.journal['start_page']"
|
><span *ngIf="publicationInfo.journal['end_page'] > 0">{{publicationInfo.journal['end_page'] | number}}</span
|
||||||
><span *ngIf="publicationInfo.journal['start_page'] > 0">{{publicationInfo.journal['start_page'] | number}}</span
|
><span *ngIf="!(publicationInfo.journal['end_page'] > 0)">{{publicationInfo.journal['end_page']}}</span
|
||||||
><span *ngIf="!(publicationInfo.journal['start_page'] > 0)">{{publicationInfo.journal['start_page']}}</span
|
></span>
|
||||||
></span
|
<span *ngIf="publicationInfo.journal['issn'] || publicationInfo.journal['eissn'] || publicationInfo.journal['lissn']">(</span
|
||||||
><span *ngIf="publicationInfo.journal['start_page'] && publicationInfo.journal['end_page']">-</span
|
><span *ngIf="publicationInfo.journal['issn']">issn: {{publicationInfo.journal['issn']}}<span *ngIf="publicationInfo.journal['eissn'] || publicationInfo.journal['lissn']">, </span
|
||||||
><span *ngIf="publicationInfo.journal['end_page']"
|
|
||||||
><span *ngIf="publicationInfo.journal['end_page'] > 0">{{publicationInfo.journal['end_page'] | number}}</span
|
|
||||||
><span *ngIf="!(publicationInfo.journal['end_page'] > 0)">{{publicationInfo.journal['end_page']}}</span
|
|
||||||
></span
|
|
||||||
></span
|
></span
|
||||||
><span *ngIf="publicationInfo.journal['issn'] || publicationInfo.journal['lissn'] || publicationInfo.journal['volume']
|
><span *ngIf="publicationInfo.journal['eissn']">eissn: {{publicationInfo.journal['eissn']}}<span *ngIf="publicationInfo.journal['lissn']">, </span
|
||||||
|| publicationInfo.journal['start_page'] || publicationInfo.journal['end_page']">)</span>
|
></span
|
||||||
|
><span *ngIf="publicationInfo.journal['lissn']">lissn: {{publicationInfo.journal['lissn']}}
|
||||||
|
></span
|
||||||
|
><span *ngIf="publicationInfo.journal['issn'] || publicationInfo.journal['eissn'] || publicationInfo.journal['lissn']">)</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li *ngIf="publicationInfo.embargoEndDate"><span class="uk-text-bold">Embargo end date:</span> {{publicationInfo.embargoEndDate}}</li>
|
<li *ngIf="publicationInfo.embargoEndDate"><span class="uk-text-bold">Embargo end date:</span> {{publicationInfo.embargoEndDate}}</li>
|
||||||
|
@ -415,7 +424,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -177,11 +177,13 @@ export class PublicationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data[5] != null) {
|
if(data[5] != null) {
|
||||||
this.publicationInfo.journal = {"journal": "", "issn": "", "lissn": "", "volume": "", "start_page": "", "end_page": ""}
|
this.publicationInfo.journal = {"journal": "", "issn": "", "lissn": "", "eissn": "", "issue": "", "volume": "", "start_page": "", "end_page": ""}
|
||||||
|
|
||||||
this.publicationInfo.journal['journal'] = data[5].content;
|
this.publicationInfo.journal['journal'] = data[5].content;
|
||||||
this.publicationInfo.journal['issn'] = data[5].issn;
|
this.publicationInfo.journal['issn'] = data[5].issn;
|
||||||
this.publicationInfo.journal['lissn'] = data[5].lissn;
|
this.publicationInfo.journal['lissn'] = data[5].lissn;
|
||||||
|
this.publicationInfo.journal['eissn'] = data[5].eissn;
|
||||||
|
this.publicationInfo.journal['issue'] = data[5].iss;
|
||||||
this.publicationInfo.journal['volume'] = data[5].vol;
|
this.publicationInfo.journal['volume'] = data[5].vol;
|
||||||
this.publicationInfo.journal['start_page'] = data[5].sp;
|
this.publicationInfo.journal['start_page'] = data[5].sp;
|
||||||
this.publicationInfo.journal['end_page'] = data[5].ep;
|
this.publicationInfo.journal['end_page'] = data[5].ep;
|
||||||
|
|
|
@ -2,6 +2,7 @@ export class DatasetInfo {
|
||||||
underCurationMessage: boolean;
|
underCurationMessage: boolean;
|
||||||
//title: { "name": string, "url": string, "accessMode": string};
|
//title: { "name": string, "url": string, "accessMode": string};
|
||||||
title: string;
|
title: string;
|
||||||
|
subtitle: string;
|
||||||
accessMode: string;
|
accessMode: string;
|
||||||
authors: string[];
|
authors: string[];
|
||||||
date: string;
|
date: string;
|
||||||
|
|
|
@ -15,7 +15,7 @@ export class PublicationInfo {
|
||||||
|
|
||||||
identifiers: Map<string, string[]>; //key is the classname
|
identifiers: Map<string, string[]>; //key is the classname
|
||||||
publisher: string;
|
publisher: string;
|
||||||
journal: {"journal": string, "issn": string, "lissn": string, "volume": string, "start_page": string, "end_page": string};
|
journal: {"journal": string, "issn": string, "lissn": string, "eissn": string, "issue": string, "volume": string, "start_page": string, "end_page": string};
|
||||||
languages: string[];
|
languages: string[];
|
||||||
countries: string[];
|
countries: string[];
|
||||||
subjects: string[];
|
subjects: string[];
|
||||||
|
|
Loading…
Reference in New Issue