92701: Fix privacy string for klaro and add documentation

This commit is contained in:
Jens Vannerum
2022-08-05 13:12:52 +02:00
parent f2e977c402
commit 4dcf6a345a
4 changed files with 15 additions and 9 deletions

View File

@@ -3,7 +3,3 @@ rest:
host: api7.dspace.org
port: 443
nameSpace: /server
info:
enableEndUserAgreement: false
enablePrivacyStatement: false

View File

@@ -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;
}
}
/**

View File

@@ -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.",

View File

@@ -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