Skip to content
Snippets Groups Projects
Commit a2a3eb03 authored by Robert Lange's avatar Robert Lange
Browse files

refs #20154 [fid_adlr] allow user to delete own account

* add link in menu
* add adlr specific translations
* fix undefined url in lightbox.js, also refs #16833
* use generic fid name from acquisitions
parent 0c449535
Branches
Tags instance/finc/staging/20210930_111555
No related merge requests found
...@@ -191,7 +191,7 @@ VuFind.register('lightbox', function Lightbox() { ...@@ -191,7 +191,7 @@ VuFind.register('lightbox', function Lightbox() {
} }
/* remove save search icon by disabled one if save request succeeded */ /* remove save search icon by disabled one if save request succeeded */
if (_originalUrl.match(/SaveSearch\?save=/)) { if (_originalUrl !== undefined && _originalUrl.match(/SaveSearch\?save=/)) {
$("#save-search").toggleClass("hidden"); $("#save-search").toggleClass("hidden");
$("#saved-search").toggleClass("hidden"); $("#saved-search").toggleClass("hidden");
} }
......
...@@ -74,3 +74,5 @@ save_privacy = Datenschutzeinstellung gespeichert ...@@ -74,3 +74,5 @@ save_privacy = Datenschutzeinstellung gespeichert
label_newsletter_profile = Newsletter gewünscht label_newsletter_profile = Newsletter gewünscht
newsletter_1 = ja newsletter_1 = ja
newsletter_0 = nein newsletter_0 = nein
auth_error_account_deleted = Ihr Konto ist zur Löschung vorgemerkt und Ihre Daten werden beim nächsten Wartungslauf endgültig entfernt. Bitte kontaktieren Sie uns unter info@adlr.link, um eine Entsperrung vorzunehmen und eine Löschung zu verhindern.
...@@ -66,4 +66,6 @@ save_privacy = Privacy setting saved ...@@ -66,4 +66,6 @@ save_privacy = Privacy setting saved
#19182 #19182
label_newsletter_profile = Newsletter requested label_newsletter_profile = Newsletter requested
newsletter_1 = yes newsletter_1 = yes
newsletter_0 = no newsletter_0 = no
\ No newline at end of file
auth_error_account_deleted = Your account is marked for deletion and your data will be permanently removed during the next maintenance run. Please contact us at info@adlr.link to unblock and prevent deletion.
...@@ -68,7 +68,9 @@ $isRecordOrdered = $this->getit($this->driver)->isRecordOrdered(); ...@@ -68,7 +68,9 @@ $isRecordOrdered = $this->getit($this->driver)->isRecordOrdered();
</div> </div>
<?php elseif ($user && $isRecordOrdered): ?> <?php elseif ($user && $isRecordOrdered): ?>
<div class="getitbox-notices"> <div class="getitbox-notices">
<?=$this->translate('fid::acquisition_pda_ordered')?> <?= $this->translate("fid::acquisition_pda_ordered", [
'%%fidname%%' => $this->translate("fid::acquisition_fid_name")
]); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<!-- fid_adlr - recordtab - acquistionpda - END --> <!-- fid_adlr - recordtab - acquistionpda - END -->
...@@ -97,6 +97,13 @@ ...@@ -97,6 +97,13 @@
<?= $this->transEsc('fid::username_change_link') ?> <?= $this->transEsc('fid::username_change_link') ?>
</a> </a>
<a href="<?= $this->url('fid/user/delete') ?>" data-lightbox>
<span class="no-padding">
<i class="icon icon-trash-2" aria-hidden="true"></i>
</span>
<?= $this->transEsc('fid::user_delete_link') ?>
</a>
<?php /* refs #16033 contact link */ ?> <?php /* refs #16033 contact link */ ?>
<a href="<?= $this->url('feedback-home') ?>" data-lightbox> <a href="<?= $this->url('feedback-home') ?>" data-lightbox>
<span class="no-padding"> <span class="no-padding">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment