[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 git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@60987 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
a1af3a6a83
commit
9ef3d0317f
|
@ -19,6 +19,7 @@ import {LoginErrorCodes} from "./openaireLibrary/login/utils/guardHelper.class";
|
|||
import {CustomizationOptions} from "./openaireLibrary/connect/community/CustomizationOptions";
|
||||
import {LayoutService} from "./openaireLibrary/services/layout.service";
|
||||
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll";
|
||||
import {Meta} from "@angular/platform-browser";
|
||||
|
||||
@Component({
|
||||
//changeDetection: ChangeDetectionStrategy.Default,
|
||||
|
@ -102,7 +103,7 @@ export class AppComponent {
|
|||
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService,
|
||||
private _communitiesService: CommunitiesService, private smoothScroll: SmoothScroll,
|
||||
private router: Router, private userManagementService: UserManagementService,
|
||||
private configurationService: ConfigurationService, private _communityService: CommunityService, private _layoutService: LayoutService) {
|
||||
private configurationService: ConfigurationService, private _communityService: CommunityService, private _layoutService: LayoutService, private _meta: Meta) {
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
@ -119,6 +120,11 @@ export class AppComponent {
|
|||
}
|
||||
|
||||
ngOnInit() {
|
||||
if (this.properties.environment == "production" || this.properties.environment == "development") {
|
||||
this.subscriptions.push(this.route.queryParams.subscribe(data => {
|
||||
this._meta.updateTag({content: 'all', name: 'robots'});
|
||||
}));
|
||||
}
|
||||
this._communitiesService.updateCommunities(this.properties, this.properties.communitiesAPI);
|
||||
if (typeof document !== 'undefined') {
|
||||
try {
|
||||
|
|
|
@ -62,7 +62,7 @@ import {RoleVerificationModule} from "./openaireLibrary/role-verification/role-v
|
|||
multi: true
|
||||
},
|
||||
[{provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true}],
|
||||
[{provide: DEFAULT_TIMEOUT, useValue: 30000}]
|
||||
[{provide: DEFAULT_TIMEOUT, useValue: 5000}]
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
|
|
|
@ -20,8 +20,8 @@ import {Subscriber} from "rxjs";
|
|||
@Component({
|
||||
selector: 'search-communities',
|
||||
template: `
|
||||
<new-search-page pageTitle="OpenAIRE-Connect | Search Communities"
|
||||
[hasPrefix]=false [piwikSiteId]="piwikSiteId"
|
||||
<new-search-page pageTitle="Search Communities"
|
||||
[hasPrefix]=true prefix="OpenAIRE Connect | " [piwikSiteId]="piwikSiteId"
|
||||
searchFormClass="communitiesSearchForm"
|
||||
[formPlaceholderText]="'Search for Research Gateways…'"
|
||||
type="communities" entityType="community"
|
||||
|
@ -31,7 +31,7 @@ import {Subscriber} from "rxjs";
|
|||
[showIndexInfo]=false
|
||||
[simpleView]="true"
|
||||
[fieldIds]="fieldIds" [fieldIdsMap]="fieldIdsMap" [selectedFields]="selectedFields"
|
||||
[simpleSearchLink]="searchLink" [entitiesSelection]="false" [showBreadcrumb]="true">
|
||||
[simpleSearchLink]="searchLink" [entitiesSelection]="false" [showBreadcrumb]="true" [basicMetaDescription]="['Research communities', 'Discover OpenAIRE research gateways for research communities.']">
|
||||
</new-search-page>
|
||||
`
|
||||
})
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
<meta property="og:description"
|
||||
content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects"/>
|
||||
<meta property="og:title" content="OpenAIRE - Connect "/>
|
||||
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
|
||||
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
|
||||
<meta name="robots" content="all">
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:url" content="https://connect.openaire.eu"/>
|
||||
<meta property="og:site_name" content="OpenAIRE - Connect"/>
|
||||
|
|
Loading…
Reference in New Issue