add Robots.txt, set proper configuration in .angular-cli.jon

add JSONLD, and rel canonical url for client

Claims:
	add info link



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@53745 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-11-14 14:16:19 +00:00
parent 888ff954f6
commit 1d5e6c0189
13 changed files with 65 additions and 65 deletions

View File

@ -9,7 +9,7 @@
"outDir": "dist/browser",
"assets": [
"assets",
"favicon.ico"
"robots.txt"
],
"index": "index.html",
"main": "main.ts",
@ -38,7 +38,7 @@
"outDir": "dist/server",
"assets": [
"assets",
"favicon.ico"
"robots.txt"
],
"index": "index.html",
"main": "main.server.ts",

View File

@ -1,4 +1,5 @@
{
"productionMode" : false,
"enablePiwikTrack" : true,
"enableHelper" : true,
"useCache" : true,
@ -37,8 +38,6 @@
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
"logoutOpenaireUrl" :"http://dl067.madgik.di.uoa.gr/idp/profile/Logout",
"cookieDomain" :".openaire.eu",
"feedbackmail" :"openaire.test@gmail.com",
@ -65,6 +64,7 @@
"searchLinkToProject" : "/search/project?projectId=",
"searchLinkToDataProvider" : "/search/dataprovider?datasourceId=",
"searchLinkToDataset" : "/search/dataset?datasetId=",
"searchLinkToOrp" : "/search/other?orpId=",
"searchLinkToOrganization" : "/search/organization?organizationId=",
"searchLinkToPublications" : "/search/find/publications",
@ -88,10 +88,8 @@
"searchLinkToAdvancedOrps" : "/search/advanced/other",
"searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders",
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
"searchLinkToAdvancedPeople" : "/search/advanced/people",
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
"showLastIndexInformationLink" : true,
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId="
"showLastIndexInformationLink" : false,
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
"claimsInformationLink": "https://beta.openaire.eu/linking"
}

View File

@ -1,11 +1,13 @@
import {Component, ViewChild, Input} from '@angular/core';
import {Location} from '@angular/common';
import {Observable} from 'rxjs/Observable';
import {ActivatedRoute} from '@angular/router';
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
@Component({
selector: 'openaire-claims-admin',
template: `
<claims-admin>
<claims-admin [claimsInfoURL]=claimsInfoURL moreClaimsURL="/participate/claim">
</claims-admin>
`,
@ -13,4 +15,16 @@ import {Observable} from 'rxjs/Observable';
})
export class OpenaireClaimsAdminComponent {
claimsInfoURL:string;
constructor (private route: ActivatedRoute) {
}
public ngOnInit() {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.claimsInfoURL = data.envSpecific.claimsInformationLink;
});
}
}

View File

@ -1,21 +1,29 @@
import {Component, Input} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {Observable} from 'rxjs/Observable';
import {ActivatedRoute} from '@angular/router';
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
@Component({
selector: 'openaire-my-claims',
template: `
<my-claims>
<my-claims showLatestClaims=true [claimsInfoURL]=claimsInfoURL>
</my-claims>
`
})
export class OpenaireMyClaimsComponent {
constructor () {
claimsInfoURL:string;
constructor (private route: ActivatedRoute) {
}
ngOnInit() {
}
public ngOnInit() {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.claimsInfoURL = data.envSpecific.claimsInformationLink;
});
}
}

View File

@ -41,7 +41,7 @@
</div>
</div>
</div>
<schema2jsonld [URL]="properties.baseLink" [logoURL] = "properties.baseLink+'/assets/common-assets/logo-small-explore.png'" type="home" name="OpenAIRE Explore"></schema2jsonld>
<div class=" uk-section uk-section-small">
@ -414,7 +414,7 @@
Explore all OA research results. Link all your research. Build your profile
</div>
<p>
<a href="https://explore.openaire.eu" class="el-link uk-button uk-button-default">
<a href="https://beta.explore.openaire.eu" class="el-link uk-button uk-button-default">
OpenAIRE.EXPLORE
</a>
</p>

View File

@ -19,6 +19,7 @@ import { RouterHelper} from '../openaireLibrary/utils/routerHelper.class';
import { EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
import { ErrorCodes} from '../openaireLibrary/utils/properties/errorCodes';
import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
import { SEOService } from '../openaireLibrary/sharedComponents/SEO/SEO.service';
@Component({
selector: 'home',
@ -61,17 +62,19 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
private _searchOrganizationsService: SearchOrganizationsService,
private _refineFieldResultsService:RefineFieldResultsService,
private location: Location, private _piwikService:PiwikService,
private config: ConfigurationService, private _meta: Meta, private _title: Title
private config: ConfigurationService, private _meta: Meta, private _title: Title, private seoService: SEOService
) {
var description = "open access, research, scientific publication, European Commission, EC, FP7, ERC, Horizon 2020, H2020, search, projects ";
var description = "openAIRE explore, open access, publications, research results, European commission, search";
var title = "OpenAIRE";
var title = "OpenAIRE | Explore";
this._title.setTitle(title);
this._meta.updateTag({content:description},"name='description'");
this._meta.updateTag({content:description},"property='og:description'");
this._meta.updateTag({content:title},"property='og:title'");
this.seoService.createLinkForCanonicalURL(false);
//this.fetchDataproviders = new FetchDataproviders(this._searchDataprovidersService);
}

View File

@ -20,6 +20,8 @@ import {RefineFieldResultsServiceModule} from '../openaireLibrary/services/refin
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {Schema2jsonldModule} from '../openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module';
import { SEOServiceModule } from '../openaireLibrary/sharedComponents/SEO/SEOService.module';
import {ErrorMessagesModule} from '../openaireLibrary/utils/errorMessages.module';
@ -34,7 +36,8 @@ import {ErrorMessagesModule} from '../openaireLibrary/utils/errorMessages.module
PiwikServiceModule,
HomeRoutingModule,
HelperModule,
ErrorMessagesModule
ErrorMessagesModule,
Schema2jsonldModule, SEOServiceModule
],
declarations: [
HomeComponent

View File

@ -3,7 +3,8 @@ import {Component, ViewChild, ElementRef} from '@angular/core';
@Component({
selector: 'openaire-search-find',
template: `
<search-find></search-find>
<search-find logoURL = "/assets/common-assets/logo-small-explore.png" name="OpenAIRE Explore"></search-find>
`,
})
export class OpenaireSearchComponent{

View File

@ -1,4 +1,5 @@
{
"productionMode" : false,
"enablePiwikTrack" : false,
"enableHelper" : true,
"useCache" : false,
@ -95,5 +96,6 @@
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
"showLastIndexInformationLink" : true,
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId="
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
"claimsInformationLink": "https://www.openaire.eu/linking-beta"
}

View File

@ -12,8 +12,8 @@
--explore-portal-lower-tone: #a0462c;
--provide-portal-lower-tone: #3A8FA3;
--monitor-portal-lower-tone: #b48536;
--connect-portal-lower-tone: #7c9144;
--monitor-portal-lower-tone: #7c9144;
--connect-portal-lower-tone: #b48536;
--develop-portal-lower-tone: #9f4e7e;
}

View File

@ -5,11 +5,6 @@
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc><![CDATA[https://beta.explore.openaire.eu/participate/deposit-publications-data]]></loc>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc><![CDATA[https://beta.explore.openaire.eu/participate/claim]]></loc>
<changefreq>weekly</changefreq>

View File

@ -7,13 +7,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="open access, research, scientific publication, European Commission, EC, FP7, ERC, Horizon 2020, H2020, search, projects "/>
<meta name="description" content="openAIRE explore, open access, publications, research results, European commission, search"/>
<meta property="og:description" content="open access, research, scientific publication, European Commission, EC, FP7, ERC, Horizon 2020, H2020, search, projects "/>
<meta property="og:title" content="Search OpenAIRE"/>
<meta property="og:description" content="openAIRE explore, open access, publications, research results, European commission, search"/>
<meta property="og:title" content="OpenAIRE - Explore"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://beta.explore.openaire.eu"/>
<meta property="og:site_name" content="OpenAIRE"/>
<meta property="og:site_name" content="OpenAIRE - Explore"/>
<meta property="og:image" content="assets/common-assets/common/Symbol.png"/>
<meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png" />
@ -69,42 +69,14 @@ $(document).ready(function(){
</script>
<!-- <script src="assets/common-assets/common/uikit.js"></script> -->
<!-- <script src="assets/common-assets/common/uikit-icons-max.js"></script> -->
<link rel="stylesheet" href="assets/common-assets/common/theme.css">
<link rel="stylesheet" href="assets/common-assets/common/custom.css">
<!-- <link rel="stylesheet" href="assets/common-assets/common/yootheme.css"> -->
<link rel="stylesheet" href="assets/common-assets/library.css">
<link rel="stylesheet" href="assets/explore-custom.css">
<!-- <script async src="assets/common-assets/common/theme.js"></script> -->
<!-- Google sitename markup-->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "OpenAIRE",
"url" : "http://beta.explore.openaire.eu"
}
</script>
<!-- End of Google sitename markup-->
<!-- Google sitelinks search markup-->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url" : "http://beta.explore.openaire.eu",
"potentialAction": {
"@type": "SearchAction",
"target": "http://beta.explore.openaire.eu/search/find/?keyword={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<script src="assets/common-assets/clipboard.min.js"></script>
<!--script type='text/javascript' src="node_modules/clipboard/dist/clipboard.min.js"></script-->

View File

@ -0,0 +1,4 @@
User-Agent: *
Disallow: /cache
Disallow: /upload
Disallow: /