Revision 56465
Added by Argiro Kokogiannaki almost 5 years ago
modules/uoa-services-library/branches/newlinking/ng-openaire-library/src/app/connect/connectHelper.ts | ||
---|---|---|
3 | 3 |
export class ConnectHelper { |
4 | 4 |
|
5 | 5 |
public static getCommunityFromDomain(domain: string): string{ |
6 |
// domain = "beta.egi.openaire.eu"; //for testing
|
|
6 |
// domain = "beta.egi.openaire.eu"; //for testing
|
|
7 | 7 |
if (domain.indexOf('openaire.eu') === -1) { |
8 | 8 |
return null; |
9 | 9 |
} |
... | ... | |
15 | 15 |
} else { |
16 | 16 |
domain = domain.substr(0, domain.indexOf('.')); |
17 | 17 |
} |
18 |
if (domain === 'connect' || domain === 'explore' || domain === 'monitor'){ |
|
18 |
if (domain === 'connect' || domain === 'explore' || domain === 'monitor' || domain === 'admin'){
|
|
19 | 19 |
return null; |
20 | 20 |
} |
21 | 21 |
return domain; |
modules/uoa-services-library/branches/newlinking/ng-openaire-library/src/app/sharedComponents/other-portals/other-portals.component.html | ||
---|---|---|
1 |
<div uk-grid="" class="uk-grid uk-margin-large-top uk-margin-large-bottom"> |
|
2 |
<div *ngIf="portal !== 'explore'" class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match uk-first-column explore"> |
|
3 |
<div class="uk-margin uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style=""> |
|
4 |
<h4 class="el-title uk-margin uk-h4"> |
|
5 |
Researcher? |
|
6 |
</h4> |
|
7 |
<div class="el-content uk-margin"> |
|
8 |
Explore all OA research results. Link all your research. Build your profile |
|
9 |
</div> |
|
10 |
<p> |
|
11 |
<a target="_blank" [href]="'https://'+(properties.environment =='beta' || properties.environment =='development'?'beta.':'')+'explore.openaire.eu'" class="el-link uk-button uk-button-default"> |
|
12 |
OpenAIRE | EXPLORE |
|
13 |
</a> |
|
14 |
</p> |
|
15 |
</div> |
|
16 |
</div> |
|
17 |
<div class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match uk-first-column provide"> |
|
18 |
<div class="uk-margin uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style=""> |
|
19 |
<h4 class="el-title uk-margin uk-h4"> |
|
20 |
Content provider? |
|
21 |
</h4> |
|
22 |
<div class="el-content uk-margin"> |
|
23 |
Join OpenAIRE, use our tools and make your content more visible around the world. |
|
24 |
</div> |
|
25 |
<p> |
|
26 |
<a target="_blank" [href]="'https://'+(properties.environment =='beta' || properties.environment =='development'?'beta.':'')+'provide.openaire.eu'" class="el-link uk-button uk-button-default"> |
|
27 |
OpenAIRE | PROVIDE |
|
28 |
</a> |
|
29 |
</p> |
|
30 |
</div> |
|
31 |
</div> |
|
32 |
<div *ngIf="portal !== 'connect'" class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match connect"> |
|
33 |
<div class="uk-margin uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style=""> |
|
34 |
<h4 class="el-title uk-margin uk-h4"> |
|
35 |
Research community? |
|
36 |
</h4> |
|
37 |
<div class="el-content uk-margin"> |
|
38 |
Use a trusted partner to share, link, disseminate and monitor your research. |
|
39 |
</div> |
|
40 |
<p> |
|
41 |
<a target="_blank" [href]="'https://'+(properties.environment =='beta'?'beta.':'')+'connect.openaire.eu'" |
|
42 |
class="el-link uk-button uk-button-default"> |
|
43 |
OpenAIRE | CONNECT |
|
44 |
</a> |
|
45 |
</p> |
|
46 |
</div> |
|
47 |
</div> |
|
48 |
<div *ngIf="portal !== 'monitor'" class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match monitor"> |
|
49 |
<div class="uk-margin uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style=""> |
|
50 |
<h4 class="el-title uk-margin uk-h4"> |
|
51 |
Research manager? |
|
52 |
</h4> |
|
53 |
<div class="el-content uk-margin"> |
|
54 |
Use our monitoring services and easily track all relevant research results. |
|
55 |
</div> |
|
56 |
<p> |
|
57 |
<a target="_blank" [href]="'https://'+(properties.environment =='beta' || properties.environment =='development'?'beta.openaire.eu/moniotr':'monitor.openaire.eu')" class="el-link uk-button uk-button-default"> |
|
58 |
OpenAIRE | MONITOR |
|
59 |
</a> |
|
60 |
</p> |
|
61 |
</div> |
|
62 |
</div> |
|
63 |
<div class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match develop"> |
|
64 |
<div class="uk-margin uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style=""> |
|
65 |
<h4 class="el-title uk-margin uk-h4"> |
|
66 |
Developer? |
|
67 |
</h4> |
|
68 |
<div class="el-content uk-margin"> |
|
69 |
Get access to OpenAIRE data and capitalize on on Europe's open linked research |
|
70 |
</div> |
|
71 |
<p> |
|
72 |
<a target="_blank" href="https://develop.openaire.eu" class="el-link uk-button uk-button-default"> |
|
73 |
OpenAIRE | DEVELOP |
|
74 |
</a> |
|
75 |
</p> |
|
76 |
</div> |
|
77 |
</div> |
|
78 |
</div> |
modules/uoa-services-library/branches/newlinking/ng-openaire-library/src/app/sharedComponents/other-portals/other-portals.component.ts | ||
---|---|---|
1 |
import {Component, Input} from '@angular/core'; |
|
2 |
import {EnvProperties} from "../../utils/properties/env-properties"; |
|
3 |
|
|
4 |
@Component({ |
|
5 |
selector: 'other-portals', |
|
6 |
templateUrl: 'other-portals.component.html' |
|
7 |
}) |
|
8 |
export class OtherPortalsComponent { |
|
9 |
@Input() portal = 'connect'; |
|
10 |
@Input() properties: EnvProperties = null; |
|
11 |
|
|
12 |
constructor() {} |
|
13 |
} |
modules/uoa-services-library/branches/newlinking/ng-openaire-library/src/app/sharedComponents/other-portals/other-portals.module.ts | ||
---|---|---|
1 |
import {NgModule} from '@angular/core'; |
|
2 |
import {CommonModule} from '@angular/common'; |
|
3 |
|
|
4 |
import {RouterModule} from "@angular/router"; |
|
5 |
|
|
6 |
import {OtherPortalsComponent} from './other-portals.component'; |
|
7 |
|
|
8 |
@NgModule({ |
|
9 |
imports: [ |
|
10 |
CommonModule, |
|
11 |
RouterModule |
|
12 |
], |
|
13 |
declarations: [ |
|
14 |
OtherPortalsComponent |
|
15 |
], |
|
16 |
providers: [], |
|
17 |
exports: [ |
|
18 |
OtherPortalsComponent |
|
19 |
] |
|
20 |
}) |
|
21 |
export class OtherPortalsModule { |
|
22 |
} |
modules/uoa-services-library/branches/newlinking/ng-openaire-library/src/app/sharedComponents/sidebar/sideBar.component.html | ||
---|---|---|
1 |
<ul class="uk-nav uk-nav-default sidebar"> |
|
2 |
<li class="uk-nav-header uk-parent" *ngFor="let menu of menuItems">
|
|
1 |
<ul class="uk-nav uk-nav-default sidebar uk-overflow-auto" style="max-height: 85vh">
|
|
2 |
<li class="uk-nav-header" *ngFor="let menu of menuItems"> |
|
3 | 3 |
<a *ngIf="menu.rootItem.route && menu.rootItem.route != ''" |
4 |
[routerLink]="menu.rootItem.route" routerLinkActive="active" [queryParams]=menu.rootItem.params>
|
|
4 |
[routerLink]="menu.rootItem.route" routerLinkActive="uk-link" [routerLinkActiveOptions]="{ exact: true }" [queryParams]=menu.rootItem.params>
|
|
5 | 5 |
<span><span class="uk-margin-small-right uk-icon" [attr.uk-icon]=menu.ukIcon></span> {{menu.rootItem.title}}</span> |
6 | 6 |
</a> |
7 | 7 |
<a *ngIf="(!menu.rootItem.route || menu.rootItem.route == '') && (menu.rootItem.url && menu.rootItem.url != '')" |
8 |
[href]="menu.rootItem.url" routerLinkActive="active" target="_blank">
|
|
8 |
[href]="menu.rootItem.url" routerLinkActive="uk-link" [routerLinkActiveOptions]="{ exact: true }" target="_blank">
|
|
9 | 9 |
<span><span class="uk-margin-small-right uk-icon" [attr.uk-icon]=menu.ukIcon></span> {{menu.rootItem.title}}</span> |
10 | 10 |
</a> |
11 | 11 |
<span *ngIf="!menu.rootItem.route || menu.rootItem.route == ''"><span class="uk-margin-small-right uk-icon" [attr.uk-icon]=menu.ukIcon></span> {{menu.rootItem.title}}</span> |
12 | 12 |
<ul *ngIf="menu.items.length > 0" class="uk-nav-sub"> |
13 | 13 |
<li *ngFor="let item of menu.items"> |
14 |
<a *ngIf="item.rootItem.route && item.rootItem.route != ''" [routerLink]="item.rootItem.route" routerLinkActive="active" [queryParams]=item.rootItem.params>
|
|
14 |
<a *ngIf="item.rootItem.route && item.rootItem.route != ''" [routerLink]="item.rootItem.route" routerLinkActive="uk-link" [routerLinkActiveOptions]="{ exact: true }" [queryParams]=item.rootItem.params>
|
|
15 | 15 |
<span>{{item.rootItem.title}}</span> |
16 | 16 |
</a> |
17 | 17 |
<a *ngIf="(!item.rootItem.route || item.rootItem.route == '') && (item.rootItem.url && item.rootItem.url != '')" |
18 |
[href]="item.rootItem.url" routerLinkActive="active" target="_blank">
|
|
18 |
[href]="item.rootItem.url" [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="uk-link" target="_blank">
|
|
19 | 19 |
<span>{{item.rootItem.title}}</span> |
20 | 20 |
</a> |
21 | 21 |
<ul *ngIf="item.items.length > 0" class="uk-nav-sub"> |
22 | 22 |
<li *ngFor="let subItem of item.items"> |
23 |
<a *ngIf="subItem.route && subItem.route != ''" [routerLink]="subItem.route" routerLinkActive="active" [queryParams]=subItem.params>
|
|
23 |
<a *ngIf="subItem.route && subItem.route != ''" [routerLink]="subItem.route" [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="uk-link" [queryParams]=subItem.params>
|
|
24 | 24 |
<span>{{subItem.title}}</span> |
25 | 25 |
</a> |
26 | 26 |
<a *ngIf="(!subItem.route || subItem.route == '') && (subItem.url && subItem.url != '')" |
27 |
[href]="subItem.url" routerLinkActive="active" target="_blank">
|
|
27 |
[href]="subItem.url" [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="uk-link" target="_blank">
|
|
28 | 28 |
<span>{{subItem.title}}</span> |
29 | 29 |
</a> |
30 | 30 |
<span *ngIf="!subItem.route || subItem.route == ''">{{subItem.title}}</span> |
Also available in: Unified diff
[Library|newlinking]
Merge trunk to branch Merge to 56353:56460