2019-06-24 16:11:27 +02:00
import { Component } from '@angular/core' ;
import { ActivatedRoute , Router } from '@angular/router' ;
import { Title } from '@angular/platform-browser' ;
import { PiwikService } from '../openaireLibrary/utils/piwik/piwik.service' ;
import { EnvProperties } from '../openaireLibrary/utils/properties/env-properties' ;
2019-07-18 13:36:05 +02:00
import { HelperService } from "../openaireLibrary/utils/helper/helper.service" ;
2019-06-24 16:11:27 +02:00
@Component ( {
selector : 'learn-how' ,
template : `
2019-07-22 11:19:34 +02:00
< helper * ngIf = "pageContents && pageContents['top'] && pageContents['top'].length > 0" [ texts ] = " pageContents [ ' top ' ] " > < / helper >
2019-07-11 11:59:38 +02:00
< ng - template # one >
< h5 class = "uk-text-bold uk-margin-small-bottom" > 1 . Understanding your needs < / h5 >
< div >
First , we learn about your requirements and challenges . We help you understand Open Science practices within EOSC and together we ’ ll talk about how OpenAIRE RCD fits as a solution .
< / div >
< / n g - t e m p l a t e >
< ng - template # two >
< h5 class = " uk-text-bold uk-margin-small-bottom" > 2 . Develop a pilot < / h5 >
< div >
How do you work today , and how would you like to work tomorrow ? We translate your needs into rules and processes and we configure operational OpenAIRE services . By the end of this phase , we ’ ll have defined the basic configuration of your Community Gateway .
< / div >
< / n g - t e m p l a t e >
< ng - template # three >
< h5 class = "uk-text-bold uk-margin-small-bottom" > 3 . Test and Validate < / h5 >
< div >
You validate and test your new Community Gateway ( portal ) with your experts and community to ensure all workflows are in place and quality of data meets your standards . If needed , we work together in another iteration to further refine and adapt to your needs .
< / div >
< / n g - t e m p l a t e >
< ng - template # four >
< h5 class = " uk-text-bold uk-margin-small-bottom" > 4 . Roll out the service < / h5 >
< div >
We jointly roll out your new Community Gateway . You take over the business operations and start engaging your researchers , we take care of the smooth operation of the e - service .
< / div >
< / n g - t e m p l a t e >
2019-06-27 12:25:02 +02:00
< div class = "image-front-topbar" uk - scrollspy = "{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}" tm - header - transparent = "light" tm - header - transparent - placeholder = "" >
2019-06-24 16:11:27 +02:00
< div style = " min-height: calc(7.89999px + 60vh);"
2019-07-03 15:32:59 +02:00
class = "about-background uk-section 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 uk-section" >
< div class = "uk-margin-large-top uk-grid" >
2019-07-01 15:58:31 +02:00
< h1 class = "uk-width-1-1 font-41 uk-text-bold" > Learn the process < / h1 >
2019-07-03 15:37:36 +02:00
< div class = "uk-width-1-2@l uk-width-1-1@s uk-h5 uk-margin-top" > Build a < b > Gateway to your community ' s < / b > open and linked research outcomes . Customized to your needs . < / div >
2019-06-27 12:25:02 +02:00
< / div >
2019-07-01 15:58:31 +02:00
< div class = "uk-margin-large-top uk-flex uk-child-width-1-3@m uk-child-width-1-1@s uk-flex-center" uk - grid >
< div class = "uk-flex uk-child-width-1-1@m uk-child-width-1-2@s" uk - grid >
2019-06-27 12:25:02 +02:00
< div >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "one" > < / n g - c o n t a i n e r >
2019-06-27 12:25:02 +02:00
< / div >
< div class = "uk-visible@m" >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "four" > < / n g - c o n t a i n e r >
2019-06-27 12:25:02 +02:00
< / div >
< div class = "uk-hidden@m" >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "two" > < / n g - c o n t a i n e r >
2019-06-27 12:25:02 +02:00
< / div >
< / div >
< div >
2019-06-28 12:52:52 +02:00
< img src = "../../assets/about/cycle.png" >
2019-06-27 12:25:02 +02:00
< / div >
2019-07-01 15:58:31 +02:00
< div class = "uk-flex uk-child-width-1-1@m uk-child-width-1-2@s" uk - grid >
2019-06-27 12:25:02 +02:00
< div class = "uk-visible@m" >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "two" > < / n g - c o n t a i n e r >
2019-06-27 12:25:02 +02:00
< / div >
2019-07-08 16:13:16 +02:00
< div class = "uk-hidden@m uk-visible@s" >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "four" > < / n g - c o n t a i n e r >
2019-06-27 12:25:02 +02:00
< / div >
< div >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "three" > < / n g - c o n t a i n e r >
2019-06-27 12:25:02 +02:00
< / div >
2019-07-08 16:13:16 +02:00
< div class = "uk-hidden@s uk-visible@xs" >
2019-07-11 11:59:38 +02:00
< ng - container * ngTemplateOutlet = "four" > < / n g - c o n t a i n e r >
2019-07-08 16:13:16 +02:00
< / div >
2019-06-27 12:25:02 +02:00
< / div >
< / div >
2019-06-27 13:54:04 +02:00
< div class = "uk-width-1-1 uk-text-center uk-text-large uk-margin-large-top" >
2019-07-22 15:23:41 +02:00
< a class = "uk-button portal-button uk-text-uppercase" routerLinkActive = "router-link-active" routerLink = "/about/learn-in-depth" > Learn more details < / a >
2019-06-27 13:30:00 +02:00
< / div >
2019-06-24 16:11:27 +02:00
< / div >
2019-06-27 12:25:02 +02:00
< / div >
2019-07-01 11:12:58 +02:00
< div class = "cloud-abstract uk-background-norepeat uk-section uk-background-center uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color" >
2019-06-27 12:25:02 +02:00
< div class = "uk-container uk-container-large" >
2019-06-27 13:54:04 +02:00
< gif - slider [ gifs ] = " gifs " > < / g i f - s l i d e r >
2019-06-27 12:25:02 +02:00
< / div >
< / div >
2019-06-28 16:56:05 +02:00
< div class = "contact-banner uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color" >
2019-07-03 15:32:59 +02:00
< div class = "uk-container uk-container-large uk-section" >
< div class = "uk-flex uk-flex-middle uk-padding" uk - grid >
2019-07-01 15:58:31 +02:00
< div class = "uk-width-expand" >
< h1 class = "uk-text-bold" > We look forward to working together and helping you unlock the full potential of your research community through open science . < / h1 >
2019-07-03 15:32:59 +02:00
< div class = "uk-margin-medium" > Get in touch with our team to find out how . < / div >
< div class = "uk-inline" >
2019-06-25 16:27:27 +02:00
< a class = "uk-button portal-button" routerLinkActive = "router-link-active" routerLink = "/contact-us" > CONTACT US < / a >
2019-06-24 16:11:27 +02:00
< / div >
< / div >
2019-07-01 15:58:31 +02:00
< div class = "uk-text-center uk-width-1-1@s uk-width-1-3@m" >
2019-06-29 01:03:58 +02:00
< img width = "263" height = "250" src = "../../assets/contact/3.png" >
2019-06-24 16:11:27 +02:00
< / div >
< / div >
< / div >
< / div >
< / div >
`
} )
export class LearnHowComponent {
public piwiksub : any ;
2019-06-27 13:54:04 +02:00
public gifs : { "gif" : string , "header" : string , "text" } [ ] = [ ] ;
2019-07-18 13:36:05 +02:00
public pageContents = null ;
public divContents = null ;
2019-06-24 16:11:27 +02:00
private pageTitle = "OpenAIRE - Connect | Learn How" ;
properties :EnvProperties ;
constructor (
private route : ActivatedRoute ,
private _router : Router ,
private _title : Title ,
2019-07-18 13:36:05 +02:00
private _piwikService : PiwikService ,
private helper : HelperService ) {
2019-06-24 16:11:27 +02:00
this . _title . setTitle ( this . pageTitle ) ;
}
public ngOnInit() {
this . route . data
. subscribe ( ( data : { envSpecific : EnvProperties } ) = > {
this . properties = data . envSpecific ;
if ( this . properties . enablePiwikTrack && ( typeof document !== 'undefined' ) ) {
this . piwiksub = this . _piwikService . trackView ( this . properties , "OpenAIRE Connect | Create and manage your community page" , this . properties . piwikSiteId ) . subscribe ( ) ;
}
2019-07-18 13:36:05 +02:00
//this.getDivContents();
this . getPageContents ( ) ;
2019-06-24 16:11:27 +02:00
} ) ;
2019-06-25 13:48:15 +02:00
this . createGifs ( ) ;
2019-06-24 16:11:27 +02:00
}
2019-07-18 18:03:37 +02:00
private getPageContents() {
2019-07-22 11:19:34 +02:00
this . helper . getPageHelpContents ( this . _router . url , this . properties , 'connect' ) . subscribe ( contents = > {
2019-07-18 13:36:05 +02:00
this . pageContents = contents ;
} )
}
2019-07-18 18:03:37 +02:00
private getDivContents() {
2019-07-22 11:19:34 +02:00
this . helper . getDivHelpContents ( this . _router . url , this . properties , 'connect' ) . subscribe ( contents = > {
2019-07-18 13:36:05 +02:00
this . divContents = contents ;
} )
}
2019-06-24 16:11:27 +02:00
public ngOnDestroy() {
if ( this . piwiksub ) {
this . piwiksub . unsubscribe ( ) ;
}
}
2019-06-25 13:48:15 +02:00
private createGifs() {
2019-06-27 13:54:04 +02:00
this . gifs . push ( {
2019-07-12 12:12:16 +02:00
gif : "assets/about/gifs/profile.gif" ,
2019-06-27 16:43:17 +02:00
header : "Profile" ,
text : "Edit community information, change logo url, add community managers or organizations related to community."
2019-06-25 13:48:15 +02:00
} ) ;
2019-06-27 13:54:04 +02:00
this . gifs . push ( {
2019-07-12 12:12:16 +02:00
gif : "assets/about/gifs/content.gif" ,
2019-06-27 16:43:17 +02:00
header : "Content" ,
text : "Manage projects, content providers, subjects and zenodo communities that are related to the research community."
2019-06-25 13:48:15 +02:00
} ) ;
2019-06-27 13:54:04 +02:00
this . gifs . push ( {
2019-07-12 12:12:16 +02:00
gif : "assets/about/gifs/statistics.gif" ,
2019-06-27 16:43:17 +02:00
header : "Statistics & Charts" ,
text : "Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views."
} ) ;
this . gifs . push ( {
2019-07-12 12:12:16 +02:00
gif : "assets/about/gifs/links.gif" ,
2019-06-27 16:43:17 +02:00
header : "Links" ,
text : " Manage user claims related to the research community."
} ) ;
this . gifs . push ( {
2019-07-12 12:12:16 +02:00
gif : "assets/about/gifs/help.gif" ,
2019-06-27 16:43:17 +02:00
header : " Help texts" ,
text : "Add or edit help text in research community pages."
} ) ;
this . gifs . push ( {
2019-07-12 12:12:16 +02:00
gif : "assets/about/gifs/users.gif" ,
2019-06-27 16:43:17 +02:00
header : "Users" ,
text : "Invite more users to subscribe, manage community subscribers, your personal info and notification settings."
2019-06-25 13:48:15 +02:00
} ) ;
}
2019-06-24 16:11:27 +02:00
}