2019-05-22 17:04:10 +02:00
|
|
|
import {Component, Input} from '@angular/core';
|
2019-05-29 15:56:09 +02:00
|
|
|
import {EnvProperties} from "../../utils/properties/env-properties";
|
2019-05-22 17:04:10 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'showPublisher',
|
|
|
|
template: `
|
2020-03-16 14:09:46 +01:00
|
|
|
<li *ngIf="publishDate || journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
|
|
|
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
|
|
|
<span *ngIf="publishDate" class="uk-margin-right">
|
|
|
|
<span class="uk-text-muted">Published: </span>
|
2021-05-13 17:48:01 +02:00
|
|
|
{{publishDate | date: 'dd MMM yyyy' : 'UTC'}}
|
2020-03-16 14:09:46 +01:00
|
|
|
</span>
|
|
|
|
<span *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
|
|
|
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
|
|
|
<span class="uk-text-muted">Journal: </span>
|
|
|
|
<span *ngIf="journal['journal']">{{journal['journal']}}</span>
|
|
|
|
<span *ngIf="journal['journal'] && (journal['volume'] || journal['issue'])">, </span>
|
|
|
|
<ng-container *ngIf="journal['volume']">
|
|
|
|
<span class="uk-display-inline-block">
|
|
|
|
volume
|
|
|
|
<span *ngIf="journal['volume'] > 0">{{journal['volume'] | number}}</span>
|
|
|
|
<span *ngIf="!(journal['volume'] > 0)">{{journal['volume']}}</span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="journal['issue'] || journal['start_page'] || journal['end_page']">, </span>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="journal['issue']">
|
|
|
|
<span class="uk-display-inline-block">
|
|
|
|
issue
|
|
|
|
<span *ngIf="journal['issue'] > 0">{{journal['issue'] | number}}</span>
|
|
|
|
<span *ngIf="!(journal['issue'] > 0)">{{journal['issue']}}</span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="journal['start_page'] || journal['end_page']">, </span>
|
|
|
|
</ng-container>
|
|
|
|
<span *ngIf="(journal['volume'] || journal['issue']) && (journal['start_page'] || journal['end_page'])"
|
|
|
|
class="uk-display-inline-block">
|
|
|
|
{{(journal['start_page'] && journal['end_page']) ? 'pages' : 'page'}}
|
|
|
|
<span *ngIf="journal['start_page']">
|
|
|
|
<span *ngIf="journal['start_page'] > 0">{{journal['start_page'] | number}}</span>
|
|
|
|
<span *ngIf="!(journal['start_page'] > 0)">{{journal['start_page']}}</span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="journal['start_page'] && journal['end_page']">-</span>
|
|
|
|
<span *ngIf="journal['end_page']">
|
|
|
|
<span *ngIf="journal['end_page'] > 0">{{journal['end_page'] | number}}</span>
|
|
|
|
<span *ngIf="!(journal['end_page'] > 0)">{{journal['end_page']}}</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf=" journal['journal'] && (journal['issn'] || journal['eissn'] || journal['lissn'])"> (</span>
|
|
|
|
<ng-container *ngIf="journal['issn']">
|
2020-05-26 16:42:47 +02:00
|
|
|
<span class="uk-display-inline-block">issn: {{journal['issn']}}</span>
|
|
|
|
<span>, </span>
|
2020-03-16 14:09:46 +01:00
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="journal['eissn']">
|
2020-05-26 16:42:47 +02:00
|
|
|
<span class="uk-display-inline-block">eissn: {{journal['eissn']}}</span>
|
|
|
|
<span>, </span>
|
2020-03-16 14:09:46 +01:00
|
|
|
</ng-container>
|
|
|
|
<span *ngIf="journal['lissn']" class="uk-display-inline-block">
|
2020-05-26 16:42:47 +02:00
|
|
|
<span class="uk-display-inline-block">lissn: {{journal['lissn']}}</span>(kostis)
|
|
|
|
<span>, </span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="journal && (journal['issn'] ||journal['lissn'] || journal['eissn'] )">
|
2021-02-10 10:33:36 +01:00
|
|
|
<a target="_blank" class="uk-display-inline-block"
|
2020-05-26 16:42:47 +02:00
|
|
|
[href]="properties.sherpaURL+(journal['issn']?journal['issn']:(journal['eissn']?journal['eissn']:journal['lissn'] ))+properties.sherpaURLSuffix"
|
|
|
|
uk-tooltip="title: View information on Sherpa/RoMEO ">
|
2021-07-14 13:19:57 +02:00
|
|
|
<img src="assets/common-assets/common/SHERPA-RoMEO-short-logo.gif" width=16 height=16 alt="" loading="lazy">
|
2020-05-26 16:42:47 +02:00
|
|
|
Copyright policy<span class="custom-external custom-icon space"></span>
|
2020-05-22 16:51:28 +02:00
|
|
|
</a>
|
2020-03-16 14:09:46 +01:00
|
|
|
</span>
|
|
|
|
<span *ngIf=" journal['journal'] && (journal['issn'] || journal['eissn'] || journal['lissn'])">)</span>
|
|
|
|
</span>
|
2019-05-22 17:04:10 +02:00
|
|
|
</li>
|
2020-03-16 14:09:46 +01:00
|
|
|
<li *ngIf="publisher">
|
|
|
|
<span class="uk-text-muted">Publisher: </span> {{publisher}}
|
2019-05-22 17:04:10 +02:00
|
|
|
</li>
|
2019-05-27 12:36:09 +02:00
|
|
|
`
|
2019-05-22 17:04:10 +02:00
|
|
|
})
|
|
|
|
export class ShowPublisherComponent {
|
2020-03-16 14:09:46 +01:00
|
|
|
@Input() publishDate: Date;
|
2019-05-22 17:04:10 +02:00
|
|
|
@Input() publisher;
|
|
|
|
@Input() journal;
|
2020-03-16 14:09:46 +01:00
|
|
|
//@Input() sherpaUrl = 'http://www.sherpa.ac.uk/romeo/search.php?issn=';
|
2020-03-26 13:18:18 +01:00
|
|
|
//http://sherpa.ac.uk/romeo/issn/2304-6775
|
2020-03-16 14:09:46 +01:00
|
|
|
@Input() properties: EnvProperties;
|
|
|
|
|
|
|
|
|
2019-05-22 17:04:10 +02:00
|
|
|
constructor() {
|
2020-03-16 14:09:46 +01:00
|
|
|
|
2019-05-22 17:04:10 +02:00
|
|
|
}
|
2020-03-16 14:09:46 +01:00
|
|
|
|
2019-05-27 12:36:09 +02:00
|
|
|
ngOnInit() {
|
|
|
|
}
|
2020-03-16 14:09:46 +01:00
|
|
|
|
2019-05-22 17:04:10 +02:00
|
|
|
}
|