[Trunk | Monitor Dashboard]: app.component:
1. app.component.ts: Added in link for "Search research outcomes" (specialSideBarMenuItem), parameter for "Open Access". 2. app.component.html: In <dashboard-sidebar> set queryParamsHandling to "merge" (instead of "preserve") - keep filters/params (among topics & search) and add new filters/params when needed (in search). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@61050 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
43a502c474
commit
b348613eab
|
@ -13,7 +13,7 @@
|
|||
[specialMenuItem]="specialSideBarMenuItem"
|
||||
[searchParams]="{}"
|
||||
[headerUrl]="'https://' + (properties.environment == 'beta' ? 'beta.' : '') +
|
||||
'monitor.openaire.eu'" queryParamsHandling="preserve"
|
||||
'monitor.openaire.eu'" queryParamsHandling="merge"
|
||||
></dashboard-sidebar>
|
||||
<dashboard-sidebar *ngIf="hasAdminMenu" [items]="adminMenuItems" logoLabel="Admin"
|
||||
[headerUrl]="'https://' + (properties.environment == 'beta' ? 'beta.' : '') +
|
||||
|
|
|
@ -330,7 +330,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
});
|
||||
}
|
||||
if (this.isPublicOrIsMember(this.stakeholder.visibility)) {
|
||||
this.specialSideBarMenuItem = new MenuItem("search", "Search research outcomes", "", this.properties.searchLinkToResults, false, [], null, {});
|
||||
this.specialSideBarMenuItem = new MenuItem("search", "Search research outcomes", "", this.properties.searchLinkToResults, false, [], null, {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'});
|
||||
this.specialSideBarMenuItem.icon = '<span uk-icon="search"></span>';
|
||||
} else {
|
||||
this.specialSideBarMenuItem = null;
|
||||
|
|
Loading…
Reference in New Issue