Compare commits

...

27 Commits

Author SHA1 Message Date
Konstantinos Triantafyllou a8692acf4e Merge from develop last fixes 2024-10-08 13:18:00 +03:00
Konstantinos Triantafyllou f90d0e7351 [develop]: Fix url in subcategories links in monitor page. Fix isSearch condition. Update library 2024-10-08 13:16:54 +03:00
Konstantinos Triantafyllou 062bb5faf0 Merge from develop 2024-10-07 15:47:25 +03:00
Konstantinos Triantafyllou 18a187a7a5 Update library and version and subscriptions page for monitor 2024-10-07 15:38:43 +03:00
Konstantinos Triantafyllou ad0ffd3c8b Update library 2024-09-23 10:04:37 +03:00
Alex Martzios 70635ae31e [develop | DONE | CHANGED] monitorServiceAPIURL property: move to service file, update submodules 2024-09-12 10:49:56 +03:00
Konstantinos Triantafyllou b28b9a4839 Merge branch 'develop' of code-repo.d4science.org:MaDgIK/monitor-dashboard into develop 2024-09-11 12:36:47 +03:00
Konstantinos Triantafyllou 18cafd8976 [develop]: Update library 2024-09-11 12:36:06 +03:00
Konstantina Galouni 8e19836d71 Updating openaireLibrary & common-assets 2024-09-09 17:38:06 +03:00
Alex Martzios e152350fb6 [develop | DONE | CHANGED] monitorServiceAPIURL: remove duplicate '/' 2024-09-05 13:00:45 +03:00
Konstantinos Triantafyllou ffb9246305 Resolve v1.1.0 2024-07-25 14:19:28 +03:00
Konstantinos Triantafyllou 7ffdd1f3ae Update version to 1.1.0 2024-07-25 14:18:08 +03:00
Konstantinos Triantafyllou 5bf4627917 [develop]: Fix develop page broken links. 2024-07-25 12:04:52 +03:00
Konstantinos Triantafyllou b9e70e047b [develop]: Change note overlay button to button-link 2024-07-25 10:44:47 +03:00
Konstantinos Triantafyllou ec959f1eca [develop]: Tabs of indicator tabs have now specific height and be invisible when there is only one. 2024-07-25 10:32:46 +03:00
Konstantinos Triantafyllou 4accebe43c Update libraries 2024-07-22 10:28:31 +03:00
Konstantinos Triantafyllou cd78117628 Resolve v1.0.2 PR 2024-07-15 20:39:18 +03:00
Konstantinos Triantafyllou e133d51bf0 Update version 2024-07-15 20:31:45 +03:00
Konstantinos Triantafyllou a5a15ee1b7 Update libaries 2024-07-15 20:30:46 +03:00
Konstantinos Triantafyllou d8ffe5e429 [develop]: Update libraries 2024-07-02 15:56:23 +03:00
Konstantinos Triantafyllou 1932723815 Add adminToolsPortalType in beta and prod 2024-06-28 12:36:14 +03:00
Konstantinos Triantafyllou cfb4a33603 [develop]: Update library and fix condition for divContents in app component. 2024-06-28 11:52:56 +03:00
Konstantinos Triantafyllou 7f8a8148bb [develop]: Add banner class help text in app component. 2024-06-27 15:37:18 +03:00
Konstantinos Triantafyllou eabde3c9de [develop]: Fix mobile view in browse stakeholders. 2024-06-26 10:18:32 +03:00
Konstantinos Triantafyllou a352cae5fb Merge branch 'develop' of code-repo.d4science.org:MaDgIK/monitor-dashboard into develop 2024-06-25 15:36:43 +03:00
Konstantinos Triantafyllou b24ace93ca Change position of id in browse stakeholders. 2024-06-25 15:36:32 +03:00
argirok db90f5f900 [develop | DONE | CHANGED] User Menu:show admin links menu only for organizations 2024-06-25 09:44:54 +03:00
14 changed files with 332 additions and 287 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "monitor-dashboard", "name": "monitor-dashboard",
"version": "1.0.2", "version": "1.1.1",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --port 4600 --disable-host-check --host 0.0.0.0", "start": "ng serve --port 4600 --disable-host-check --host 0.0.0.0",

View File

@ -81,7 +81,7 @@ export function app() {
})); }));
if (userinfoRes.status === 200) { if (userinfoRes.status === 200) {
let user = new User(userinfoRes.data); let user = new User(userinfoRes.data);
let stakeholderRes = (await axios.get<Stakeholder>(properties.monitorServiceAPIURL + '/stakeholder/' + encodeURIComponent(req.params.alias), { let stakeholderRes = (await axios.get<Stakeholder>(properties.monitorServiceAPIURL + 'stakeholder/' + encodeURIComponent(req.params.alias), {
withCredentials: true, withCredentials: true,
headers: headers headers: headers
}).catch(error => { }).catch(error => {

View File

@ -4,6 +4,9 @@
<div *ngIf="!loading" [class.monitor]="isFrontPage"> <div *ngIf="!loading" [class.monitor]="isFrontPage">
<div id="modal-container"></div> <div id="modal-container"></div>
<ng-container *ngIf="!isHidden"> <ng-container *ngIf="!isHidden">
<div *ngIf="divContents && divContents['banner']" class="uk-tile uk-tile-default uk-padding uk-border-bottom">
<helper [texts]="divContents['banner']"></helper>
</div>
<navbar *ngIf="hasHeader" portal="monitor_dashboard" [header]="menuHeader" [userMenuItems]=userMenuItems <navbar *ngIf="hasHeader" portal="monitor_dashboard" [header]="menuHeader" [userMenuItems]=userMenuItems
[menuItems]="menuItems" [user]="user" [menuItems]="menuItems" [user]="user"
[notificationConfiguration]="isMobile && user && notificationGroupsInitialized?notificationConfiguration:null"></navbar> [notificationConfiguration]="isMobile && user && notificationGroupsInitialized?notificationConfiguration:null"></navbar>

View File

@ -27,6 +27,7 @@ import {
import {SidebarBaseComponent} from "./openaireLibrary/dashboard/sharedComponents/sidebar/sidebar-base.component"; import {SidebarBaseComponent} from "./openaireLibrary/dashboard/sharedComponents/sidebar/sidebar-base.component";
import {Breadcrumb} from './openaireLibrary/utils/breadcrumbs/breadcrumbs.component'; import {Breadcrumb} from './openaireLibrary/utils/breadcrumbs/breadcrumbs.component';
import {OpenaireEntities} from './openaireLibrary/utils/properties/searchFields'; import {OpenaireEntities} from './openaireLibrary/utils/properties/searchFields';
import {HelperService} from "./openaireLibrary/utils/helper/helper.service";
@Component({ @Component({
@ -73,6 +74,7 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
paramsSubscription: Subscription; paramsSubscription: Subscription;
openaireEntities = OpenaireEntities; openaireEntities = OpenaireEntities;
activeType: StakeholderType; activeType: StakeholderType;
divContents: any;
constructor(protected _route: ActivatedRoute, constructor(protected _route: ActivatedRoute,
protected _router: Router, protected _router: Router,
@ -82,16 +84,18 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
private smoothScroll: SmoothScroll, private smoothScroll: SmoothScroll,
private stakeholderService: StakeholderService, private stakeholderService: StakeholderService,
private configurationService: ConfigurationService, private configurationService: ConfigurationService,
private helper: HelperService,
private resourcesService: ResourcesService) { private resourcesService: ResourcesService) {
super(); super();
this.initRouterParams(_route, event => { this.initRouterParams(_route, event => {
this.isBrowse = event.url.includes('browse'); this.isBrowse = event.url.includes('browse');
this.isSearch = event.url.includes('search'); this.isSearch = event.url.includes('search/find');
}); });
} }
ngOnInit() { ngOnInit() {
super.ngOnInit(); super.ngOnInit();
this.getDivContents();
if (typeof document !== 'undefined' && window) { if (typeof document !== 'undefined' && window) {
this.innerWidth = window.innerWidth; this.innerWidth = window.innerWidth;
} }
@ -220,7 +224,7 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
this.notificationConfiguration.availableGroups.push({value: Role.typeMember(type.value), label: type.label + ' Members'}); this.notificationConfiguration.availableGroups.push({value: Role.typeMember(type.value), label: type.label + ' Members'});
} }
} }
this.subscriptions.push(this.stakeholderService.getMyStakeholders(this.properties.monitorServiceAPIURL).subscribe(manageStakeholder => { this.subscriptions.push(this.stakeholderService.getMyStakeholders().subscribe(manageStakeholder => {
let stakeholders = manageStakeholder.standalone; let stakeholders = manageStakeholder.standalone;
stakeholders.concat(manageStakeholder.umbrella); stakeholders.concat(manageStakeholder.umbrella);
stakeholders.concat(manageStakeholder.dependent); stakeholders.concat(manageStakeholder.dependent);
@ -267,6 +271,12 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
this.smoothScroll.clearSubscriptions(); this.smoothScroll.clearSubscriptions();
} }
private getDivContents() {
this.subscriptions.push(this.helper.getDivHelpContents(this.properties, 'monitor', '/').subscribe(contents => {
this.divContents = contents;
}));
}
private navigateToError() { private navigateToError() {
this._router.navigate([this.properties.errorLink], {queryParams: {'page': this.properties.baseLink + this._router.url}}); this._router.navigate([this.properties.errorLink], {queryParams: {'page': this.properties.baseLink + this._router.url}});
} }
@ -299,7 +309,7 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
if(this.isChild) { if(this.isChild) {
return this.stakeholder.parent.alias + '/browse/' + this.stakeholder.type + '/'; return this.stakeholder.parent.alias + '/browse/' + this.stakeholder.type + '/';
} else { } else {
return ''; return '/';
} }
} }
@ -433,6 +443,7 @@ export class AppComponent extends SidebarBaseComponent implements OnInit {
this.resourcesService.setResources(this.menuItems, '', this.monitorLink); this.resourcesService.setResources(this.menuItems, '', this.monitorLink);
this.menuItems.push(new MenuItem("support", "Support", this.monitorLink + '/support/', "", false, [], null, {}, null, null, null, null, "_self")); this.menuItems.push(new MenuItem("support", "Support", this.monitorLink + '/support/', "", false, [], null, {}, null, null, null, null, "_self"));
this.menuItems.push(new MenuItem("about", "About", this.monitorLink + '/about/', "", false, [], null, {}, null, null, null, null, "_self")); this.menuItems.push(new MenuItem("about", "About", this.monitorLink + '/about/', "", false, [], null, {}, null, null, null, null, "_self"));
this.menuItems.push(new MenuItem("subscriptions", "Subscriptions", this.monitorLink + "/subscriptions", "", false, [], null, {}, null, null, null, null, "_self"));
if (this.hasAdminMenu) { if (this.hasAdminMenu) {
this.adminMenuItems = []; this.adminMenuItems = [];
this.backItem = null; this.backItem = null;

View File

@ -34,6 +34,7 @@ import {CustomRouteReuseStrategy} from "./openaireLibrary/shared/custom-route-re
import {RouteReuseStrategy} from "@angular/router"; import {RouteReuseStrategy} from "@angular/router";
import {LogoUrlPipeModule} from './openaireLibrary/utils/pipes/logoUrlPipe.module'; import {LogoUrlPipeModule} from './openaireLibrary/utils/pipes/logoUrlPipe.module';
import {BreadcrumbsModule} from './openaireLibrary/utils/breadcrumbs/breadcrumbs.module'; import {BreadcrumbsModule} from './openaireLibrary/utils/breadcrumbs/breadcrumbs.module';
import {HelperModule} from "./openaireLibrary/utils/helper/helper.module";
@NgModule({ @NgModule({
@ -51,7 +52,7 @@ import {BreadcrumbsModule} from './openaireLibrary/utils/breadcrumbs/breadcrumbs
AppRoutingModule, AppRoutingModule,
SideBarModule, Schema2jsonldModule, RoleVerificationModule, LoadingModule, NotificationsSidebarModule, IconsModule, CacheIndicatorsModule, SideBarModule, Schema2jsonldModule, RoleVerificationModule, LoadingModule, NotificationsSidebarModule, IconsModule, CacheIndicatorsModule,
LogoUrlPipeModule, LogoUrlPipeModule,
BreadcrumbsModule BreadcrumbsModule, HelperModule
], ],
declarations: [AppComponent, OpenaireErrorPageComponent], declarations: [AppComponent, OpenaireErrorPageComponent],
exports: [AppComponent], exports: [AppComponent],

View File

@ -23,7 +23,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="uk-flex uk-flex-middle uk-flex-between uk-margin-large-top"> <div class="uk-grid uk-flex-middle uk-flex-between@m uk-flex-center uk-margin-large-top" [id]="id" uk-grid>
<div class="uk-flex uk-flex-middle"> <div class="uk-flex uk-flex-middle">
<div *ngIf="sortOptions?.length > 0" class="uk-width-small uk-margin-medium-right"> <div *ngIf="sortOptions?.length > 0" class="uk-width-small uk-margin-medium-right">
<div input <div input
@ -46,7 +46,7 @@
</paging-no-load> </paging-no-load>
</div> </div>
</div> </div>
<div class="uk-margin-large-top" id="target"> <div class="uk-margin-large-top">
<div *ngIf="!filteredStakeholders || filteredStakeholders?.length == 0" class="uk-flex uk-flex-center"> <div *ngIf="!filteredStakeholders || filteredStakeholders?.length == 0" class="uk-flex uk-flex-center">
<div class="uk-alert uk-alert-primary uk-text-center uk-width-2-3@m uk-width-1-1"> <div class="uk-alert uk-alert-primary uk-text-center uk-width-2-3@m uk-width-1-1">
No {{entities.stakeholders}} available No {{entities.stakeholders}} available
@ -106,7 +106,7 @@
</div> </div>
</td> </td>
<td> <td>
<div class="uk-text-truncate uk-text-capitalize uk-text-italic uk-text-small uk-text-bold" [title]="item.name"> <div class="uk-width-large uk-text-truncate uk-text-capitalize uk-text-italic uk-text-small uk-text-bold" [title]="item.name">
{{item.name}} {{item.name}}
</div> </div>
</td> </td>

View File

@ -26,12 +26,12 @@ import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
</div> </div>
<h3>For {{openaireEntities.RESULTS | lowercase}}</h3> <h3>For {{openaireEntities.RESULTS | lowercase}}</h3>
<div class="uk-margin-bottom"> <div class="uk-margin-bottom">
For {{openaireEntities.RESULTS | lowercase}} ({{openaireEntities.PUBLICATIONS | lowercase}}, {{openaireEntities.DATASETS | lowercase}}, {{openaireEntities.SOFTWARE | lowercase}} and {{openaireEntities.OTHER | lowercase}}) you can use the Selective Access APIs by adding the funder parameter. For {{openaireEntities.RESULTS | lowercase}} ({{openaireEntities.PUBLICATIONS | lowercase}}, {{openaireEntities.DATASETS | lowercase}}, {{openaireEntities.SOFTWARE | lowercase}} and {{openaireEntities.OTHER | lowercase}}) you can use the Graph API by adding the funder parameter.
</div> </div>
<a class="uk-display-inline-block uk-button uk-button-text" <a class="uk-display-inline-block uk-button uk-button-text"
href="https://graph.openaire.eu/develop/api.html" target="_blank"> href="https://graph.openaire.eu/docs/apis/search-api/research-products" target="_blank">
<span class="uk-flex uk-flex-middle"> <span class="uk-flex uk-flex-middle">
<span>Selective Access APIs</span> <span>Graph API</span>
</span> </span>
</a> </a>
</div> </div>
@ -44,17 +44,17 @@ import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
</div> </div>
<h3>For {{openaireEntities.PROJECTS | lowercase}}</h3> <h3>For {{openaireEntities.PROJECTS | lowercase}}</h3>
<div class="uk-margin-bottom"> <div class="uk-margin-bottom">
For {{openaireEntities.PROJECTS | lowercase}} you can use the Selective Access APIs and the Bulk Access APIs. For {{openaireEntities.PROJECTS | lowercase}} you can use the Graph API and the Bulk Access APIs.
</div> </div>
<div class="uk-flex uk-flex-column uk-flex-center uk-flex-middle"> <div class="uk-flex uk-flex-column uk-flex-center uk-flex-middle">
<a class="uk-display-inline-block uk-button uk-button-text uk-margin-bottom" <a class="uk-display-inline-block uk-button uk-button-text uk-margin-bottom"
href="https://graph.openaire.eu/develop/api.html" target="_blank"> href="https://graph.openaire.eu/docs/apis/search-api/projects" target="_blank">
<span class="uk-flex uk-flex-middle"> <span class="uk-flex uk-flex-middle">
<span>Selective Access APIs</span> <span>Graph API</span>
</span> </span>
</a> </a>
<a class="uk-display-inline-block uk-button uk-button-text" <a class="uk-display-inline-block uk-button uk-button-text"
href="https://graph.openaire.eu/develop/bulk-projects.html" target="_blank"> href="https://graph.openaire.eu/docs/apis/dspace-eprints-api" target="_blank">
<span class="uk-flex uk-flex-middle"> <span class="uk-flex uk-flex-middle">
<span>Bulk Access APIs</span> <span>Bulk Access APIs</span>
</span> </span>

View File

@ -44,15 +44,18 @@
</div> </div>
</div> </div>
<div actions> <div actions>
<sidebar-mobile-toggle *ngIf="isMobile" [class.uk-margin-bottom]="!activeCategory || countSubCategoriesToShow(activeCategory) <= 1" class="uk-margin-top uk-display-block"></sidebar-mobile-toggle> <sidebar-mobile-toggle *ngIf="isMobile"
[class.uk-margin-bottom]="!activeCategory || countSubCategoriesToShow(activeCategory) <= 1"
class="uk-margin-top uk-display-block"></sidebar-mobile-toggle>
<div *ngIf="activeCategory && countSubCategoriesToShow(activeCategory) > 1" <div *ngIf="activeCategory && countSubCategoriesToShow(activeCategory) > 1"
[class.uk-margin-bottom]="isMobile" class="uk-margin-medium-top"> [class.uk-margin-bottom]="isMobile" class="uk-margin-medium-top">
<slider-tabs *ngIf="stakeholder && !loading && activeTopic" [border]="!isMobile" <slider-tabs *ngIf="stakeholder && !loading && activeTopic" [border]="!isMobile"
[tabsClass]="isMobile?'uk-subnav uk-subnav-pill-alt uk-text-small':'uk-tab'" [type]="'dynamic'"> [tabsClass]="isMobile?'uk-subnav uk-subnav-pill-alt uk-text-small':'uk-tab'"
[type]="'dynamic'">
<ng-template ngFor [ngForOf]="activeCategory.subCategories" let-subCategory> <ng-template ngFor [ngForOf]="activeCategory.subCategories" let-subCategory>
<slider-tab *ngIf="hasPermission(subCategory.visibility)" [tabTitle]="subCategory.name" <slider-tab *ngIf="hasPermission(subCategory.visibility)" [tabTitle]="subCategory.name"
[queryParams]="queryParams" customClass="uk-text-uppercase" [queryParams]="queryParams" customClass="uk-text-uppercase"
[routerLink]="['/', stakeholder.alias, activeTopic.alias, activeCategory.alias, subCategory.alias]" [routerLink]="[aliasPrefix, stakeholder.alias, activeTopic.alias, activeCategory.alias, subCategory.alias]"
[active]="subCategory.alias === activeSubCategory.alias"></slider-tab> [active]="subCategory.alias === activeSubCategory.alias"></slider-tab>
</ng-template> </ng-template>
</slider-tabs> </slider-tabs>
@ -76,9 +79,11 @@
(activeCategory && activeCategory.description && activeCategory.description.length > 0) || (activeCategory && activeCategory.description && activeCategory.description.length > 0) ||
(activeTopic && activeTopic.description && activeTopic.description.length > 0))" class="uk-text-center"> (activeTopic && activeTopic.description && activeTopic.description.length > 0))" class="uk-text-center">
<div class="uk-height-small uk-margin-large-top uk-margin-xlarge-right uk-margin-xlarge-left"> <div class="uk-height-small uk-margin-large-top uk-margin-xlarge-right uk-margin-xlarge-left">
{{activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description {{
activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description
: (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description : : (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description :
(activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}} (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))
}}
</div> </div>
</div> </div>
<ng-template [ngIf]="!loading && !privateStakeholder && <ng-template [ngIf]="!loading && !privateStakeholder &&
@ -93,14 +98,16 @@
</div> </div>
</ng-template> </ng-template>
<ng-template #content> <ng-template #content>
<div *ngIf="countSectionsWithIndicatorsToShow(activeSubCategory.numbers) > 0" class="uk-margin-medium-bottom"> <div *ngIf="countSectionsWithIndicatorsToShow(activeSubCategory.numbers) > 0"
class="uk-margin-medium-bottom">
<ng-container *ngFor="let number of activeSubCategory.numbers; let i = index;"> <ng-container *ngFor="let number of activeSubCategory.numbers; let i = index;">
<ng-container *ngIf="!isMobile && countIndicatorsToShow(number.indicators) > 0"> <ng-container *ngIf="!isMobile && countIndicatorsToShow(number.indicators) > 0">
<div class="uk-grid uk-grid-small uk-grid-match uk-margin-medium-bottom" uk-grid <div class="uk-grid uk-grid-small uk-grid-match uk-margin-medium-bottom" uk-grid
uk-height-match="target: .uk-card"> uk-height-match="target: .uk-card">
<h5 *ngIf="number.title" class="uk-width-1-1 uk-margin-bottom">{{ number.title }}</h5> <h5 *ngIf="number.title" class="uk-width-1-1 uk-margin-bottom">{{ number.title }}</h5>
<ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index"> <ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index">
<div *ngIf="hasPermission(indicator.visibility)" [ngClass]="getNumberClassBySize(indicator.width)"> <div *ngIf="hasPermission(indicator.visibility)"
[ngClass]="getNumberClassBySize(indicator.width)">
<div class="uk-card uk-card-default uk-padding-small number-card uk-position-relative" <div class="uk-card uk-card-default uk-padding-small number-card uk-position-relative"
[class.semiFiltered]="indicator.indicatorPaths[0].filtersApplied < countSelectedFilters()"> [class.semiFiltered]="indicator.indicatorPaths[0].filtersApplied < countSelectedFilters()">
<div *ngIf="!indicator.overlay"> <div *ngIf="!indicator.overlay">
@ -112,7 +119,8 @@
</div> </div>
<div *ngIf="indicator.description || indicator.additionalDescription" <div *ngIf="indicator.description || indicator.additionalDescription"
class="uk-position-top-right uk-text-center uk-margin-small-top uk-margin-small-right uk-visible@m"> class="uk-position-top-right uk-text-center uk-margin-small-top uk-margin-small-right uk-visible@m">
<a class="uk-display-inline-block uk-button uk-button-link" uk-tooltip="Note" <a class="uk-display-inline-block uk-button uk-button-link"
uk-tooltip="Note"
(click)="changeOverlay($event, indicator, 'description')"> (click)="changeOverlay($event, indicator, 'description')">
<span class="uk-flex uk-flex-middle"> <span class="uk-flex uk-flex-middle">
<icon name="analytics" type="outlined" [flex]="true"></icon> <icon name="analytics" type="outlined" [flex]="true"></icon>
@ -151,11 +159,13 @@
<div class="uk-card uk-card-default uk-padding-small number-card"> <div class="uk-card uk-card-default uk-padding-small number-card">
<div class="uk-grid uk-grid-small uk-child-width-1-1" uk-grid> <div class="uk-grid uk-grid-small uk-child-width-1-1" uk-grid>
<ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index"> <ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index">
<div *ngIf="hasPermission(indicator.visibility)" [ngClass]="getNumberClassBySize(indicator.width)"> <div *ngIf="hasPermission(indicator.visibility)"
[ngClass]="getNumberClassBySize(indicator.width)">
<div [class.semiFiltered]="indicator.indicatorPaths[0].filtersApplied < countSelectedFilters()"> <div [class.semiFiltered]="indicator.indicatorPaths[0].filtersApplied < countSelectedFilters()">
<div *ngIf="!indicator.overlay"> <div *ngIf="!indicator.overlay">
<div <div
class="uk-text-xsmall uk-text-truncate uk-margin-xsmall-bottom uk-margin-right">{{indicator.name}}</div> class="uk-text-xsmall uk-text-truncate uk-margin-xsmall-bottom uk-margin-right">{{ indicator.name }}
</div>
<div class="number uk-text-small uk-text-bold"> <div class="number uk-text-small uk-text-bold">
<span *ngIf="numberResults.get(i + '-' + j + '-' + 0)" <span *ngIf="numberResults.get(i + '-' + j + '-' + 0)"
[innerHTML]="(indicator.indicatorPaths[0].format == 'NUMBER'?(numberResults.get(i + '-' + j + '-' + 0) | numberRound: 2:1:stakeholder.locale):(numberResults.get(i + '-' + j + '-' + 0) | numberPercentage: stakeholder.locale))"></span> [innerHTML]="(indicator.indicatorPaths[0].format == 'NUMBER'?(numberResults.get(i + '-' + j + '-' + 0) | numberRound: 2:1:stakeholder.locale):(numberResults.get(i + '-' + j + '-' + 0) | numberPercentage: stakeholder.locale))"></span>
@ -172,57 +182,70 @@
</div> </div>
<ng-container *ngFor="let chart of activeSubCategory.charts; let i = index;"> <ng-container *ngFor="let chart of activeSubCategory.charts; let i = index;">
<div *ngIf="countIndicatorsToShow(chart.indicators) > 0" <div *ngIf="countIndicatorsToShow(chart.indicators) > 0"
class="uk-grid uk-grid-small uk-grid-match uk-margin-medium-bottom uk-flex uk-flex-middle" uk-grid class="uk-grid uk-grid-small uk-grid-match uk-margin-medium-bottom uk-flex uk-flex-middle"
uk-grid
uk-height-match="target: .uk-card"> uk-height-match="target: .uk-card">
<h5 *ngIf="chart.title && !isMobile" class="uk-width-1-1 uk-margin-bottom">{{chart.title}}</h5> <h5 *ngIf="chart.title && !isMobile"
class="uk-width-1-1 uk-margin-bottom">{{ chart.title }}</h5>
<h6 *ngIf="chart.title && isMobile" class="uk-width-1-1">{{ chart.title }}</h6> <h6 *ngIf="chart.title && isMobile" class="uk-width-1-1">{{ chart.title }}</h6>
<ng-template ngFor [ngForOf]="chart.indicators" let-indicator let-j="index"> <ng-container *ngFor="let indicator of chart.indicators; let j=index">
<div *ngIf="hasPermission(indicator.visibility)" <div *ngIf="hasPermission(indicator.visibility)"
[ngClass]="getChartClassBySize(indicator.width)"> [ngClass]="getChartClassBySize(indicator.width)">
<div class="uk-card uk-card-default uk-position-relative" <div class="uk-card uk-card-default uk-position-relative"
[class.semiFiltered]="getActiveIndicatorPath(indicator).filtersApplied < countSelectedFilters()"> [class.semiFiltered]="getActiveIndicatorPath(indicator).filtersApplied < countSelectedFilters()">
<div class="uk-card-body uk-margin-small-bottom"> <div class="uk-card-body uk-margin-small-bottom">
<!-- Main content-->
<div>
<h6 class="uk-margin-bottom chartTitle uk-flex uk-flex-bottom"> <h6 class="uk-margin-bottom chartTitle uk-flex uk-flex-bottom">
{{ indicator.name + " " }} {{ indicator.name + " " }}
</h6> </h6>
<iframe [class.uk-blend-multiply]="!isFullscreen" <iframe [class.uk-blend-multiply]="!isFullscreen"
*ngIf=" !properties.disableFrameLoad && getActiveIndicatorPath(indicator).source !== 'image'" *ngIf=" !properties.disableFrameLoad && getActiveIndicatorPath(indicator).source !== 'image'"
[src]="getActiveIndicatorPath(indicator).safeResourceUrl" [src]="getActiveIndicatorPath(indicator).safeResourceUrl"
class="uk-width-1-1" allowfullscreen="true" mozallowfullscreen="true" class="uk-width-1-1" allowfullscreen="true"
mozallowfullscreen="true"
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"></iframe> [ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"></iframe>
<div *ngIf="properties.disableFrameLoad && getActiveIndicatorPath(indicator).source !== 'image'"> <div *ngIf="properties.disableFrameLoad && getActiveIndicatorPath(indicator)?.source !=='image'">
<img class="uk-width-1-1 uk-blend-multiply" <img class="uk-width-1-1 uk-blend-multiply"
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')" [ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"
src="assets/chart-placeholder.png"> src="assets/chart-placeholder.png">
</div> </div>
<img *ngIf="getActiveIndicatorPath(indicator).source === 'image'" <img *ngIf="getActiveIndicatorPath(indicator).source === 'image'"
[src]="getActiveIndicatorPath(indicator).safeResourceUrl" [src]="getActiveIndicatorPath(indicator).url"
class="uk-width-1-1 uk-blend-multiply" class="uk-width-1-1 uk-blend-multiply"
[ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"> [ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')">
<slider-tabs *ngIf="indicator.indicatorPaths.length > 1" [type]="'dynamic'" [flexPosition]="'right'" (activeEmitter)="indicator.activePath = $event" </div>
tabsClass="uk-subnav uk-subnav-pill uk-subnav-small" containerClass="uk-margin-top uk-margin-bottom" [border]="false"> <!-- Tabs -->
<slider-tab *ngFor="let indicatorPath of indicator.indicatorPaths; let i=index" <slider-tabs [type]="'dynamic'" [flexPosition]="'right'"
(activeEmitter)="indicator.activePath = $event"
tabsClass="uk-subnav uk-subnav-pill uk-subnav-small"
containerClass="uk-margin-top uk-margin-bottom" [border]="false">
<slider-tab
*ngFor="let indicatorPath of indicator.indicatorPaths; let i=index"
[tabTitle]="indicatorPath.parameters.tab ? indicatorPath.parameters.tab : indicatorPath.parameters.title" [tabTitle]="indicatorPath.parameters.tab ? indicatorPath.parameters.tab : indicatorPath.parameters.title"
[tabId]="i" [active]="(!indicator.activePath && i == 0) || indicator.activePath == i"> [invisible]="indicator.indicatorPaths.length < 2"
[tabId]="i" [active]="getActivePathIndex(indicator) == i">
</slider-tab> </slider-tab>
</slider-tabs> </slider-tabs>
</div>
<div class="uk-position-bottom-left uk-margin-left uk-margin-small-bottom uk-visible@m"> <div class="uk-position-bottom-left uk-margin-left uk-margin-small-bottom uk-visible@m">
<a *ngIf="indicator.description || indicator.additionalDescription" <a *ngIf="indicator.description || indicator.additionalDescription"
class="uk-display-inline-block uk-button uk-button-text" class="uk-display-inline-block uk-button uk-button-link"
(click)="changeOverlay($event, indicator, 'description')"> (click)="changeOverlay($event, indicator, 'description')">
<span class="uk-flex uk-flex-middle"> <span class="uk-flex uk-flex-middle">
<icon name="analytics" type="outlined" [flex]="true"></icon> <icon name="analytics" type="outlined" [flex]="true"></icon>
<span class="uk-margin-small-left">Note</span> <span class="uk-margin-xsmall-left">Note</span>
</span> </span>
</a> </a>
</div> </div>
<div *ngIf="indicator.overlay" class="indicator-overlay uk-card uk-card-default uk-flex uk-flex-middle uk-flex-center"> <div *ngIf="indicator.overlay"
<div *ngIf="indicator.overlay == 'description'" class="inner" click-outside-or-esc class="indicator-overlay uk-card uk-card-default uk-flex uk-flex-middle uk-flex-center">
<div *ngIf="indicator.overlay == 'description'" class="inner"
click-outside-or-esc
(clickOutside)="closeOverlay($event, indicator)"> (clickOutside)="closeOverlay($event, indicator)">
<div class="uk-padding-small"> <div class="uk-padding-small">
<div class="uk-flex uk-flex-right"> <div class="uk-flex uk-flex-right">
<button class="uk-close uk-icon" (click)="changeOverlay($event, indicator, false)"> <button class="uk-close uk-icon"
(click)="changeOverlay($event, indicator, false)">
<icon name="close" ratio="1"></icon> <icon name="close" ratio="1"></icon>
</button> </button>
</div> </div>
@ -239,8 +262,9 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="printGap uk-hidden"></div> <div class="printGap uk-hidden"></div>
</ng-template> </ng-container>
</div> </div>
</ng-container> </ng-container>
</ng-template> </ng-template>
@ -250,12 +274,14 @@
<ng-container *ngTemplateOutlet="graph_and_feedback_template"></ng-container> <ng-container *ngTemplateOutlet="graph_and_feedback_template"></ng-container>
</div> </div>
<ng-template #graph_and_feedback_template> <ng-template #graph_and_feedback_template>
<div *ngIf="!view" class="uk-margin-small-top uk-margin-small-bottom uk-grid uk-grid-small uk-text-small hideInfo" <div *ngIf="!view"
class="uk-margin-small-top uk-margin-small-bottom uk-grid uk-grid-small uk-text-small hideInfo"
uk-grid> uk-grid>
<!-- Last Stats Date--> <!-- Last Stats Date-->
<div class="uk-width-expand@m uk-width-1-1"> <div class="uk-width-expand@m uk-width-1-1">
<a href="https://graph.openaire.eu" target="_blank" class="uk-width-1-1 uk-width-auto@m"> <a href="https://graph.openaire.eu" target="_blank" class="uk-width-1-1 uk-width-auto@m">
<img src="assets/common-assets/openaire-badge-1.png" alt="Powered by OpenAIRE graph" style="height: 16px;"> <img src="assets/common-assets/openaire-badge-1.png" alt="Powered by OpenAIRE graph"
style="height: 16px;">
</a> </a>
<span *ngIf="statsUpdateDate" class="uk-text-baseline uk-text-meta"> <span *ngIf="statsUpdateDate" class="uk-text-baseline uk-text-meta">
<span class="uk-margin-xsmall-left uk-margin-xsmall-right">-</span> <span class="uk-margin-xsmall-left uk-margin-xsmall-right">-</span>
@ -290,10 +316,12 @@
<div> <div>
<div class="uk-flex uk-flex-middle uk-margin-bottom"> <div class="uk-flex uk-flex-middle uk-margin-bottom">
<h4 class="uk-margin-remove-bottom">Filters</h4> <h4 class="uk-margin-remove-bottom">Filters</h4>
<a *ngIf="countSelectedFilters() > 1" class="uk-text-small uk-margin-left" (click)="clearAll()"> Clear All </a> <a *ngIf="countSelectedFilters() > 1" class="uk-text-small uk-margin-left" (click)="clearAll()"> Clear
All </a>
</div> </div>
<ng-container *ngTemplateOutlet="selected_filters_pills"></ng-container> <ng-container *ngTemplateOutlet="selected_filters_pills"></ng-container>
<div *ngIf="!user" class="uk-margin-top"><a class="uk-link" (click)="logIn()"> Sign in</a> to apply filters.</div> <div *ngIf="!user" class="uk-margin-top"><a class="uk-link" (click)="logIn()"> Sign in</a> to apply filters.
</div>
<ul *ngIf="user" class="uk-list uk-list-xlarge uk-list-divider uk-margin-top"> <ul *ngIf="user" class="uk-list uk-list-xlarge uk-list-divider uk-margin-top">
<li> <li>
<range-filter #rangeFilter [filter]="periodFilter" [yearMin]="minYear" [yearMax]="maxYear" <range-filter #rangeFilter [filter]="periodFilter" [yearMin]="minYear" [yearMax]="maxYear"

@ -1 +1 @@
Subproject commit 4396999ce03bb96543f258f64e64459546b86e19 Subproject commit 2b8725e1fbe954bbde4f75baee710f4cc7029255

View File

@ -8,7 +8,7 @@
<ul class="uk-tab uk-margin-remove-bottom uk-margin-medium-top"> <ul class="uk-tab uk-margin-remove-bottom uk-margin-medium-top">
<li [class.uk-active]="tab === 'manager'"><a routerLink="../manager">Managers</a></li> <li [class.uk-active]="tab === 'manager'"><a routerLink="../manager">Managers</a></li>
<li [class.uk-active]="tab === 'member'"><a routerLink="../member">Members</a></li> <li [class.uk-active]="tab === 'member'"><a routerLink="../member">Members</a></li>
<li *ngIf="properties.environment != 'production'" ><a routerLink="../links">Links</a></li> <li *ngIf="stakeholder.type == 'organization' && properties.environment != 'production'" ><a routerLink="../links">Links</a></li>
</ul> </ul>
</role-users> </role-users>

@ -1 +1 @@
Subproject commit 5026b8b38fcae493ec7bcdc272bf167798c18fa3 Subproject commit a4d8923b82a59ac1cc41e9c0574f1d64a61c0c1b

@ -1 +1 @@
Subproject commit 6524ee362c8fc8fa6e482144920e305198e54fc8 Subproject commit 55765bf0829910661a55337e0e7ca7b1262b7298

View File

@ -3,6 +3,7 @@ import {common, commonBeta} from "../app/openaireLibrary/utils/properties/enviro
let props: EnvProperties = { let props: EnvProperties = {
dashboard: 'monitor', dashboard: 'monitor',
adminToolsPortalType: "monitor",
isDashboard: true, isDashboard: true,
enablePiwikTrack: true, enablePiwikTrack: true,
monitorStatsFrameUrl:"https://beta.services.openaire.eu/stats-tool/", monitorStatsFrameUrl:"https://beta.services.openaire.eu/stats-tool/",

View File

@ -3,6 +3,7 @@ import {common, commonProd} from "../app/openaireLibrary/utils/properties/enviro
let props: EnvProperties = { let props: EnvProperties = {
dashboard: 'monitor', dashboard: 'monitor',
adminToolsPortalType: "monitor",
isDashboard: true, isDashboard: true,
enablePiwikTrack: true, enablePiwikTrack: true,
monitorStatsFrameUrl: "https://services.openaire.eu/stats-tool/", monitorStatsFrameUrl: "https://services.openaire.eu/stats-tool/",