Commit Graph

67 Commits

Author SHA1 Message Date
Konstantina Galouni 53a39d0a34 [Library | angular-14]: navigationBar.component: Added field "public featuredAlignment: string = MenuAlignment.CENTER.valueOf();" and align custom menu according to this, dynamically. 2022-12-09 16:49:07 +02:00
Konstantinos Triantafyllou 095e3340c0 Finish mobile menu and user menu in mobile 2022-11-30 17:49:38 +02:00
Konstantina Galouni 4cec2907da [Explore | Library | new-theme]: resources.service.ts & menu.ts & navigationBar.component.ts & navigationBar.component.html & app.component.ts: Removed deprecated RootMenuItem and used MenuItem instead. 2022-09-20 18:00:19 +03:00
Konstantinos Triantafyllou a33226250b Add scale up animation for logo 2022-08-04 16:46:42 +03:00
Konstantinos Triantafyllou 6a7559a3ad Add replaceHeader in Navbar Header and a handler in layout service. Change header info in dashboard pages. 2022-08-04 15:29:08 +03:00
Alex Martzios a79e9f6cc9 display normal & featured menu on connect front-end based on show/hide boolean value 2022-07-20 12:13:55 +03:00
Alex Martzios 13a3590559 use new API response for getting the menu items 2022-07-15 13:43:11 +03:00
Konstantina Galouni 0839b6df60 [Connect Admin | Library | new-theme]: Match menu for communities in admin & dashboard | Added missing property "adminPortalURL".
1. environments/: [Bug fix] Added missing property "adminPortalURL".
2. community-routing.module.ts: Added "user-info" path for each community.
3. app.routing.ts: Set "hasSidebar" to true for "user-info" path.
4. app.component.ts:
   a. Set "user-info" path in userMenuItems under community if any selected.
   b. In menuHeader for community set logoUrl and logoSmallUrl to headerLogoUrl (community logo).
   c. When community is selected, added in menu all items of dashboard too (menu same in admin and dashboard).
5. app.component.html: In <navbar> added input parameter "communityId".
6. navigationBar.component.ts: On "initialize()" method, clear "showEntity" and "showPage" fields before filling them again and subscribe to communityInformationState if there is a community and adminToolsAPIURL OR if adminToolsPortalType is community (admin & dashboard).
7. community.service.ts: On getCommunityAsync() method, after await call clearSubscriptions().
2022-07-01 11:27:47 +03:00
Alex Martzios beb21be4a0 tweaks for navbar (featured menu items) 2022-06-27 13:46:39 +03:00
Konstantina Galouni bbce674da9 [Connect & Library | new-theme]: Breadcrumbs position updated in html pages | Bug fix in custom menu items | In search menu, use OpenaireEntities.
1. app.component.ts: In search menu, use OpenaireEntities.
2. navigationBar.component.ts: [Bug fix] In method "isTheActiveMenu()", update condition to "if(menu instanceof MenuItem || !menu.rootItem)" - custom menu items via admin tools are MenuItems but not instanceof MenuItem.
3. projectsPage.component.ts & nationalBulletinsPage.component.ts & contentPage.component.ts: Margins & paddings updated, so that breadcrumb is at the same position on all pages.
2022-06-21 19:37:21 +03:00
Konstantina Galouni 99ed7ea6ba [Library & Monitor Dashboard | new-theme]: Sidebar & Navbar checks updated to use the same method | "activeMenuItem" in route data (optional) to set which menu item is active when url does not match | Bug fix in <my-tabs>.
1. layout.service.ts: Added "activeMenuItemSubject" to keep value of data['activeMenuItem'].
2. menu.ts: Removed "markAsActive" (not used) | Set RootMenuItem as deprecated (should use only MenuItem) | Added "isTheActiveMenuItem()" method to check if a MenuItem (root or not / sidebar or navbar) is active.
3. navigationBar.component.ts: Updated "isTheActiveMenu()" method to call MenuItem.isTheActiveMenu() | Removed method "isTheActiveMenuItem()".
4. navigationBar.component.html: Always call "isTheActiveMenu()" method.
5. sideBar.component.ts: Added "get currentRoute()" and updated method "isTheActiveMenuItem()".
6. tabs.component.ts: [Bug fix] Removed [class.uk-active] from <li> of tabs (since small-tabs are not currently used it is ok to remove this) - caused by version update of Uikit.
7. monitor-routing.module.ts: Set activeMenuItem: "dashboard" for any path under a stakeholder that has nothing or anything under a topic. | Set activeMenuItem: "search" in paths under search.
8. app-routing.module.ts: Set activeMenuItem: "manage" for paths under admin/:stakeholder.
9. app.component.ts: Updated menu in Admin Dashboard (all items visible and logo of monitor used) | Set value for MenuItem.routeActive when adding menu items of topics and users.
2022-03-28 11:40:21 +03:00
Konstantinos Triantafyllou 52f1abfdbf Change navbar to sticky only at top. Make page-content header sticky. Fix a bug in icons component 2022-03-03 17:44:59 +02:00
Konstantinos Triantafyllou 2b7c52a8b0 Merge from master 2022-03-03 14:35:55 +02:00
Alex Martzios 5e92fdf83b add featured menu items in the nav bar - dev only 2022-03-02 12:27:48 +02:00
Konstantinos Triantafyllou c2b6547b4c Navbar add rules if header menu and header is on center 2022-02-28 18:00:57 +02:00
Konstantinos Triantafyllou d590732aba Change navbar base on new theme 2022-02-28 14:38:26 +02:00
argirok 66eed05597 apply changes related to eosc/aggregator 2022-02-18 16:57:25 +02:00
Konstantina Galouni 304276f3bc [Library]: Fixes in ORCID put-codes query & query dynamic menu only in development environment.
1. dataProvider.component.ts: Comment log for dataProviderInfo.fundedContent.
2. searchResult.component.ts: In initialize() method, before calling orcidService.getPutCodes, added more checks for type (result, publication, dataset, software, other).
3. navigationBar.component.ts: Call _helpContentService.getMenuItems only in development environment.
2022-02-16 11:40:05 +02:00
Alex Martzios 3228c67a14 add warnings for disabled pages/routes on the menu items - dev only 2022-01-14 15:55:24 +02:00
Alex Martzios 1b6c7f06de add custom menu items in the navbar for community gateways - dev only 2022-01-13 14:09:10 +02:00
argiro.kokogiannaki 4ea83f6ce8 [Library|Trunk]
NavbaR: 
- remove stakeholder
- remove search bar   



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61058 d315682c-612b-4755-9ff5-7f18f6832af3
2021-05-28 13:35:10 +00:00
k.triantafyllou 17d38d59a6 [Library | Trunk]: NavBar fix current route on html
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60841 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-12 15:35:49 +00:00
k.triantafyllou 773d4d81fc [Library | Trunk]: Set active menu add condition for fragment
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60840 d315682c-612b-4755-9ff5-7f18f6832af3
2021-04-12 15:33:39 +00:00
argiro.kokogiannaki 42e0f4673b [Library|Trunk]
Navbar: uk-toogle to close
usermenu: add active menu link



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60206 d315682c-612b-4755-9ff5-7f18f6832af3
2021-01-11 14:14:44 +00:00
argiro.kokogiannaki 346067ec5d [Library|Trunk]
nav bar: fix active item/subitem route


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60205 d315682c-612b-4755-9ff5-7f18f6832af3
2021-01-11 13:54:07 +00:00
argiro.kokogiannaki c19b346dc7 [Library|Trunk]
Fixing menu drop down issue: couldn't open again after clicking a link inside the dropdown (had to move the pointer away first)



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60204 d315682c-612b-4755-9ff5-7f18f6832af3
2021-01-11 11:30:53 +00:00
argiro.kokogiannaki 276a6c7fca [Library|Trunk]
- add checks for admin tool response
- use property for admin portal url


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60040 d315682c-612b-4755-9ff5-7f18f6832af3
2020-12-07 10:22:24 +00:00
argiro.kokogiannaki 074cb003e0 [Library|Trunk]
NavigationBar: remove unused variables, use header url and route for the beta indicator


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59999 d315682c-612b-4755-9ff5-7f18f6832af3
2020-12-01 11:16:24 +00:00
argiro.kokogiannaki 1d5c753ff6 [Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from  the component that uses them (clearSubscriptions())




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59816 d315682c-612b-4755-9ff5-7f18f6832af3
2020-11-11 14:43:13 +00:00
argiro.kokogiannaki 5ccca64ee0 [Library|Trunk]
Admin tool pages:
        updates after migration
        css updates after theme change
	portal: add piwik id

Navbar: optionto enable/disable sticky animation


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59726 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-30 14:01:44 +00:00
k.triantafyllou 6a66668533 [Library | Trunk]: Remove header for portals
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59595 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-14 11:36:18 +00:00
k.triantafyllou 4a13a473ab [Library | Trunk]: Remove explore from navigation bar
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59591 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-14 11:18:29 +00:00
k.triantafyllou f7beca6a6e [Library | Trunk]: Remove community from navigation bar
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59588 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-14 10:13:33 +00:00
k.triantafyllou fb84b102c0 [Library | Trunk]: Navigation Bar: add Header interface
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59585 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-14 09:54:21 +00:00
konstantina.galouni c3a87883d9 [Trunk | Graph]: app.component.html & navigationBar.component.ts: Change "portal" parameter in <navbar> to "graph" (app) and include "graph" in portal checking to initialize (navigationBar).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59519 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-08 14:12:12 +00:00
argiro.kokogiannaki 4467b01559 [Library|Trunk]
Navbar: create an object header with all information about logo - title
	{ route: string, url: string, title: string, logoUrl: string, logoSmallUrl:string, position:'left'|'center'|'right' , badge: boolean };
	this will replace community, stakeholder objects



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59509 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-06 08:12:14 +00:00
k.triantafyllou 6ea9cce2a8 [Library | Assets]: Add dark parameter on user-mini and navbar
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59221 d315682c-612b-4755-9ff5-7f18f6832af3
2020-08-05 13:27:13 +00:00
konstantina.galouni 5c9575ab7a [Trunk | Library]:
1. configuration.service.ts: Use "useLongCache" property for communityFull | Add BehaviorSubject for communityFull | Add filtering methods to check if route is enabled from communityFull info.
2. isRouteEnabled.guard.ts: Get properties from environment (no service needed) | Foreach route do not query API but check if enabled by communityFull info (BehaviorSubject).
3. search.component.ts & searchAll.component.ts & entitiesSelection.component.ts & quick-selections.component.ts & navigationBar.component.ts & bottom.component.ts: 
	Get communityFull info from state (call configurationService.communityInformationState) | Add subscriptions in array to unsubscribe in ngOnDestroy.
	quick-selections.component.ts: Add "uk-disabled" class when needed in <form> elements.
4. resultLanding.module.ts & navigationBar.module.ts & bottom.module.ts & entitiesSelection.module.ts & quick-selections.module.ts: 
	Remove ConfigurationService from providers (singleton service, providedIn: 'root').


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59074 d315682c-612b-4755-9ff5-7f18f6832af3
2020-07-12 22:19:30 +00:00
k.triantafyllou d07a30b5ca [Library | Trunk]: 1. Contact us css changes. 2. Search for monitor. 3. Landing for monitor
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59007 d315682c-612b-4755-9ff5-7f18f6832af3
2020-06-29 13:15:52 +00:00
k.triantafyllou b4e5d797a5 [Library | Trunk]: FP Slider: Add navigation menu on the left
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58944 d315682c-612b-4755-9ff5-7f18f6832af3
2020-06-16 19:59:51 +00:00
konstantina.galouni c20391f3fc [Trunk | Library]:
1. src/assets/common-assets/common/custom.css: Add 'font-display: swap;' in '@font-face' css rules - improve performance.
2. dataProvider.component.html & organizations.component.html & project.component.html & resultLanding.component.html: Add check if 'indexUpdateDate' is initialized.
3. dataProvider.component.ts & organization.component.ts & project.component.ts & resultLanding.component.ts: 
	Initialize 'indexUpdateDate' and tabs counts only if "typeof document !== 'undefined'" (javascript is enabled) - improve performance.
4. resultLanding.component.ts: Get "provenanceActionVocabulary" and "altMetrics" only if "typeof document !== 'undefined'" (javascript is enabled) - improve performance.
5. organization.component.ts: [Bug fix] Get 'indexUpdateDate' from service (not properties) if available.
6. project.component.ts: [Bug fix] Call 'getProjectInfo()' only once (was called twice).
7. project.service.ts: [Bug fix] Add check for rels.rel.to.class=="hasParticipant" (when not array).
8. metrics.component.ts: Get metrics if "typeof document !== 'undefined'" (javascript is enabled) | Show charts only if user clicked on metrics badge | Do not set "width" for <i-frame> elements.
9. iframe.component.ts: Add case when only height is sent as input.
10. searchDataProviders.component.ts & searchOrganizations.component.ts: [Bug fix] Set "firstLoad" to false after getting results (was asking refine filters in paging too). 
11. search-tab.component.ts: [Bug fix]: In method "getEntityName()" add cases when 'entityType == "project"' and 'entityType == "dataprovider"' and fix case when 'entityType == "result"'.
12. navigationBar.component.ts: [Bug fix] Do not initialize navbar inside route.queryParams subscription - !!! check it carefully when deployed in all portals !!! .


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58874 d315682c-612b-4755-9ff5-7f18f6832af3
2020-06-10 11:05:59 +00:00
argiro.kokogiannaki 1aa854b72a [Library|Trunk]
navigation bar:
	add logo url also in big beta indication badge to fix z-index issue


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58582 d315682c-612b-4755-9ff5-7f18f6832af3
2020-04-30 12:26:25 +00:00
k.triantafyllou 97fdeb38c2 [Library | Trunk]: Add condition if community is connect add redirectUrl
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58580 d315682c-612b-4755-9ff5-7f18f6832af3
2020-04-30 10:33:21 +00:00
k.triantafyllou 9d69da41fd [Library | Trunk]: 1. Add project name as subtitle if acrony and name are existed. 2. Remove isClient condition, which made menu hidden on server mode.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58285 d315682c-612b-4755-9ff5-7f18f6832af3
2020-03-17 13:55:34 +00:00
k.triantafyllou 98c98e6625 [Library]: Add user management service and change all session methods with new ones.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57058 d315682c-612b-4755-9ff5-7f18f6832af3
2019-09-13 07:01:19 +00:00
argiro.kokogiannaki 4eb1a0a994 [Trunk|Library]
navbar: clean up imports



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56300 d315682c-612b-4755-9ff5-7f18f6832af3
2019-07-01 14:22:11 +00:00
argiro.kokogiannaki 84f7929b67 [Library|Trunk]
user component:
	show user info only when there is no error code
navBar:
	mark as active the current route
	add markAsActive property in  class MenuItem and mark root menu item only when it is set true.
	mark by default


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56199 d315682c-612b-4755-9ff5-7f18f6832af3
2019-06-25 13:26:24 +00:00
argiro.kokogiannaki e19ec379d0 [Library|Trunk]
Navbar:
	add home menu item --> show when the route is not the home, use a boolean attr to show it, by default is hidden




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56180 d315682c-612b-4755-9ff5-7f18f6832af3
2019-06-24 12:12:28 +00:00
argiro.kokogiannaki d76b8bf68f [Trunk|Library]
NavBaR:
	add search bar on menu - show in home page - by default is hidden


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56137 d315682c-612b-4755-9ff5-7f18f6832af3
2019-06-20 13:29:43 +00:00
argiro.kokogiannaki 504fdfaa3c [Library|Trunk]
Changes for Aggregator portal:
	use a customFilter in search pages, and pass it through the components
	for landing  pages check if a route is available in order to add linking and deposit links



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56059 d315682c-612b-4755-9ff5-7f18f6832af3
2019-06-12 14:13:56 +00:00