Deposit: show zenodo communities page if there is main OR other related communities
This commit is contained in:
parent
f53af36929
commit
8aae6d6d80
|
@ -40,7 +40,7 @@ export class OpenaireDepositComponent {
|
|||
if(community) {
|
||||
this.communityId = community.communityId
|
||||
let masterZenodoCommunityId = community.zenodoCommunity;
|
||||
if (masterZenodoCommunityId) {
|
||||
if (masterZenodoCommunityId || (community.otherZenodoCommunities && community.otherZenodoCommunities.length > 0)) {
|
||||
this.zenodoInformation.shareInZenodoUrl = this.properties.shareInZenodoPage;
|
||||
} else {
|
||||
this.zenodoInformation.url = this.properties.zenodo;
|
||||
|
|
|
@ -38,7 +38,7 @@ export class OpenaireSearchDataprovidersToDepositComponent {
|
|||
if(community) {
|
||||
this.communityId = community.communityId;
|
||||
let masterZenodoCommunityId = community.zenodoCommunity;
|
||||
if (masterZenodoCommunityId) {
|
||||
if (masterZenodoCommunityId || (community.otherZenodoCommunities && community.otherZenodoCommunities.length > 0)) {
|
||||
this.zenodoInformation.shareInZenodoUrl = this.properties.shareInZenodoPage;
|
||||
} else {
|
||||
this.zenodoInformation.url = this.properties.zenodo;
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="zenodoSearchUtils.status == errorCodes.LOADING"
|
||||
class="uk-animation-fade uk-margin-large uk-padding-large uk-padding-remove-horizontal" role="alert">
|
||||
<loading></loading>
|
||||
|
@ -86,7 +85,13 @@
|
|||
No zenodo communities found
|
||||
</div>
|
||||
<div class="uk-section">
|
||||
<h6 class="uk-margin-medium-bottom">Other related Zenodo communities</h6>
|
||||
<h6 *ngIf="masterZenodoCommunity" class="uk-margin-medium-bottom">Other related Zenodo communities</h6>
|
||||
<h6 *ngIf="!masterZenodoCommunity" class="uk-margin-medium-bottom">Related Zenodo communities</h6>
|
||||
<div *ngIf="!masterZenodoCommunity" class="uk-margin-top uk-text-center uk-margin-medium-bottom">
|
||||
<a routerLink="/participate/deposit/search" target="_blank" class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
OpenAIRE Compliant Repositories
|
||||
</a>
|
||||
</div>
|
||||
<no-load-paging *ngIf="communityIds && communityIds.length > size" [type]="'Zenodo communities'"
|
||||
(pageChange)="getCommunities($event)"
|
||||
[page]="page" [pageSize]="size"
|
||||
|
|
Loading…
Reference in New Issue