From 46a0571e9a33ac60a8bbba0aa7571f8334f8d07b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Nov 2019 16:43:00 +0100 Subject: [PATCH] Bug 24151: Adding keep_for_anonymized to the UI Sponsored-by: Association KohaLa - https://koha-fr.org/ Signed-off-by: Signed-off-by: Sonia Bouis Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- admin/patron-attr-types.pl | 2 ++ .../prog/en/modules/admin/patron-attr-types.tt | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/admin/patron-attr-types.pl b/admin/patron-attr-types.pl index 8aab052be4..b1e0a4d422 100755 --- a/admin/patron-attr-types.pl +++ b/admin/patron-attr-types.pl @@ -120,6 +120,7 @@ sub add_update_attribute_type { my $opac_display = $input->param('opac_display') ? 1 : 0; my $opac_editable = $input->param('opac_editable') ? 1 : 0; my $staff_searchable = $input->param('staff_searchable') ? 1 : 0; + my $keep_for_pseudonymization = $input->param('keep_for_pseudonymization') ? 1 : 0; my $authorised_value_category = $input->param('authorised_value_category'); my $display_checkout = $input->param('display_checkout') ? 1 : 0; my $category_code = $input->param('category_code') || undef; @@ -152,6 +153,7 @@ sub add_update_attribute_type { opac_display => $opac_display, opac_editable => $opac_editable, staff_searchable => $staff_searchable, + keep_for_pseudonymization => $keep_for_pseudonymization, authorised_value_category => $authorised_value_category, display_checkout => $display_checkout, category_code => $category_code, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt index 862dad52fc..945ca3a78c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE Koha %] [% USE AuthorisedValues %] [% USE Branches %] [% USE scalar %] @@ -135,6 +136,18 @@ Check to show this attribute in the brief information panel in the patron's record (staff interface). + [% IF Koha.Preference('Pseudonymization') %] +
  • + + [% IF attribute_type AND attribute_type.keep_for_pseudonymization %] + + [% ELSE %] + + [% END %] + Check to make this attribute copied to the patron's pseudonymized attributes. +
  • + [% END %] +