@@ -, +, @@ personal patron information in the circulation page city set then these are displayed in the left hand side of the screen under the patrons name. Otherwise if all/any of these fields are not set for the patron then the text: "No stored." is displayed. 'HidePersonalPatronDetailOnCirculation' has been added, which has the default value 'Dont' information is still displayed on the circulation page number, email address, street address and city are now hidden in the circulation page --- ...de_personal_patron_data_on_circulation_page.sql | 1 + .../intranet-tmpl/prog/en/includes/circ-menu.inc | 66 +++++++++++----------- .../en/modules/admin/preferences/circulation.pref | 6 ++ 3 files changed, 41 insertions(+), 32 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql --- a/installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql +++ a/installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql @@ -0,0 +1, @@ +INSERT INTO systempreferences (variable, value, options, explanation) VALUES ('HidePersonalPatronDetailOnCirculation', 0, 'YesNo', 'Hide patrons phone number, email address, street address and city in the circulation page'); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -17,43 +17,45 @@ [% END %] [% END %] - [% IF Koha.Preference( 'AddressFormat' ) %] - [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] - [% ELSE %] - [% INCLUDE 'member-display-address-style-us.inc' %] - [% END %] + [% IF !(Koha.Preference('HidePersonalPatronDetailOnCirculation')) %] + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] + [% ELSE %] + [% INCLUDE 'member-display-address-style-us.inc' %] + [% END %] - [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]
  • - [% IF ( patron.phone ) %] - [% patron.phone | html %] - [% ELSE %] - [% IF ( patron.mobile ) %] - [% patron.mobile | html %] + [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]
  • + [% IF ( patron.phone ) %] + [% patron.phone | html %] [% ELSE %] - [% IF ( patron.phonepro ) %] - [% patron.phonepro | html %] + [% IF ( patron.mobile ) %] + [% patron.mobile | html %] + [% ELSE %] + [% IF ( patron.phonepro ) %] + [% patron.phonepro | html %] + [% END %] + [% END %] + [% END %]
  • [% END %] + [% IF ( patron.email ) %] +
  • [% patron.email | html %]
  • + [% ELSE %] + [% IF ( patron.emailpro ) %] +
  • [% patron.emailpro | html %]
  • [% END %] [% END %] - [% END %][% END %] - [% IF ( patron.email ) %] -
  • [% patron.email | html %]
  • - [% ELSE %] - [% IF ( patron.emailpro ) %] -
  • [% patron.emailpro | html %]
  • - [% END %] - [% END %] - [% UNLESS ( patron.address or patron.address2 ) %] -
  • No address stored.
  • - [% END %] - [% UNLESS ( patron.city ) %] -
  • No city stored.
  • - [% END %] - [% UNLESS ( patron.phone or patron.mobile or patron.phonepro) %] -
  • No phone stored.
  • - [% END %] - [% UNLESS ( patron.email or patron.emailpro) %] -
  • No email stored.
  • + [% UNLESS ( patron.address or patron.address2 ) %] +
  • No address stored.
  • + [% END %] + [% UNLESS ( patron.city ) %] +
  • No city stored.
  • + [% END %] + [% UNLESS ( patron.phone or patron.mobile or patron.phonepro) %] +
  • No phone stored.
  • + [% END %] + [% UNLESS ( patron.email or patron.emailpro) %] +
  • No email stored.
  • + [% END %] [% END %] [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -509,6 +509,12 @@ Circulation: yes: Cumulate no: "Don't cumulate" - the restriction periods. + - + - pref: HidePersonalPatronDetailOnCirculation + choices: + yes: Do + no: "Don't" + - Hide patrons phone number, email address, street address and city in the circulation page Holds Policy: - - pref: AllowHoldItemTypeSelection --