From eda8c5c2d990531061b50ef958ed2f13f6ad5351 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 11 Jul 2023 15:26:38 +0300 Subject: [PATCH] [Explore | develop]: app.component.ts: Added open access param in sub menu items of research products (publications, software, ...) | home.component.ts: Removed an unnecessary log. --- explore/src/app/app.component.ts | 8 ++++---- explore/src/app/home/home.component.ts | 1 - explore/src/app/openaireLibrary | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/explore/src/app/app.component.ts b/explore/src/app/app.component.ts index c92c2699..41f77ea3 100644 --- a/explore/src/app/app.component.ts +++ b/explore/src/app/app.component.ts @@ -169,10 +169,10 @@ export class AppComponent { 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") + '"'}), - new MenuItem("", OpenaireEntities.DATASETS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("datasets") + '"'}), - new MenuItem("", OpenaireEntities.SOFTWARE, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("software") + '"'}), - new MenuItem("", OpenaireEntities.OTHER, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("other") + '"'})]; + new MenuItem("", OpenaireEntities.PUBLICATIONS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("publications") + '"', resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'}), + new MenuItem("", OpenaireEntities.DATASETS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("datasets") + '"', resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'}), + new MenuItem("", OpenaireEntities.SOFTWARE, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("software") + '"', resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'}), + new MenuItem("", OpenaireEntities.OTHER, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {type: '"' + encodeURIComponent("other") + '"', resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'})]; //TODO add check for research results route this.menuItems = [ new MenuItem("search", "Search", "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'}, diff --git a/explore/src/app/home/home.component.ts b/explore/src/app/home/home.component.ts index c4a40ced..5f02eba6 100644 --- a/explore/src/app/home/home.component.ts +++ b/explore/src/app/home/home.component.ts @@ -336,7 +336,6 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit { } goTo() { - console.log('goto()'); let parameterNames = []; let parameterValues = []; // if (this.selectedEntity == "result") { diff --git a/explore/src/app/openaireLibrary b/explore/src/app/openaireLibrary index ae68622f..5f980c01 160000 --- a/explore/src/app/openaireLibrary +++ b/explore/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit ae68622fb6f064febe56cfea8f79fec5ef357976 +Subproject commit 5f980c01bb4263b6d02d2f8c0c753395f54fe4a1