[Connect|Trunk]
App: rename some routes for my communites menu disable marking as active Community page center tab layout correct tab content issues git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56201 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
e26bd47464
commit
0e88eb1c8a
|
@ -8,8 +8,8 @@ import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: '', loadChildren: './communitywrapper/communityWrapper.module#CommunityWrapperModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
{ path: '', loadChildren: './communitywrapper/communityWrapper.module#CommunityWrapperModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
||||||
{ path: 'learn-how', loadChildren: './learn-how/learn-how.module#LearnHowModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
{ path: 'about', loadChildren: './learn-how/learn-how.module#LearnHowModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
||||||
{ path: 'contact', loadChildren: './contact/contact.module#ContactModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
{ path: 'contact-us', loadChildren: './contact/contact.module#ContactModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
||||||
{ path: 'invite', loadChildren: './utils/subscribe/invite/invite.module#InviteModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
{ path: 'invite', loadChildren: './utils/subscribe/invite/invite.module#InviteModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
||||||
{ path: 'about', loadChildren: './htmlPages/about/aboutPage.module#AboutPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
{ path: 'about', loadChildren: './htmlPages/about/aboutPage.module#AboutPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
||||||
{ path: 'content', loadChildren: './content/contentPage.module#ContentPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
{ path: 'content', loadChildren: './content/contentPage.module#ContentPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }},
|
||||||
|
|
|
@ -21,9 +21,9 @@ import {HelperFunctions} from "./openaireLibrary/utils/HelperFunctions.class";
|
||||||
template: `
|
template: `
|
||||||
<div [class]="(community)?(community.id +'App'):'connectApp'" >
|
<div [class]="(community)?(community.id +'App'):'connectApp'" >
|
||||||
<navbar *ngIf= "properties && showMenu && !community" portal="connect" [onlyTop]=false [userMenuItems]=userMenuItems [menuItems]=menuItems
|
<navbar *ngIf= "properties && showMenu && !community" portal="connect" [onlyTop]=false [userMenuItems]=userMenuItems [menuItems]=menuItems
|
||||||
[showMenu]=showMenu [properties]="properties"></navbar>
|
[showMenu]=showMenu [properties]="properties" [showHomeMenuItem]="true"></navbar>
|
||||||
<navbar *ngIf= "properties && showMenu && community" portal="connect" [onlyTop]=false [communityId]="community.id" [userMenuItems]=userMenuItems [menuItems]=menuItems
|
<navbar *ngIf= "properties && showMenu && community" portal="connect" [onlyTop]=false [communityId]="community.id" [userMenuItems]=userMenuItems [menuItems]=menuItems
|
||||||
[community]=community [showMenu]=showMenu [properties]="properties" [enableSearch]="true"></navbar>
|
[community]=community [showMenu]=showMenu [properties]="properties" [enableSearch]="true" [showHomeMenuItem]="true"></navbar>
|
||||||
|
|
||||||
<div class="custom-main-content" >
|
<div class="custom-main-content" >
|
||||||
<main>
|
<main>
|
||||||
|
@ -86,153 +86,7 @@ export class AppComponent {
|
||||||
communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain);
|
communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain);
|
||||||
this.buildMenu(communityId);
|
this.buildMenu(communityId);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
this.route.queryParams.subscribe(data => {
|
|
||||||
var community = null;
|
|
||||||
this.community = null;
|
|
||||||
this.showMenu = false;
|
|
||||||
this._communitiesService.getCommunities(this.properties, this.properties.communitiesAPI).subscribe (
|
|
||||||
communities => {
|
|
||||||
|
|
||||||
for(var com of communities){
|
|
||||||
if( (
|
|
||||||
((data['communityId'] && data['communityId']!="" && com.communityId == data['communityId'])
|
|
||||||
|| (ConnectHelper.getCommunityFromDomain(this.properties.domain) == com.communityId ))
|
|
||||||
&& community !=null) ||
|
|
||||||
(
|
|
||||||
!((data['communityId'] && data['communityId']!="" && com.communityId == data['communityId'])
|
|
||||||
|| (ConnectHelper.getCommunityFromDomain(this.properties.domain) == com.communityId ))
|
|
||||||
&&
|
|
||||||
this.managerOfCommunities && this.subscriberOfCommunities)){
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if(Session.isLoggedIn() && com['status'] != "hidden"){
|
|
||||||
if(Session.isCommunityCurator() || Session.isPortalAdministrator()){
|
|
||||||
this.managerOfCommunities = true;
|
|
||||||
}else if(com.managers.indexOf(Session.getUserEmail())!=-1){
|
|
||||||
this.managerOfCommunities = true;
|
|
||||||
}
|
|
||||||
// else if(!this.subscriberOfCommunities){
|
|
||||||
// // check if subscriber
|
|
||||||
// this._subscribeService.isSubscribedToCommunity(com.communityId, Session.getUserEmail(), this.properties.adminToolsAPIURL).subscribe (
|
|
||||||
// isSubscriber => {
|
|
||||||
// if(isSubscriber) {
|
|
||||||
// this.subscriberOfCommunities = true;
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// error => {
|
|
||||||
// console.error("Error fetching your subscribed communities")
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if((data['communityId'] && data['communityId']!="" && com.communityId == data['communityId'])
|
|
||||||
|| (ConnectHelper.getCommunityFromDomain(this.properties.domain) == com.communityId ) ){
|
|
||||||
community = com;
|
|
||||||
// this._layoutService.getLayout(com.communityId,
|
|
||||||
// this.properties.adminToolsAPIURL + '/').subscribe (
|
|
||||||
// layout => {
|
|
||||||
// this.layout = layout;
|
|
||||||
// document.documentElement.style.setProperty('--portal-main-color', this.layout.color);
|
|
||||||
// }
|
|
||||||
// );
|
|
||||||
this.community = {id: community.communityId, name: (community.shortTitle)?community.shortTitle:community.title, logoUrl:community.logoUrl};
|
|
||||||
this.menuItems= [
|
|
||||||
{rootItem: new MenuItem("search","Search","","/search/find",false,[],["/search/find", "/search/find/publications", "/search/find/datasets", "/search/find/software", "/search/find/other", "/search/find/projects", "/search/find/dataproviders"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
items: [new MenuItem("","Publications","","/search/find/publications",false,["publication"],["/search/find/publications"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Research Data","","/search/find/datasets",false,["dataset"],["/search/find/datasets"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Software","","/search/find/software",false,["software"],["/search/find/software"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Other Research Products","","/search/find/other",false,["orp"],["/search/find/other"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Projects","","/search/find/projects/",false,["project"],["/search/find/projects"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Content Providers","","/search/find/dataproviders",false,["datasource"],["/search/find/dataproviders"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
]},
|
|
||||||
{
|
|
||||||
rootItem: new MenuItem("monitor","Monitor","","/monitor",false,[],["/monitor"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
items: []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rootItem: new MenuItem("share","Share","","",false,[],["/participate/deposit-publications","/participate/deposit-datasets","/participate/share-zenodo"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
items: [
|
|
||||||
new MenuItem("","Zenodo Communities","","/participate/share-zenodo",false,[],["/participate/share-zenodo"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Publications","","/participate/deposit-publications",false,["publication"],["/participate/deposit-publications"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Research Data","","/participate/deposit-datasets",false,["dataset"],["/participate/deposit-datasets"],this.properties.environment!="development"?{}:{communityId:community.communityId})]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rootItem: new MenuItem("link","Link","","/participate/claim",false,[],["/participate/claim"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
items: []
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
if(community == null){
|
|
||||||
this.menuItems= [];
|
|
||||||
var myCommunities = [];
|
|
||||||
if(this.managerOfCommunities){
|
|
||||||
myCommunities.push( new MenuItem("","Managing communities","","/search/find/communities",false,[],[],{role:"%22manager%22"}))
|
|
||||||
}
|
|
||||||
if(Session.isLoggedIn()){
|
|
||||||
this._subscribeService.getCommunitiesSubscribedTo(Session.getUserEmail(), this.properties.adminToolsAPIURL).subscribe (
|
|
||||||
pids => {
|
|
||||||
if(pids.length > 0 ) {
|
|
||||||
myCommunities.push( new MenuItem("","Subscribed to communities","","/search/find/communities",false,[],[],{status:"%22subscribed%22"}))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error => {
|
|
||||||
console.error("Error fetching your subscribed communities")
|
|
||||||
});
|
|
||||||
}
|
|
||||||
// if(this.subscriberOfCommunities){
|
|
||||||
// myCommunities.push( new MenuItem("","Subscribed to communities","","/search/find/communities",false,[],[],{status:"%22subscribed%22"}))
|
|
||||||
// }
|
|
||||||
|
|
||||||
this.menuItems.push({rootItem: new MenuItem("communities","Communities","","/search/find/communities",false,[],null,{}), items: []});
|
|
||||||
if(this.managerOfCommunities || this.subscriberOfCommunities){
|
|
||||||
this.menuItems.push({rootItem: new MenuItem("myCommunities","My Communities","","",false,[],[],{}), items: myCommunities});
|
|
||||||
}
|
|
||||||
this.menuItems.push({rootItem: new MenuItem("howto","Create Community","","/how-to-create-community",false,[],null,{}), items: []});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.bottomMenuItems =[
|
|
||||||
new MenuItem("","About","https://beta.openaire.eu/project-factsheets","",false,[],[],{}),
|
|
||||||
new MenuItem("","News - Events","https://beta.openaire.eu/news-events","",false,[],[],{}),
|
|
||||||
new MenuItem("","Blog","https://blogs.openaire.eu/","",false,[],[],{}),
|
|
||||||
new MenuItem("","Contact us","https://beta.openaire.eu/contact-us","",false,[],[],{})
|
|
||||||
];
|
|
||||||
// if(this.properties.showContent){
|
|
||||||
// this.bottomMenuItems.push(new MenuItem("","Content Policy","","/content",false,[],[],{}));
|
|
||||||
// }
|
|
||||||
this.userMenuItems =[
|
|
||||||
// new MenuItem("","My links","","/myclaims",false,[],["/myclaims"],(data['communityId'] && typeof document !== 'undefined' && ConnectHelper.isProduction(document.location.hostname))?{}:{communityId:data['communityId']}),
|
|
||||||
];
|
|
||||||
|
|
||||||
}else{
|
|
||||||
this.bottomMenuItems = [
|
|
||||||
new MenuItem("","About","","/about",false,[],["/about"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Organizations","","/organizations",false,[],["/organizations"],this.properties.environment!="development"?{}:{communityId:community.communityId})
|
|
||||||
];
|
|
||||||
if(this.properties.showContent){
|
|
||||||
this.bottomMenuItems.push(new MenuItem("","Content Policy","","/content",false,[],[],{}));
|
|
||||||
}
|
|
||||||
this.userMenuItems =[ new MenuItem("","My profile","","",false,[],[],{}),
|
|
||||||
new MenuItem("","My links","","/myclaims",false,[],["/myclaims"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
new MenuItem("","Invite users","","/invite",false,[],[],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
|
||||||
];
|
|
||||||
if(this.managerOfCommunities ){
|
|
||||||
this.userMenuItems.push(new MenuItem("","Support","https://openaire-connect.d4science.org/group/openaire-connect-gateway/explore?siteId=172366611","",false,[],[],{}))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.showMenu = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
if (typeof document !== 'undefined') {
|
if (typeof document !== 'undefined') {
|
||||||
try{
|
try{
|
||||||
this.isClient = true;
|
this.isClient = true;
|
||||||
|
@ -266,19 +120,7 @@ export class AppComponent {
|
||||||
this.managerOfCommunities = true;
|
this.managerOfCommunities = true;
|
||||||
}else if(com.managers.indexOf(Session.getUserEmail())!=-1){
|
}else if(com.managers.indexOf(Session.getUserEmail())!=-1){
|
||||||
this.managerOfCommunities = true;
|
this.managerOfCommunities = true;
|
||||||
}/*else if(!this.subscriberOfCommunities){
|
}
|
||||||
// check if subscriber
|
|
||||||
this._subscribeService.isSubscribedToCommunity(com.communityId, Session.getUserEmail(), this.properties.adminToolsAPIURL).subscribe (
|
|
||||||
isSubscriber => {
|
|
||||||
if(isSubscriber) {
|
|
||||||
this.subscriberOfCommunities = true;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error => {
|
|
||||||
console.error("Error fetching your subscribed communities")
|
|
||||||
});
|
|
||||||
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -294,21 +136,15 @@ export class AppComponent {
|
||||||
// document.documentElement.style.setProperty('--portal-main-color', this.layout.color);
|
// document.documentElement.style.setProperty('--portal-main-color', this.layout.color);
|
||||||
// }
|
// }
|
||||||
// );
|
// );
|
||||||
let iSommunitymanager: boolean = false;
|
let isCommunityManager: boolean = false;
|
||||||
if(Session.isCommunityCurator() || Session.isPortalAdministrator()){
|
if(Session.isCommunityCurator() || Session.isPortalAdministrator()){
|
||||||
iSommunitymanager = true;
|
isCommunityManager = true;
|
||||||
}else if(com.managers.indexOf(Session.getUserEmail())!=-1){
|
}else if(com.managers.indexOf(Session.getUserEmail())!=-1){
|
||||||
iSommunitymanager = true;
|
isCommunityManager = true;
|
||||||
}
|
}
|
||||||
this.community = {id: community.communityId, name: (community.shortTitle)?community.shortTitle:community.title, logoUrl:community.logoUrl};
|
this.community = {id: community.communityId, name: (community.shortTitle)?community.shortTitle:community.title, logoUrl:community.logoUrl};
|
||||||
this.menuItems= [];
|
this.menuItems= [];
|
||||||
if(iSommunitymanager){
|
|
||||||
this.menuItems.push(
|
|
||||||
{
|
|
||||||
rootItem: new MenuItem("manage","Manage",'https://beta.admin.connect.openaire.eu/dashboard?communityId='+community.communityId,"",false,[],[],{}),
|
|
||||||
items: []
|
|
||||||
});
|
|
||||||
}
|
|
||||||
this.menuItems.push(
|
this.menuItems.push(
|
||||||
{rootItem: new MenuItem("search","Search","","/search/find",false,[],["/search/find", "/search/find/publications", "/search/find/datasets", "/search/find/software", "/search/find/other", "/search/find/projects", "/search/find/dataproviders"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
{rootItem: new MenuItem("search","Search","","/search/find",false,[],["/search/find", "/search/find/publications", "/search/find/datasets", "/search/find/software", "/search/find/other", "/search/find/projects", "/search/find/dataproviders"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
||||||
items: [new MenuItem("","Publications","","/search/find/publications",false,["publication"],["/search/find/publications"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
items: [new MenuItem("","Publications","","/search/find/publications",false,["publication"],["/search/find/publications"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
||||||
|
@ -331,13 +167,20 @@ export class AppComponent {
|
||||||
rootItem: new MenuItem("link","Link","","/participate/claim",false,[],["/participate/claim"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
rootItem: new MenuItem("link","Link","","/participate/claim",false,[],["/participate/claim"],this.properties.environment!="development"?{}:{communityId:community.communityId}),
|
||||||
items: []
|
items: []
|
||||||
});
|
});
|
||||||
|
if(isCommunityManager){
|
||||||
|
this.menuItems.push(
|
||||||
|
{
|
||||||
|
rootItem: new MenuItem("manage","Manage",'https://beta.admin.connect.openaire.eu/dashboard?communityId='+community.communityId,"",false,[],[],{}),
|
||||||
|
items: []
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(community == null){
|
if(community == null){
|
||||||
this.menuItems= [];
|
this.menuItems= [];
|
||||||
|
this.menuItems.push({rootItem: new MenuItem("about","About","","/about",false,[],null,{}), items: []});
|
||||||
var myCommunities = [];
|
var myCommunities = [];
|
||||||
if(this.managerOfCommunities){
|
if(this.managerOfCommunities){
|
||||||
myCommunities.push( new MenuItem("","Managing communities","","/search/find/communities",false,[],[],{role:"%22manager%22"}))
|
myCommunities.push( new MenuItem("","Managing communities","","/search/find/communities",false,[],[],{role:"%22manager%22"}))
|
||||||
|
@ -354,10 +197,13 @@ export class AppComponent {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.menuItems.push({rootItem: new MenuItem("communities","Communities","","/search/find/communities",false,[],null,{}), items: []});
|
this.menuItems.push({rootItem: new MenuItem("communities","Communities","","/search/find/communities",false,[],null,{}), items: []});
|
||||||
|
this.menuItems.push({rootItem: new MenuItem("join","Join","","/contact-us",false,[],null,{}), items: []});
|
||||||
if(this.managerOfCommunities || this.subscriberOfCommunities){
|
if(this.managerOfCommunities || this.subscriberOfCommunities){
|
||||||
this.menuItems.push({rootItem: new MenuItem("myCommunities","My Communities","","",false,[],[],{}), items: myCommunities});
|
let myCommunitiesMenu = new MenuItem("myCommunities","My Communities","","",false,[],[],{});
|
||||||
|
myCommunitiesMenu.setMarkAsActive(false);
|
||||||
|
this.menuItems.push({rootItem: myCommunitiesMenu, items: myCommunities});
|
||||||
}
|
}
|
||||||
this.menuItems.push({rootItem: new MenuItem("howto","Create Community","","/how-to-create-community",false,[],null,{}), items: []});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,8 @@
|
||||||
<div class="uk-text-large">Turn Open Science into Practice. It takes your open and linked research outcomes. A service customized to your needs.</div>
|
<div class="uk-text-large">Turn Open Science into Practice. It takes your open and linked research outcomes. A service customized to your needs.</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-1 uk-inline uk-margin-large-top uk-margin-large-bottom">
|
<div class="uk-width-1-1 uk-inline uk-margin-large-top uk-margin-large-bottom">
|
||||||
<a class="uk-button portal-button" routerLink="/learn-how" routerLinkActive="router-link-active"> LEARN HOW</a>
|
<a class="uk-button portal-button" routerLink="/about" routerLinkActive="router-link-active"> LEARN
|
||||||
|
HOW</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -177,7 +178,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-margin-large-top background uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color">
|
<div class="uk-margin-large-top background uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color">
|
||||||
<div class="uk-container uk-container-large">
|
<div class="uk-container uk-container-large">
|
||||||
<gif-slider [gifs]="gifs" [link]="true" [linkTitle]="'learn more'" [route]="'/learn-how'">
|
<gif-slider [gifs]="gifs" [link]="true" [linkTitle]="'learn more'" [route]="'/about'">
|
||||||
</gif-slider>
|
</gif-slider>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -221,7 +222,8 @@
|
||||||
<h1>Let us Help you Develop a Collaborative Science Gateway. It is fast. It is reliable.</h1>
|
<h1>Let us Help you Develop a Collaborative Science Gateway. It is fast. It is reliable.</h1>
|
||||||
<div>Get in touch with our team to find out how.</div>
|
<div>Get in touch with our team to find out how.</div>
|
||||||
<div class="uk-inline uk-margin-large-top uk-margin-bottom">
|
<div class="uk-inline uk-margin-large-top uk-margin-bottom">
|
||||||
<a class="uk-button portal-button" routerLink="/contact" routerLinkActive="router-link-active"> CONTACT US</a>
|
<a class="uk-button portal-button" routerLink="/contact-us" routerLinkActive="router-link-active"> CONTACT
|
||||||
|
US</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -174,9 +174,14 @@
|
||||||
let-allowedCharts="allowedCharts" let-chartsInfoMap="chartsInfoMap"
|
let-allowedCharts="allowedCharts" let-chartsInfoMap="chartsInfoMap"
|
||||||
let-showChartTitle="showChartTitle"
|
let-showChartTitle="showChartTitle"
|
||||||
let-showIn="showIn">
|
let-showIn="showIn">
|
||||||
|
<div *ngIf=" showIn == 'showInMonitor' && allowedCharts && allowedCharts[entity].length == 0 &&
|
||||||
<div *ngIf="
|
!statisticsDisplay.entities[entity].numbers.map['total'][showIn] && !statisticsDisplay.entities[entity].numbers.map['project'][showIn] &&
|
||||||
statisticsSum && statisticsDisplay &&
|
!statisticsDisplay.entities[entity].numbers.map['open'][showIn] && !statisticsDisplay.entities[entity].numbers.map['closed'][showIn] &&
|
||||||
|
!statisticsDisplay.entities[entity].numbers.map['embargo'][showIn] && !statisticsDisplay.entities[entity].numbers.map['restricted'][showIn]"
|
||||||
|
class="uk-alert uk-alert-primary">
|
||||||
|
No graphs available
|
||||||
|
</div>
|
||||||
|
<div *ngIf="statisticsSum && statisticsDisplay &&
|
||||||
statisticsSum[entity].total>0" class="uk-grid uk-child-width-1-3">
|
statisticsSum[entity].total>0" class="uk-grid uk-child-width-1-3">
|
||||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['total'][showIn]" class="uk-padding-remove">
|
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['total'][showIn]" class="uk-padding-remove">
|
||||||
<div class="uk-card portal-card uk-text-right uk-margin-left uk-margin-bottom uk-padding-small">
|
<div class="uk-card portal-card uk-text-right uk-margin-left uk-margin-bottom uk-padding-small">
|
||||||
|
@ -230,7 +235,6 @@
|
||||||
{{entityName}}</div>
|
{{entityName}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf=" allowedEntities &&
|
<div *ngIf=" allowedEntities &&
|
||||||
statisticsSum && allowedCharts && statisticsSum[entity] &&
|
statisticsSum && allowedCharts && statisticsSum[entity] &&
|
||||||
|
@ -292,7 +296,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<div class="uk-float-right">
|
<div class="uk-text-center">
|
||||||
<!-- <button [class]="'uk-button '+((show == 'overview')?'uk-disabled ':' uk-button-default ')"
|
<!-- <button [class]="'uk-button '+((show == 'overview')?'uk-disabled ':' uk-button-default ')"
|
||||||
(click)="show='overview'">Overview
|
(click)="show='overview'">Overview
|
||||||
</button>
|
</button>
|
||||||
|
@ -300,7 +304,7 @@
|
||||||
<button [class]="'uk-button '+((show != 'overview')?'uk-disabled ':' uk-button-default ')"
|
<button [class]="'uk-button '+((show != 'overview')?'uk-disabled ':' uk-button-default ')"
|
||||||
(click)="show='analysis';">Graph Analysis
|
(click)="show='analysis';">Graph Analysis
|
||||||
</button>-->
|
</button>-->
|
||||||
<select [(ngModel)]="show" class="uk-select uk-text-bold">
|
<select [(ngModel)]="show" class="uk-select uk-text-bold uk-width-small">
|
||||||
<option value="overview" >Overview</option>
|
<option value="overview" >Overview</option>
|
||||||
<option value="analysis" >Graph Analysis</option>
|
<option value="analysis" >Graph Analysis</option>
|
||||||
</select>
|
</select>
|
||||||
|
@ -310,12 +314,10 @@
|
||||||
<!-- </select>-->
|
<!-- </select>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="uk-margin-top customTabs">
|
<div class="uk-margin-top customTabs">
|
||||||
|
|
||||||
|
|
||||||
<ul class=" uk-margin-remove"
|
<ul class=" uk-margin-remove uk-flex-center"
|
||||||
data-uk-tab="{connect: '#resultTabs'">
|
data-uk-tab="{connect: '#resultTabs'">
|
||||||
<li *ngIf="isEntityEnabled('publication')" (click)="searchPublications()" class="uk-active"><a
|
<li *ngIf="isEntityEnabled('publication')" (click)="searchPublications()" class="uk-active"><a
|
||||||
href="#">publications</a></li>
|
href="#">publications</a></li>
|
||||||
|
@ -340,7 +342,7 @@
|
||||||
[properties]="properties"
|
[properties]="properties"
|
||||||
class=""></results-comp>
|
class=""></results-comp>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="show!='overview'">
|
<div *ngIf="show!='overview' && activeTab == 'publication'">
|
||||||
<ng-container *ngTemplateOutlet="stats; context: { entity: 'publication', entityName:
|
<ng-container *ngTemplateOutlet="stats; context: { entity: 'publication', entityName:
|
||||||
'publications' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
'publications' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
||||||
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
||||||
|
@ -362,12 +364,12 @@
|
||||||
|
|
||||||
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInDashboard'}"></ng-container>
|
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInDashboard'}"></ng-container>
|
||||||
</div>
|
</div>
|
||||||
<results-comp [results]=publicationResults [total]=publicationTotal resultType="dataset"
|
<results-comp [results]=researchDataResults [total]=researchDataTotal resultType="dataset"
|
||||||
[community]=community [params]=params [showLoading]="showLoading"
|
[community]=community [params]=params [showLoading]="showLoading"
|
||||||
[properties]="properties"
|
[properties]="properties"
|
||||||
class=""></results-comp>
|
class=""></results-comp>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="show!='overview'">
|
<div *ngIf="show!='overview' && activeTab == 'dataset'" >
|
||||||
<ng-container *ngTemplateOutlet="stats; context: { entity: 'dataset', entityName:
|
<ng-container *ngTemplateOutlet="stats; context: { entity: 'dataset', entityName:
|
||||||
'research data' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
'research data' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
||||||
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
||||||
|
@ -388,12 +390,12 @@
|
||||||
|
|
||||||
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInDashboard'}"></ng-container>
|
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInDashboard'}"></ng-container>
|
||||||
</div>
|
</div>
|
||||||
<results-comp [results]=publicationResults [total]=publicationTotal resultType="software"
|
<results-comp [results]=softwareResults [total]=softwareTotal resultType="software"
|
||||||
[community]=community [params]=params [showLoading]="showLoading"
|
[community]=community [params]=params [showLoading]="showLoading"
|
||||||
[properties]="properties"
|
[properties]="properties"
|
||||||
class=""></results-comp>
|
class=""></results-comp>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="show!='overview'">
|
<div *ngIf="show!='overview' && activeTab == 'software'">
|
||||||
<ng-container *ngTemplateOutlet="stats; context: { entity: 'software', entityName:
|
<ng-container *ngTemplateOutlet="stats; context: { entity: 'software', entityName:
|
||||||
'software' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
'software' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
||||||
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
||||||
|
@ -415,12 +417,12 @@
|
||||||
|
|
||||||
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInDashboard'}"></ng-container>
|
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInDashboard'}"></ng-container>
|
||||||
</div>
|
</div>
|
||||||
<results-comp [results]=publicationResults [total]=publicationTotal resultType="other"
|
<results-comp [results]=orpResults [total]=orpTotal resultType="other"
|
||||||
[community]=community [params]=params [showLoading]="showLoading"
|
[community]=community [params]=params [showLoading]="showLoading"
|
||||||
[properties]="properties"
|
[properties]="properties"
|
||||||
class=""></results-comp>
|
class=""></results-comp>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="show!='overview'">
|
<div *ngIf="show!='overview' && activeTab == 'orp'">
|
||||||
<ng-container *ngTemplateOutlet="stats; context: { entity: 'orp', entityName:
|
<ng-container *ngTemplateOutlet="stats; context: { entity: 'orp', entityName:
|
||||||
'other products' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
'other products' , statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
||||||
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
||||||
|
@ -475,16 +477,18 @@
|
||||||
<subscribe *ngIf="communityId != null" [communityId]="communityId" showNumbers=true class=""></subscribe>
|
<subscribe *ngIf="communityId != null" [communityId]="communityId" showNumbers=true class=""></subscribe>
|
||||||
<div *ngIf=" isRouteEnabled('/participate/share-zenodo')" class="">
|
<div *ngIf=" isRouteEnabled('/participate/share-zenodo')" class="">
|
||||||
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/participate/share-zenodo">
|
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/participate/share-zenodo">
|
||||||
<span class="lowOpacityColor">Zenodo communities </span> <span>
|
<span class="lowOpacityColor">Related Zenodo communities </span> <span>
|
||||||
{{zenodoCommunityIdS.length + ((masterZenodoCommunity) ? 1 : 0)}}</span>{{" "}}
|
{{zenodoCommunityIdS.length + ((masterZenodoCommunity) ? 1 : 0)}}</span>
|
||||||
<span class="uk-icon"
|
|
||||||
uk-tooltip="title:<div class='uk-margin'>Zenodo is a catch-all repository for OpenAIRE<hr>A zenodo community is created and curated by Zenodo users</div>">
|
</a>
|
||||||
|
{{" "}}
|
||||||
|
<span class="uk-icon"
|
||||||
|
uk-tooltip="title:<div class='uk-margin'>Zenodo is a catch-all repository for OpenAIRE<hr>A zenodo community is created and curated by Zenodo users</div>">
|
||||||
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question"
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question"
|
||||||
ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9"></circle><circle
|
ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9"></circle><circle
|
||||||
cx="10.44" cy="14.42" r="1.05"></circle><path fill="none" stroke="#000" stroke-width="1.2"
|
cx="10.44" cy="14.42" r="1.05"></circle><path fill="none" stroke="#000" stroke-width="1.2"
|
||||||
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path></svg>
|
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path></svg>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="isRouteEnabled('/curators')" class="uk-width-3-5@m uk-width-1-1@s uk-margin-top">
|
<div *ngIf="isRouteEnabled('/curators')" class="uk-width-3-5@m uk-width-1-1@s uk-margin-top">
|
||||||
|
|
|
@ -23,7 +23,7 @@ declare var UIkit: any;
|
||||||
<!-- <div class="uk-width-medium uk-text-center uk-margin-large-top uk-margin-large-left">-->
|
<!-- <div class="uk-width-medium uk-text-center uk-margin-large-top uk-margin-large-left">-->
|
||||||
<!-- <h5>Contact OpenAIRE team, in order to create your community page</h5>-->
|
<!-- <h5>Contact OpenAIRE team, in order to create your community page</h5>-->
|
||||||
<!-- <div>-->
|
<!-- <div>-->
|
||||||
<!-- <a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact"> CONTACT US</a>-->
|
<!-- <a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ declare var UIkit: any;
|
||||||
<div class="uk-width-medium uk-text-center">
|
<div class="uk-width-medium uk-text-center">
|
||||||
<h5>Contact OpenAIRE team, in order to create your community page</h5>
|
<h5>Contact OpenAIRE team, in order to create your community page</h5>
|
||||||
<div>
|
<div>
|
||||||
<a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact"> CONTACT US</a>
|
<a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -137,7 +137,7 @@ declare var UIkit: any;
|
||||||
<div class="uk-text-center uk-position-center ">
|
<div class="uk-text-center uk-position-center ">
|
||||||
<p>Contact OpenAIRE team, in order to create your community page</p>
|
<p>Contact OpenAIRE team, in order to create your community page</p>
|
||||||
<div>
|
<div>
|
||||||
<a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact"> CONTACT US</a>
|
<a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-comment-body uk-text-meta">
|
<div class="uk-comment-body uk-text-meta uk-overflow-auto uk-height-max-small">
|
||||||
<p *ngIf="masterZenodoCommunity.description" [innerHtml]=masterZenodoCommunity.description></p>
|
<p *ngIf="masterZenodoCommunity.description" [innerHtml]=masterZenodoCommunity.description></p>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-comment-body uk-text-meta">
|
<div class="uk-comment-body uk-text-meta uk-overflow-auto uk-height-max-small">
|
||||||
<p *ngIf="item.description" [innerHtml]=item.description></p>
|
<p *ngIf="item.description" [innerHtml]=item.description></p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -32,7 +32,7 @@ import {FAQ} from "../openaireLibrary/utils/entities/FAQ";
|
||||||
<h1>We look forward to working together and helping you unlock the full potential of your research community through open science.</h1>
|
<h1>We look forward to working together and helping you unlock the full potential of your research community through open science.</h1>
|
||||||
<span>Get in touch with our team to find out how.</span>
|
<span>Get in touch with our team to find out how.</span>
|
||||||
<div class="uk-margin-top">
|
<div class="uk-margin-top">
|
||||||
<a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact"> CONTACT US</a>
|
<a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-2">
|
<div class="uk-width-1-2">
|
||||||
|
|
Loading…
Reference in New Issue