Revision 60987
Added by Argiro Kokogiannaki almost 3 years ago
modules/uoa-connect-portal/trunk/src/app/searchPages/communities/searchCommunities.component.ts | ||
---|---|---|
20 | 20 |
@Component({ |
21 | 21 |
selector: 'search-communities', |
22 | 22 |
template: ` |
23 |
<new-search-page pageTitle="OpenAIRE-Connect | Search Communities"
|
|
24 |
[hasPrefix]=false [piwikSiteId]="piwikSiteId"
|
|
23 |
<new-search-page pageTitle="Search Communities" |
|
24 |
[hasPrefix]=true prefix="OpenAIRE Connect | " [piwikSiteId]="piwikSiteId"
|
|
25 | 25 |
searchFormClass="communitiesSearchForm" |
26 | 26 |
[formPlaceholderText]="'Search for Research Gateways…'" |
27 | 27 |
type="communities" entityType="community" |
... | ... | |
31 | 31 |
[showIndexInfo]=false |
32 | 32 |
[simpleView]="true" |
33 | 33 |
[fieldIds]="fieldIds" [fieldIdsMap]="fieldIdsMap" [selectedFields]="selectedFields" |
34 |
[simpleSearchLink]="searchLink" [entitiesSelection]="false" [showBreadcrumb]="true"> |
|
34 |
[simpleSearchLink]="searchLink" [entitiesSelection]="false" [showBreadcrumb]="true" [basicMetaDescription]="['Research communities', 'Discover OpenAIRE research gateways for research communities.']">
|
|
35 | 35 |
</new-search-page> |
36 | 36 |
` |
37 | 37 |
}) |
modules/uoa-connect-portal/trunk/src/app/app.module.ts | ||
---|---|---|
62 | 62 |
multi: true |
63 | 63 |
}, |
64 | 64 |
[{provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true}], |
65 |
[{provide: DEFAULT_TIMEOUT, useValue: 30000}]
|
|
65 |
[{provide: DEFAULT_TIMEOUT, useValue: 5000}]
|
|
66 | 66 |
], |
67 | 67 |
bootstrap: [AppComponent] |
68 | 68 |
}) |
modules/uoa-connect-portal/trunk/src/app/app.component.ts | ||
---|---|---|
19 | 19 |
import {CustomizationOptions} from "./openaireLibrary/connect/community/CustomizationOptions"; |
20 | 20 |
import {LayoutService} from "./openaireLibrary/services/layout.service"; |
21 | 21 |
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll"; |
22 |
import {Meta} from "@angular/platform-browser"; |
|
22 | 23 |
|
23 | 24 |
@Component({ |
24 | 25 |
//changeDetection: ChangeDetectionStrategy.Default, |
... | ... | |
102 | 103 |
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, |
103 | 104 |
private _communitiesService: CommunitiesService, private smoothScroll: SmoothScroll, |
104 | 105 |
private router: Router, private userManagementService: UserManagementService, |
105 |
private configurationService: ConfigurationService, private _communityService: CommunityService, private _layoutService: LayoutService) { |
|
106 |
private configurationService: ConfigurationService, private _communityService: CommunityService, private _layoutService: LayoutService, private _meta: Meta) {
|
|
106 | 107 |
} |
107 | 108 |
|
108 | 109 |
ngOnDestroy() { |
... | ... | |
119 | 120 |
} |
120 | 121 |
|
121 | 122 |
ngOnInit() { |
123 |
if (this.properties.environment == "production" || this.properties.environment == "development") { |
|
124 |
this.subscriptions.push(this.route.queryParams.subscribe(data => { |
|
125 |
this._meta.updateTag({content: 'all', name: 'robots'}); |
|
126 |
})); |
|
127 |
} |
|
122 | 128 |
this._communitiesService.updateCommunities(this.properties, this.properties.communitiesAPI); |
123 | 129 |
if (typeof document !== 'undefined') { |
124 | 130 |
try { |
modules/uoa-connect-portal/trunk/src/index.prod.html | ||
---|---|---|
11 | 11 |
<meta property="og:description" |
12 | 12 |
content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects"/> |
13 | 13 |
<meta property="og:title" content="OpenAIRE - Connect "/> |
14 |
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" /> |
|
14 |
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" /> |
|
15 |
<meta name="robots" content="all"> |
|
15 | 16 |
<meta property="og:type" content="website"/> |
16 | 17 |
<meta property="og:url" content="https://connect.openaire.eu"/> |
17 | 18 |
<meta property="og:site_name" content="OpenAIRE - Connect"/> |
Also available in: Unified diff
[Connect|Trunk]
SEO:
- initiate robots metatag
- reset robots in every route change
- set time out to 5000
- search research communities updtae titles and meta description