diff --git a/explore/src/app/app.component.ts b/explore/src/app/app.component.ts index 28ade394..7ba8f7c6 100644 --- a/explore/src/app/app.component.ts +++ b/explore/src/app/app.component.ts @@ -61,10 +61,6 @@ export class AppComponent { constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, private router: Router, private userManagementService: UserManagementService, private smoothScroll: SmoothScroll, private configurationService: ConfigurationService, private _meta: Meta, private seoService: SEOService,) { - this.userMenuItems.push(new MenuItem("", "My profile", "", "", false, [], [], {})); - this.userMenuItems.push(new MenuItem("", "My ORCID links", "", "/my-orcid-links", false, [], [""], {})); - this.userMenuItems.push(new MenuItem("", "My links", "", "/myclaims", false, [], ["/myclaims"], {})); - } ngOnInit() { @@ -107,6 +103,10 @@ export class AppComponent { } buildMenu() { + this.userMenuItems = []; + this.userMenuItems.push(new MenuItem("", "My profile", "", "", false, [], [], {})); + this.userMenuItems.push(new MenuItem("", "My ORCID links", "", "/my-orcid-links", false, [], [""], {})); + this.userMenuItems.push(new MenuItem("", "My links", "", "/myclaims", false, [], ["/myclaims"], {})); let researchOutcomesMenu = new MenuItem("", OpenaireEntities.RESULTS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'}); researchOutcomesMenu.items = [ new MenuItem("", OpenaireEntities.PUBLICATIONS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("publications") + '"'}), diff --git a/explore/src/app/openaireLibrary b/explore/src/app/openaireLibrary index 717ead02..29d55b50 160000 --- a/explore/src/app/openaireLibrary +++ b/explore/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 717ead02b2f154c3a91e799ed5701ea23b54f7e8 +Subproject commit 29d55b50cca349977eb6dc0cc285d5aa9d8fa9fa