Hello Tim, I took a look at our i18n files. We're running DSpace 7.6.2 and we have all the i18n labels for cookies listed in the klaro-configuration.ts file you noted above (see attached xlsx doc), except for cookies.consent.app.purposes, but the DSpace 8 i18n files <https://github.com/DSpace/dspace-angular/blob/dspace-8_x/src/assets/i18n/en.json5> don't have that one either.
Comparing our pop-up [image: KlaroPopup_022525.png] to yours [image: Klaro_030525.png] it looks like the problem SHOULD be your initial suggestion--somehow we're still using the Klaro labels and never incorporated those bug fixes. But when I check master/src/app/shared/cookies/browser-klaro.service.ts, I see: [image: Klaro_030525_Klarofixcode1.png] I've attached or browser-klaro.service.ts file, but like... it LOOKS like the patches <https://github.com/DSpace/dspace-angular/pull/2031/commits/a7a6d1b27aef5054cd84d4f487945a2bd4a7978b#diff-390f6f8dd9f4cf9d0342e816697b2a83b6bc35d8343cafd1dda8ba19bd40a128>are present. So I can't figure out why on earth it's still using the defaults. Any suggestions? Also, if we wanted to use our uOttawa brand colours instead of the default DSpace colours for the pop-up, any idea where we'd go to edit the css? I can't find an Angular component for the pop-up anywhere. Thanks, Carolyn. On Friday, February 28, 2025 at 2:36:49 PM UTC-5 DSpace Technical Support wrote: > Hi Carolyn, > > The i18n keys that Klaro uses/expects are the ones defined in the > klaro-configuration.ts file here: > > https://github.com/DSpace/dspace-angular/blob/dspace-8_x/src/app/shared/cookies/klaro-configuration.ts#L79-L121 > > Each of the strings in that setting is an i18n key that should exist in > your en.json5. If you are missing any, then that may be why your display > is not working properly. > > In the end, the Klaro popup should look like the one on our demo site: > https://demo.dspace.org. If you already accepted the settings on our > demo site, you can access the popup again by clicking on the "Cookie > settings" link in the footer. > > Tim > > On Friday, February 28, 2025 at 1:12:57 PM UTC-6 Carolyn Sullivan wrote: > >> Thanks for the clarification, Tim! >> >> So with regard to the absence of any words after 'Hi! Could we please >> enable some additional services for [BLANK]?, I'm still confused how we >> would add custom text for [BLANK]. I checked the pull request you linked, >> and it looks like we are up to date for that--our >> src/app/shared/cookies/browser-klaro.service.ts shows: >> >> [image: Klaro_022825.png] >> >> There must then just be a variable we haven't assigned a value to yet in >> the i18n packages... is this it? >> [image: Klaro_022825_i18n.png] >> >> Or is it some variable in >> the >> dspace-7-frontend/-/blob/master/src/app/shared/cookies/browser-klaro.service.spec.ts >> >> file? >> >> Thanks so much, >> Carolyn. >> >> On Thursday, February 27, 2025 at 3:41:58 PM UTC-5 DSpace Technical >> Support wrote: >> >>> Hi Carolyn, >>> >>> Klaro is used to align DSpace with privacy requirements such as GDPR. >>> Those requirements say that applications *must* ask for consent before >>> storing any cookies in a user's browser. DSpace **requires** storing some >>> cookies in a user's browser in order to maintain your session (after >>> authenticating) and similar. This means that, regardless of whether Google >>> Analytics is used, DSpace still must use Klaro in order to align with GDPR >>> (and similar) regulations. Because DSpace strives to align with GDPR, Klaro >>> is not removable at this time. (The only way to remove it would be to >>> remove it's code, there is no configuration) >>> >>> Regarding the missing "translations" for your Klaro popup, that bug was >>> fixed in 7.5 (https://github.com/DSpace/dspace-angular/pull/2031), but >>> also popped up briefly during the 8.1 development (fixed here >>> https://github.com/DSpace/dspace-angular/pull/3625). I'm guessing >>> maybe you are running code where this bug was not yet fixed. >>> >>> Tim >>> >>> On Tuesday, February 25, 2025 at 3:23:52 PM UTC-6 Carolyn Sullivan wrote: >>> >>>> Hello, >>>> >>>> Recently I noticed this pop-up: >>>> [image: KlaroPopup_022525.png] >>>> Digging suggests that it's from https://github.com/klaro-org/klaro-js >>>> >>>> A few questions: >>>> (1) We don't use Google Analytics or any other services, so I guess we >>>> don't need Klaro (am I correct?). How do I get rid of this pop-up then? >>>> Do I just delete the folder dspace-7-frontend/src/app/shared/cookies (I'm >>>> guessing no, deleting stuff seems drastic...)? >>>> (2) If we did get 'some other service' in the future, how do I edit >>>> the translations marked out >>>> in >>>> dspace-7-frontend/-/blob/master/src/app/shared/cookies/klaro-configuration.ts >>>> >>>> ? I see some of the translations marked under zz in the i18n translation >>>> pack, but nothing corresponding the 'enable some additional services for'. >>>> >>>> Thanks so much for your help! >>>> Carolyn. >>>> >>> -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/d9b6a815-4fa6-4d02-ad6d-ad801a2e0742n%40googlegroups.com.
browser-klaro.service.ts
Description: video/vnd.dlna.mpeg-tts
KlaroKeys_030525.xlsx
Description: MS-Excel 2007 spreadsheet