Revision 59889
Added by Argiro Kokogiannaki over 3 years ago
modules/uoa-monitor-portal/trunk/monitor/src/app/app.component.ts | ||
---|---|---|
19 | 19 |
<navbar *ngIf="properties && showMenu && header" portal="monitor" [header]="header" [onlyTop]="false" |
20 | 20 |
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user" |
21 | 21 |
[showMenu]=showMenu [properties]="properties"></navbar> |
22 |
<schema2jsonld *ngIf="properties " [URL]="properties.domain + properties.baseLink" |
|
23 |
[logoURL]="properties.domain + properties.baseLink+'/assets/common-assets/logo-small-monitor.png'" |
|
24 |
type="home" |
|
25 |
description="OpenAIRE - Monitor, A new era of monitoring research. Open data. Open methodologies. Work together with us to view, understand and visualize research statistics and indicators. " |
|
26 |
name="OpenAIRE Monitor" [searchAction]="true" [searchActionRoute]="properties.domain + properties.baseLink + '/browse'"> |
|
27 |
</schema2jsonld> |
|
22 | 28 |
<div class="custom-main-content"> |
23 | 29 |
<main> |
24 | 30 |
<router-outlet></router-outlet> |
modules/uoa-monitor-portal/trunk/monitor/src/app/home/home.component.html | ||
---|---|---|
1 |
<schema2jsonld [URL]="properties.domain + properties.baseLink" |
|
2 |
[logoURL]="properties.domain + properties.baseLink+'/assets/common-assets/logo-small-monitor.png'" |
|
3 |
type="home" |
|
4 |
name="OpenAIRE Monitor"> |
|
5 |
</schema2jsonld> |
|
6 | 1 |
<div class="image-front-topbar" |
7 | 2 |
style="background: transparent linear-gradient(180deg, #F4F4F4 0%, #F5F5F5 83%, #FAFAFA 100%) no-repeat;"> |
8 | 3 |
<div |
modules/uoa-monitor-portal/trunk/monitor/src/app/home/home.component.ts | ||
---|---|---|
101 | 101 |
private _refineFieldResultsService: RefineFieldResultsService, private _searchResearchResultsService: SearchResearchResultsService) { |
102 | 102 |
|
103 | 103 |
|
104 |
var description = "OpenAIRE - Monitor, Statistics, Search, Funder, EC, European Commision";
|
|
104 |
var description = "OpenAIRE - Monitor, A new era of monitoring research. Open data. Open methodologies. Work together with us to view, understand and visualize research statistics and indicators. ";
|
|
105 | 105 |
var title = "OpenAIRE - Monitor"; |
106 | 106 |
|
107 | 107 |
this._meta.updateTag({content: description}, "name='description'"); |
modules/uoa-monitor-portal/trunk/monitor/src/app/app.module.ts | ||
---|---|---|
16 | 16 |
|
17 | 17 |
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver'; |
18 | 18 |
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service"; |
19 |
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module"; |
|
19 | 20 |
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service"; |
20 | 21 |
import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.service"; |
21 | 22 |
|
... | ... | |
33 | 34 |
CookieLawModule, |
34 | 35 |
BrowserTransferStateModule, |
35 | 36 |
BrowserModule.withServerTransition({appId: 'my-app'}), |
36 |
AppRoutingModule |
|
37 |
AppRoutingModule, |
|
38 |
Schema2jsonldModule |
|
37 | 39 |
], |
38 | 40 |
declarations: [ AppComponent, OpenaireErrorPageComponent], |
39 | 41 |
exports: [ AppComponent ], |
modules/uoa-monitor-portal/trunk/monitor/src/app/contact/contact.component.html | ||
---|---|---|
1 |
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld> |
|
1 |
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other" [description]="description"></schema2jsonld>
|
|
2 | 2 |
<div class="uk-section"> |
3 | 3 |
<div class="uk-align-center"> |
4 | 4 |
<div *ngIf="showLoading" class="uk-margin-large"> |
modules/uoa-monitor-portal/trunk/monitor/src/app/contact/contact.component.ts | ||
---|---|---|
11 | 11 |
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service"; |
12 | 12 |
import {AbstractControl, FormBuilder, FormGroup, ValidatorFn, Validators} from "@angular/forms"; |
13 | 13 |
import {Subscriber} from "rxjs"; |
14 |
import {properties} from "../../environments/environment"; |
|
14 | 15 |
|
15 | 16 |
@Component({ |
16 | 17 |
selector: 'contact', |
... | ... | |
19 | 20 |
export class ContactComponent implements OnInit { |
20 | 21 |
public url: string = null; |
21 | 22 |
public pageTitle: string = "OpenAIRE - Monitor | Contact Us"; |
23 |
public description: string = "OpenAIRE - Monitor . Any Questions? Contact us to learn more"; |
|
22 | 24 |
public piwiksub: any; |
23 | 25 |
public showLoading = true; |
24 | 26 |
public errorMessage = ''; |
... | ... | |
55 | 57 |
}); |
56 | 58 |
} |
57 | 59 |
ngOnInit() { |
58 |
this._title.setTitle('OpenAIRE-Monitor | Contact Us'); |
|
59 |
this.subscriptions.push(this.route.data.subscribe((data: { envSpecific: EnvProperties }) => { |
|
60 |
this.properties = data.envSpecific; |
|
61 |
this.email = {body: '', subject: '', recipients: []}; |
|
62 |
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) { |
|
63 |
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe()); |
|
64 |
} |
|
65 |
this.url = this.properties.domain + this.properties.baseLink + this._router.url; |
|
66 |
this.seoService.createLinkForCanonicalURL(this.url); |
|
67 |
this.updateUrl(this.url); |
|
68 |
this.updateTitle(this.pageTitle); |
|
69 |
this.updateDescription("OpenAIRE - Monitor, Community Gateway, research community - Contact Us"); |
|
70 |
this.reset(); |
|
71 |
//this.getDivContents(); |
|
72 |
// this.getPageContents(); |
|
73 |
HelperFunctions.scroll(); |
|
74 |
this.showLoading = false; |
|
75 |
})); |
|
60 |
this.properties = properties; |
|
61 |
this.email = {body: '', subject: '', recipients: []}; |
|
62 |
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) { |
|
63 |
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe()); |
|
64 |
} |
|
65 |
this.url = this.properties.domain + this.properties.baseLink + this._router.url; |
|
66 |
this.seoService.createLinkForCanonicalURL(this.url); |
|
67 |
this.updateUrl(this.url); |
|
68 |
this.updateTitle(this.pageTitle); |
|
69 |
this.updateDescription(this.description); |
|
70 |
this.reset(); |
|
71 |
//this.getDivContents(); |
|
72 |
// this.getPageContents(); |
|
73 |
HelperFunctions.scroll(); |
|
74 |
this.showLoading = false; |
|
75 |
|
|
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
private getPageContents() { |
modules/uoa-monitor-portal/trunk/monitor/src/app/learn-how/learn-how.component.html | ||
---|---|---|
1 |
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld> |
|
1 |
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other" [description]="description"></schema2jsonld>
|
|
2 | 2 |
<div class="uk-section uk-container uk-container-large"> |
3 | 3 |
<div class="uk-padding-small"> |
4 | 4 |
<div class="uk-flex uk-flex-center"> |
modules/uoa-monitor-portal/trunk/monitor/src/app/learn-how/learn-how.component.ts | ||
---|---|---|
19 | 19 |
|
20 | 20 |
public url: string = null; |
21 | 21 |
public pageTitle: string = "OpenAIRE - Monitor | Learn How"; |
22 |
|
|
22 |
public description: string = "Learn the process: Use the Monitor Dashboard to view your research results, open science. See how it works. Simplify research tracking & monitoring "; |
|
23 | 23 |
properties: EnvProperties; |
24 | 24 |
subscriptions = []; |
25 | 25 |
constructor( |
modules/uoa-monitor-portal/trunk/monitor/src/environments/environment.ts | ||
---|---|---|
43 | 43 |
utilsService: "http://mpagasas.di.uoa.gr:8000", |
44 | 44 |
vocabulariesAPI: "https://beta.services.openaire.eu/provision/mvc/vocabularies/", |
45 | 45 |
piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=", |
46 |
piwikSiteId: "80",
|
|
46 |
piwikSiteId: "298",
|
|
47 | 47 |
registryUrl: 'http://mpagasas.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/registry/', |
48 | 48 |
loginUrl: "http://dl170.madgik.di.uoa.gr:8180/dnet-login/openid_connect_login", |
49 | 49 |
userInfoUrl: "http://dl170.madgik.di.uoa.gr:8180/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=", |
Also available in: Unified diff
[Monitor |Trunk]
SEO changes:
-update titles and descriptions
- add more jsonld