From 8aae6d6d8085535f6f297fea1cb4bb2a08aad134 Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 17 Jul 2023 12:09:49 +0300 Subject: [PATCH] Deposit: show zenodo communities page if there is main OR other related communities --- src/app/deposit/deposit.component.ts | 2 +- .../deposit/searchDataprovidersToDeposit.component.ts | 2 +- src/app/deposit/zenodo/shareInZenodo.component.html | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/deposit/deposit.component.ts b/src/app/deposit/deposit.component.ts index af7b3c5..1939465 100644 --- a/src/app/deposit/deposit.component.ts +++ b/src/app/deposit/deposit.component.ts @@ -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; diff --git a/src/app/deposit/searchDataprovidersToDeposit.component.ts b/src/app/deposit/searchDataprovidersToDeposit.component.ts index ce74a10..e7ccca5 100644 --- a/src/app/deposit/searchDataprovidersToDeposit.component.ts +++ b/src/app/deposit/searchDataprovidersToDeposit.component.ts @@ -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; diff --git a/src/app/deposit/zenodo/shareInZenodo.component.html b/src/app/deposit/zenodo/shareInZenodo.component.html index 656dd2d..707bc41 100644 --- a/src/app/deposit/zenodo/shareInZenodo.component.html +++ b/src/app/deposit/zenodo/shareInZenodo.component.html @@ -76,7 +76,6 @@ -
-
Other related Zenodo communities
+
Other related Zenodo communities
+
Related Zenodo communities
+