Properties: add "environment" property
Claim Admin: set "externalPortalUrl" property git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@54667 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
2055bc7487
commit
a7bbe6110d
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"environment":"beta",
|
||||
"enablePiwikTrack" : false,
|
||||
"enableHelper" : true,
|
||||
"useCache" : true,
|
||||
|
@ -38,7 +39,7 @@
|
|||
"logoutOpenaireUrl" :"http://dl067.madgik.di.uoa.gr/idp/profile/Logout",
|
||||
|
||||
"cookieDomain" :".openaire.eu",
|
||||
|
||||
|
||||
"feedbackQuestionaire" :"https://docs.google.com/forms/d/e/1FAIpQLSf7AJ-1MG98qeOKL4BUNBk47AAl5MPJC6CdRu19xIhwApN3NA/viewform",
|
||||
"feedbackmail" :"openaire.test@gmail.com",
|
||||
"feedbackmailForMissingEntities": "feedback@openaire.eu",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"environment":"production",
|
||||
"enablePiwikTrack" : false,
|
||||
"enableHelper" : true,
|
||||
"useCache" : true,
|
||||
|
|
|
@ -5,7 +5,7 @@ import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properti
|
|||
|
||||
@Component({
|
||||
selector: 'claims',
|
||||
template: ` <claims-admin fetchBy="Context" [fetchId]=communityPid [isConnect]="true" [claimsInfoURL]=claimsInfoURL [moreClaimsURL]="'https://beta.'+communityPid+'.openaire.eu/participate/claim'">
|
||||
template: ` <claims-admin fetchBy="Context" [fetchId]=communityPid [isConnect]="true" [claimsInfoURL]=claimsInfoURL [externalPortalUrl]="externalPortalUrl">
|
||||
</claims-admin>`,
|
||||
})
|
||||
|
||||
|
@ -13,6 +13,7 @@ export class ClaimsComponent implements OnInit {
|
|||
|
||||
communityPid:string;
|
||||
claimsInfoURL:string;
|
||||
externalPortalUrl:string ="";
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
|
@ -23,6 +24,7 @@ export class ClaimsComponent implements OnInit {
|
|||
this.route.data.subscribe((data: { envSpecific: EnvProperties }) => {
|
||||
this.claimsInfoURL = data.envSpecific.claimsInformationLink;
|
||||
console.log(this.claimsInfoURL);
|
||||
this.externalPortalUrl = "https://"+(data.envSpecific.environment =='beta'?'beta.':'')+((this.communityPid == "openaire")?"explore":this.communityPid)+".openaire.eu"
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
"environment":"production",
|
||||
"enablePiwikTrack" : false,
|
||||
"enableHelper" : false,
|
||||
"useCache" : false,
|
||||
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
|
||||
"framesAPIURL" : "https://beta.openaire.eu/stats3/",
|
||||
"claimsAPIURL" : "http://duffy.di.uoa.gr:8080/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/",
|
||||
"claimsAPIURL" : "http://scoobydoo.di.uoa.gr:8080/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/",
|
||||
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",
|
||||
"statisticsFrameAPIURL":"https://beta.openaire.eu/stats/",
|
||||
"searchAPIURLLAst" : "https://beta.services.openaire.eu/search/v2/api/",
|
||||
|
|
Loading…
Reference in New Issue