[Explore|Trunk]
-apply changes for baseLink, domain properties git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59420 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
0bcb43914c
commit
e7ccc78b3f
|
@ -66,7 +66,8 @@
|
||||||
"pagingLimit": 20,
|
"pagingLimit": 20,
|
||||||
"resultsPerPage": 10,
|
"resultsPerPage": 10,
|
||||||
|
|
||||||
"baseLink" : "https://beta.explore.openaire.eu",
|
"baseLink" : "",
|
||||||
|
"domain": "https://beta.explore.openaire.eu",
|
||||||
|
|
||||||
"searchLinkToPublication" : "/search/publication?articleId=",
|
"searchLinkToPublication" : "/search/publication?articleId=",
|
||||||
"searchLinkToProject" : "/search/project?projectId=",
|
"searchLinkToProject" : "/search/project?projectId=",
|
||||||
|
|
|
@ -67,7 +67,8 @@
|
||||||
"pagingLimit": 20,
|
"pagingLimit": 20,
|
||||||
"resultsPerPage": 10,
|
"resultsPerPage": 10,
|
||||||
|
|
||||||
"baseLink" : "https://explore.openaire.eu",
|
"baseLink" : "",
|
||||||
|
"domain":"https://explore.openaire.eu",
|
||||||
|
|
||||||
"searchLinkToPublication" : "/search/publication?articleId=",
|
"searchLinkToPublication" : "/search/publication?articleId=",
|
||||||
"searchLinkToProject" : "/search/project?projectId=",
|
"searchLinkToProject" : "/search/project?projectId=",
|
||||||
|
|
|
@ -66,7 +66,8 @@
|
||||||
"pagingLimit": 20,
|
"pagingLimit": 20,
|
||||||
"resultsPerPage": 10,
|
"resultsPerPage": 10,
|
||||||
|
|
||||||
"baseLink" : "https://test.explore.openaire.eu",
|
"baseLink" : "",
|
||||||
|
"domain":"https://test.explore.openaire.eu",
|
||||||
|
|
||||||
"searchLinkToPublication" : "/search/publication?articleId=",
|
"searchLinkToPublication" : "/search/publication?articleId=",
|
||||||
"searchLinkToProject" : "/search/project?projectId=",
|
"searchLinkToProject" : "/search/project?projectId=",
|
||||||
|
|
|
@ -20,8 +20,8 @@ import {ConfigurationService} from "./openaireLibrary/utils/configuration/config
|
||||||
|
|
||||||
<navbar *ngIf="properties" [portal]="properties.dashboard" [properties]=properties [onlyTop]=false [user]="user"
|
<navbar *ngIf="properties" [portal]="properties.dashboard" [properties]=properties [onlyTop]=false [user]="user"
|
||||||
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
|
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
|
||||||
<schema2jsonld *ngIf="properties" [URL]="properties.baseLink"
|
<schema2jsonld *ngIf="properties" [URL]="properties.domain+properties.baseLink"
|
||||||
[logoURL]="properties.baseLink+'/assets/common-assets/logo-small-explore.png'" type="home"
|
[logoURL]="properties.domain+properties.baseLink+'/assets/common-assets/logo-small-explore.png'" type="home"
|
||||||
name="OpenAIRE | Find and Share research" description="OpenAIRE Explore: Over 100M of research deduplicated, 170K research software, 11M research data. One of the largest open scholarly records collection worldwide."></schema2jsonld>
|
name="OpenAIRE | Find and Share research" description="OpenAIRE Explore: Over 100M of research deduplicated, 170K research software, 11M research data. One of the largest open scholarly records collection worldwide."></schema2jsonld>
|
||||||
<div class="custom-main-content">
|
<div class="custom-main-content">
|
||||||
<main>
|
<main>
|
||||||
|
|
|
@ -203,11 +203,11 @@ export class HomeComponent {
|
||||||
this.subs.push(this.route.data
|
this.subs.push(this.route.data
|
||||||
.subscribe((data: { envSpecific: EnvProperties }) => {
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
||||||
this.properties = data.envSpecific;
|
this.properties = data.envSpecific;
|
||||||
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url, false);
|
this.seoService.createLinkForCanonicalURL(this.properties.domain + this.properties.baseLink+this._router.url, false);
|
||||||
this.getPageContents();
|
this.getPageContents();
|
||||||
|
|
||||||
if(this.properties!=null){
|
if(this.properties!=null){
|
||||||
var url = this.properties.baseLink+this._router.url;
|
var url = this.properties.domain + this.properties.baseLink+this._router.url;
|
||||||
this._meta.updateTag({content:url},"property='og:url'");
|
this._meta.updateTag({content:url},"property='og:url'");
|
||||||
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
|
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
|
||||||
this.subs.push(this._piwikService.trackView(this.properties, "OpenAIRE").subscribe());
|
this.subs.push(this._piwikService.trackView(this.properties, "OpenAIRE").subscribe());
|
||||||
|
|
|
@ -65,7 +65,8 @@
|
||||||
"pagingLimit": 20,
|
"pagingLimit": 20,
|
||||||
"resultsPerPage": 10,
|
"resultsPerPage": 10,
|
||||||
|
|
||||||
"baseLink" : "https://beta.explore.openaire.eu",
|
"baseLink" : "",
|
||||||
|
"domain":"https://beta.explore.openaire.eu",
|
||||||
|
|
||||||
"searchLinkToPublication" : "/search/publication?articleId=",
|
"searchLinkToPublication" : "/search/publication?articleId=",
|
||||||
"searchLinkToProject" : "/search/project?projectId=",
|
"searchLinkToProject" : "/search/project?projectId=",
|
||||||
|
|
|
@ -68,8 +68,9 @@ export let properties: EnvProperties = {
|
||||||
csvLimit: 2000,
|
csvLimit: 2000,
|
||||||
pagingLimit: 20,
|
pagingLimit: 20,
|
||||||
resultsPerPage: 10,
|
resultsPerPage: 10,
|
||||||
|
|
||||||
baseLink: "https://beta.explore.openaire.eu",
|
"baseLink" : "/",
|
||||||
|
"domain":"https://beta.explore.openaire.eu",
|
||||||
|
|
||||||
searchLinkToResult: "/search/result?id=",
|
searchLinkToResult: "/search/result?id=",
|
||||||
searchLinkToPublication: "/search/publication?articleId=",
|
searchLinkToPublication: "/search/publication?articleId=",
|
||||||
|
|
|
@ -69,8 +69,9 @@ export let properties: EnvProperties = {
|
||||||
csvLimit: 2000,
|
csvLimit: 2000,
|
||||||
pagingLimit: 20,
|
pagingLimit: 20,
|
||||||
resultsPerPage: 10,
|
resultsPerPage: 10,
|
||||||
|
|
||||||
baseLink: "https://explore.openaire.eu",
|
"baseLink" : "/",
|
||||||
|
"domain": "https://explore.openaire.eu",
|
||||||
|
|
||||||
searchLinkToResult: "/search/result?id=",
|
searchLinkToResult: "/search/result?id=",
|
||||||
searchLinkToPublication: "/search/publication?articleId=",
|
searchLinkToPublication: "/search/publication?articleId=",
|
||||||
|
|
|
@ -68,8 +68,9 @@ export let properties: EnvProperties = {
|
||||||
csvLimit: 2000,
|
csvLimit: 2000,
|
||||||
pagingLimit: 20,
|
pagingLimit: 20,
|
||||||
resultsPerPage: 10,
|
resultsPerPage: 10,
|
||||||
|
|
||||||
baseLink: "https://test.explore.openaire.eu",
|
"baseLink" : "/",
|
||||||
|
"domain": "https://test.explore.openaire.eu",
|
||||||
|
|
||||||
searchLinkToResult: "/search/result?id=",
|
searchLinkToResult: "/search/result?id=",
|
||||||
searchLinkToPublication: "/search/publication?articleId=",
|
searchLinkToPublication: "/search/publication?articleId=",
|
||||||
|
|
|
@ -72,8 +72,9 @@ export let properties: EnvProperties = {
|
||||||
csvLimit: 2000,
|
csvLimit: 2000,
|
||||||
pagingLimit: 20,
|
pagingLimit: 20,
|
||||||
resultsPerPage: 10,
|
resultsPerPage: 10,
|
||||||
|
|
||||||
baseLink: "https://beta.explore.openaire.eu",
|
"baseLink" : "",
|
||||||
|
"domain": "https://beta.explore.openaire.eu",
|
||||||
|
|
||||||
searchLinkToResult: "/search/result?id=",
|
searchLinkToResult: "/search/result?id=",
|
||||||
searchLinkToPublication: "/search/publication?articleId=",
|
searchLinkToPublication: "/search/publication?articleId=",
|
||||||
|
|
Loading…
Reference in New Issue