mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
92701: Fix privacy string for klaro and add documentation
This commit is contained in:
@@ -3,7 +3,3 @@ rest:
|
||||
host: api7.dspace.org
|
||||
port: 443
|
||||
nameSpace: /server
|
||||
|
||||
info:
|
||||
enableEndUserAgreement: false
|
||||
enablePrivacyStatement: false
|
||||
|
@@ -63,6 +63,11 @@ export class BrowserKlaroService extends KlaroService {
|
||||
* - Add and translate klaro configuration messages
|
||||
*/
|
||||
initialize() {
|
||||
if (!environment.info.enablePrivacyStatement) {
|
||||
delete this.klaroConfig.privacyPolicy;
|
||||
this.klaroConfig.translations.en.consentNotice.description = 'cookies.consent.content-notice.description.no-privacy';
|
||||
}
|
||||
|
||||
this.translateService.setDefaultLang(environment.defaultLanguage);
|
||||
|
||||
const user$: Observable<EPerson> = this.getUser$();
|
||||
@@ -90,11 +95,6 @@ export class BrowserKlaroService extends KlaroService {
|
||||
this.translateConfiguration();
|
||||
Klaro.setup(this.klaroConfig);
|
||||
});
|
||||
|
||||
if (!environment.info.enablePrivacyStatement) {
|
||||
delete this.klaroConfig.privacyPolicy;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1225,6 +1225,8 @@
|
||||
|
||||
"cookies.consent.content-notice.description": "We collect and process your personal information for the following purposes: <strong>Authentication, Preferences, Acknowledgement and Statistics</strong>. <br/> To learn more, please read our {privacyPolicy}.",
|
||||
|
||||
"cookies.consent.content-notice.description.no-privacy": "We collect and process your personal information for the following purposes: <strong>Authentication, Preferences, Acknowledgement and Statistics</strong>.",
|
||||
|
||||
"cookies.consent.content-notice.learnMore": "Customize",
|
||||
|
||||
"cookies.consent.content-modal.description": "Here you can see and customize the information that we collect about you.",
|
||||
|
@@ -325,6 +325,14 @@ export class DefaultAppConfig implements AppConfig {
|
||||
image: false,
|
||||
video: false
|
||||
};
|
||||
// Whether the end-user-agreement and privacy policy feature should be enabled or not.
|
||||
// Disabling the end user agreement feature will result in:
|
||||
// - Users no longer being forced to accept the end-user-agreement before they can access the repository
|
||||
// - A 404 page if you manually try to navigate to the end-user-agreement page at info/end-user-agreement
|
||||
// - All end-user-agreement related links and pages will be removed from the UI (e.g. in the footer)
|
||||
// Disabling the privacy policy feature will result in:
|
||||
// - A 404 page if you manually try to navigate to the privacy policy page at info/privacy
|
||||
// - All mentions of the privacy policy being removed from the UI (e.g. in the footer)
|
||||
info: InfoConfig = {
|
||||
enableEndUserAgreement: true,
|
||||
enablePrivacyStatement: true
|
||||
|
Reference in New Issue
Block a user