From ba9f7db240c49f78ddf6aba43d490bb2bd6e9368 Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 23 Oct 2023 14:45:27 +0300 Subject: [PATCH] [angular-16-update-zenodo-api | DONE | UPDATE] : update zenodo community API - update method signatures --- .../pages/zenodo-communities/zenodo-communities.component.ts | 4 ++-- src/environments/environment.beta.ts | 2 +- src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/pages/zenodo-communities/zenodo-communities.component.ts b/src/app/pages/zenodo-communities/zenodo-communities.component.ts index 717c259..54080c3 100644 --- a/src/app/pages/zenodo-communities/zenodo-communities.component.ts +++ b/src/app/pages/zenodo-communities/zenodo-communities.component.ts @@ -62,7 +62,7 @@ export class ZenodoCommunitiesComponent implements OnInit, OnDestroy { this.masterZenodoCommunityId = this.community.zenodoCommunity; if (this.masterZenodoCommunityId) { this.subscriptions.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, - this.properties.zenodoCommunities + this.masterZenodoCommunityId).subscribe( + this.masterZenodoCommunityId).subscribe( result => { this.masterZenodoCommunity = result; this.selectedCommunities.unshift(this.masterZenodoCommunity); @@ -113,7 +113,7 @@ export class ZenodoCommunitiesComponent implements OnInit, OnDestroy { getZenodoCommunityById(zenodoid) { this.subscriptions.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, - this.properties.zenodoCommunities + zenodoid).subscribe( + zenodoid).subscribe( result => { this.selectedCommunities.push(result); this.zenodocommunitiesloadedCount++; diff --git a/src/environments/environment.beta.ts b/src/environments/environment.beta.ts index 9c045fe..cc006c7 100644 --- a/src/environments/environment.beta.ts +++ b/src/environments/environment.beta.ts @@ -28,7 +28,7 @@ export let properties: EnvProperties = { swhURL: "https://archive.softwareheritage.org/", sherpaURL: "http://www.sherpa.ac.uk/romeo/search.php?issn=", zenodo: "https://zenodo.org/", - zenodoCommunities: "https://zenodo.org/api/communities/", + zenodoCommunities: "https://zenodo.org/api/communities", openAccess: "https://www.openaire.eu/support/faq#article-id-234", openAccessRepo: "https://www.openaire.eu/support/faq#article-id-310", fp7Guidlines: "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme", diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index d916388..d22b1e5 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -28,7 +28,7 @@ export let properties: EnvProperties = { swhURL: "https://archive.softwareheritage.org/", sherpaURL: "http://www.sherpa.ac.uk/romeo/search.php?issn=", zenodo: "https://zenodo.org/", - zenodoCommunities: "https://zenodo.org/api/communities/", + zenodoCommunities: "https://zenodo.org/api/communities", openAccess: "https://www.openaire.eu/support/faq#article-id-234", openAccessRepo: "https://www.openaire.eu/support/faq#article-id-310", fp7Guidlines: "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme", diff --git a/src/environments/environment.ts b/src/environments/environment.ts index fa9ff2e..b40e3d1 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -33,7 +33,7 @@ export let properties: EnvProperties = { swhURL: "https://archive.softwareheritage.org/", sherpaURL: 'http://www.sherpa.ac.uk/romeo/search.php?issn=', zenodo: 'https://zenodo.org/', - zenodoCommunities: 'https://zenodo.org/api/communities/', + zenodoCommunities: 'https://zenodo.org/api/communities', openAccess: 'https://www.openaire.eu/support/faq#article-id-234', openAccessRepo: 'https://www.openaire.eu/support/faq#article-id-310', fp7Guidlines: 'https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme',