[Explore |Trunk]

- App: set robots tag to "all" on params change - to unset the noindex value  for newly added records
- delete unused sitemap file
- update properties with new login in beta
- update language tag in html pages
- update sitemap.xml


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@60039 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-12-07 09:17:53 +00:00
parent 163cf2317a
commit 9e1dcf9f21
8 changed files with 76 additions and 135 deletions

View File

@ -11,6 +11,8 @@ import {UserManagementService} from "./openaireLibrary/services/user-management.
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component";
import {Subscriber} from "rxjs";
import {Meta} from "@angular/platform-browser";
import {properties} from "../environments/environment";
@Component({
//changeDetection: ChangeDetectionStrategy.Default,
@ -61,7 +63,7 @@ export class AppComponent {
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService,
private router: Router, private userManagementService: UserManagementService,
private configurationService: ConfigurationService) {
private configurationService: ConfigurationService, private _meta: Meta) {
this.subscriptions.push(router.events.forEach((event) => {
if (event instanceof NavigationStart) {
// console.log(event.url);
@ -71,6 +73,10 @@ export class AppComponent {
}
ngOnInit() {
if (typeof document !== 'undefined') {
try {
this.isClient = true;
@ -85,6 +91,11 @@ export class AppComponent {
this.properties = this.propertiesService.envSpecific;
this.configurationService.initCommunityInformation(this.properties, this.properties.adminToolsCommunity);
this.feedbackmail = this.properties.feedbackmail;
if(this.properties.environment == "production") {
this.subscriptions.push(this.route.queryParams.subscribe(data => {
this._meta.updateTag({content: 'all', name: 'robots'});
}));
}
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
this.user = user;
this.buildMenu();

View File

@ -46,11 +46,11 @@ export let properties: EnvProperties = {
piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
piwikSiteId: "6",
loginUrl: "https://beta.services.openaire.eu/uoa-user-management/openid_connect_login",
loginUrl: "https://beta.services.openaire.eu/explore-login/openid_connect_login",
userInfoUrl: "https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
logoutUrl: "https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
logoutUrl: "https://beta.services.openaire.eu/explore-login/openid_login",
cookieDomain: ".openaire.eu",

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<html lang="en" dir="ltr" vocab="http://schema.org/">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<html lang="en" dir="ltr" vocab="http://schema.org/">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<html lang="en" dir="ltr" vocab="http://schema.org/">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -19,6 +19,7 @@
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="360" />
<meta property="og:image:height" content="359" />
<meta name="robots" content="all">
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
<meta name="msvalidate.01" content="AE99823CD202A982BAA0154148234DA8" />
<meta name="yandex-verification" content="a7b057437d324960" />

View File

@ -1,12 +1,5 @@
User-Agent: *
Disallow: /upload
Disallow: /participate/direct-claim
Disallow: /participate/direct-claim?*
Disallow: /participate/claim
Disallow: /myclaims
Disallow: /myclaims?*
Disallow: /claims
Disallow: /claims?*
Crawl-delay: 30
Sitemap: https://explore.openaire.eu/sitemap.xml

View File

@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc><![CDATA[https://explore.openaire.eu]]></loc>
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find]]></loc>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find/research-outcomes]]></loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find/projects]]></loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find/organizations]]></loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find/dataproviders]]></loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/advanced/research-outcomes]]></loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/advanced/projects]]></loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/advanced/organizations]]></loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/advanced/dataproviders]]></loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/content-providers]]></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/entity-registries]]></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/journals]]></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/participate/deposit/learn-how]]></loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/participate/deposit/search]]></loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>

View File

@ -1,59 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc><![CDATA[https://explore.openaire.eu]]></loc>
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find]]></loc>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find/publications]]></loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/find/software]]></loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/advanced/publications]]></loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/advanced/software]]></loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
<loc>https://explore.openaire.eu</loc>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/content-providers]]></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<loc>https://explore.openaire.eu/search/find/?size=20</loc>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/entity-registries]]></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<loc>https://explore.openaire.eu/search/find/research-outcomes?qf=true&amp;amp;size=20</loc>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/search/journals]]></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<loc>https://explore.openaire.eu/search/find/projects?size=20</loc>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/participate/deposit-publications]]></loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
<loc>https://explore.openaire.eu/search/find/dataproviders</loc>
</url>
<url>
<loc><![CDATA[https://explore.openaire.eu/participate/deposit-datasets]]></loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
<loc>https://explore.openaire.eu/search/find/organizations</loc>
</url>
<url>
<loc>https://explore.openaire.eu/participate/deposit/learn-how</loc>
</url>
<url>
<loc>https://explore.openaire.eu/participate/claim</loc>
</url>
<url>
<loc>https://www.openaire.eu/linking</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/content-providers</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/journals</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/entity-registries</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/find/dataproviders</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/find/research-outcomes?f0=q&amp;amp;fv0=&amp;size=10&amp;sortBy=&amp;resultbestaccessright=%22Open%20Access%22&amp;type=publications&amp;qf=true&amp;size=20</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/find/research-outcomes?f0=q&amp;fv0=&amp;size=10&amp;sortBy=&amp;resultbestaccessright=%22Open%20Access%22&amp;type=publications&amp;qf=true&amp;size=20</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/find/research-outcomes?f0=q&amp;fv0=&amp;size=10&amp;sortBy=&amp;resultbestaccessright=%22Open%20Access%22&amp;type=publications,datasets,%22software%22&amp;qf=true&amp;size=20</loc>
</url>
<url>
<loc>https://explore.openaire.eu/search/find/research-outcomes?f0=q&amp;fv0=&amp;size=10&amp;sortBy=&amp;resultbestaccessright=%22Open%20Access%22&amp;type=publications,datasets,%22other%22&amp;qf=true&amp;size=20</loc>
</url>
</urlset>