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({
|
2022-04-12 14:05:53 +02:00
|
|
|
selector: 'showPublisher, [showPublisher]',
|
2019-05-22 17:04:10 +02:00
|
|
|
template: `
|
2023-07-19 11:20:49 +02:00
|
|
|
<ng-container *ngIf="publisher">
|
2024-02-29 10:33:17 +01:00
|
|
|
<span class="uk-text-meta uk-margin-xsmall-right">Publisher:</span>
|
|
|
|
<span>{{publisher}}</span>
|
2023-07-19 11:20:49 +02:00
|
|
|
<span *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
|
|
|
|| journal['volume'] || journal['eissn'] || journal['issue'])"
|
|
|
|
class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
|
|
|
</ng-container>
|
2023-01-23 15:19:00 +01:00
|
|
|
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
2023-01-09 17:35:28 +01:00
|
|
|
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
|
|
|
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
|
|
|
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
2024-02-29 10:33:17 +01:00
|
|
|
<span>
|
|
|
|
<span class="uk-text-meta uk-margin-xsmall-right">Journal:</span>
|
2023-01-09 17:35:28 +01:00
|
|
|
<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']">
|
|
|
|
<span class="uk-display-inline-block">issn: {{journal['issn']}}</span>
|
|
|
|
<span>, </span>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="journal['eissn']">
|
|
|
|
<span class="uk-display-inline-block">eissn: {{journal['eissn']}}</span>
|
|
|
|
<span>, </span>
|
|
|
|
</ng-container>
|
|
|
|
<span *ngIf="journal['lissn']" class="uk-display-inline-block">
|
|
|
|
<span class="uk-display-inline-block">lissn: {{journal['lissn']}}</span>
|
|
|
|
<span>, </span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="journal && (journal['issn'] ||journal['lissn'] || journal['eissn'] )">
|
|
|
|
<a target="_blank" class="uk-display-inline-block custom-external"
|
|
|
|
[href]="properties.sherpaURL+(journal['issn']?journal['issn']:(journal['eissn']?journal['eissn']:journal['lissn'] ))+properties.sherpaURLSuffix"
|
|
|
|
uk-tooltip="title: View information on Sherpa/RoMEO ">
|
|
|
|
<img src="assets/common-assets/common/SHERPA-RoMEO-short-logo.gif" width=16 height=16 alt="" loading="lazy">
|
|
|
|
Copyright policy
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span *ngIf=" journal['journal'] && (journal['issn'] || journal['eissn'] || journal['lissn'])">)</span>
|
|
|
|
</span>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
2019-05-27 12:36:09 +02:00
|
|
|
`
|
2019-05-22 17:04:10 +02:00
|
|
|
})
|
|
|
|
export class ShowPublisherComponent {
|
|
|
|
@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
|
|
|
}
|