diff --git a/src/app/core/coar-notify/notify-info/notify-info.component.html b/src/app/core/coar-notify/notify-info/notify-info.component.html
index 3596acfc67..101cf867cc 100644
--- a/src/app/core/coar-notify/notify-info/notify-info.component.html
+++ b/src/app/core/coar-notify/notify-info/notify-info.component.html
@@ -8,7 +8,7 @@
{{ 'coar-notify-support.ldn-inbox.title' | translate }}
-
+
{{ 'coar-notify-support.message-moderation.title' | translate }}
diff --git a/src/app/core/coar-notify/notify-info/notify-info.component.ts b/src/app/core/coar-notify/notify-info/notify-info.component.ts
index 9c8f48218d..1abb54c11e 100644
--- a/src/app/core/coar-notify/notify-info/notify-info.component.ts
+++ b/src/app/core/coar-notify/notify-info/notify-info.component.ts
@@ -1,23 +1,26 @@
import { Component, OnInit } from '@angular/core';
import { NotifyInfoService } from './notify-info.service';
+
@Component({
selector: 'ds-notify-info',
templateUrl: './notify-info.component.html',
styleUrls: ['./notify-info.component.scss']
})
export class NotifyInfoComponent implements OnInit {
-
coarLdnEnabled: boolean;
+ coarRestApiUrl: string;
constructor(
public notifyInfoService: NotifyInfoService,
- ) { }
+ ) {
+ }
ngOnInit() {
+ this.coarRestApiUrl = this.notifyInfoService.getCoarLdnRestApiUrl();
+
this.notifyInfoService.isCoarConfigEnabled().subscribe(value => {
this.coarLdnEnabled = value;
});
}
-
}
diff --git a/src/app/core/coar-notify/notify-info/notify-info.service.ts b/src/app/core/coar-notify/notify-info/notify-info.service.ts
index 6183a1fb30..a88181a9ab 100644
--- a/src/app/core/coar-notify/notify-info/notify-info.service.ts
+++ b/src/app/core/coar-notify/notify-info/notify-info.service.ts
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
import { getFirstSucceededRemoteData } from '../../shared/operators';
import { ConfigurationDataService } from '../../data/configuration-data.service';
import { map, Observable } from 'rxjs';
+import { DefaultAppConfig } from '../../../../config/default-app-config';
@Injectable({
providedIn: 'root'
@@ -22,4 +23,16 @@ export class NotifyInfoService {
})
);
}
+
+ getCoarLdnRestApiUrl(): string {
+ const appConfig = new DefaultAppConfig();
+ const restConfig = appConfig.rest;
+
+ const ssl = restConfig.ssl;
+ const host = restConfig.host;
+ const port = restConfig.port;
+ const namespace = restConfig.nameSpace;
+
+ return `${ssl ? 'https' : 'http'}://${host}:${port}${namespace}`;
+ }
}
diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5
index 096e91bb12..65bf1ebaaa 100644
--- a/src/assets/i18n/en.json5
+++ b/src/assets/i18n/en.json5
@@ -873,7 +873,7 @@
"coar-notify-support.ldn-inbox.title": "LDN InBox",
- "coar-notify-support.ldn-inbox.content": "For your convenience, our LDN (Linked Data Notifications) InBox is easily accessible at ${restApiUrl}/ldn/inbox
. The LDN InBox enables seamless communication and data exchange, ensuring efficient and effective collaboration.",
+ "coar-notify-support.ldn-inbox.content": "For your convenience, our LDN (Linked Data Notifications) InBox is easily accessible at {restApiUrl}ldn/inbox
. The LDN InBox enables seamless communication and data exchange, ensuring efficient and effective collaboration.",
"coar-notify-support.message-moderation.title": "Message Moderation",