From 5c65913eac6b7e1b387efb9642a04d7ae737c495 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Thu, 23 Feb 2023 08:46:13 +0000 Subject: [PATCH] Bug 29449: Show userid on "Personal details" tab To reproduce: - Login to the OPAC - Go to the "Personal details" tab - Verify the Username/userid of the logged in user is not shown anywhere To test: - Apply this patch - Reload the "Personal details" tab - Verify that "Username:" and the userid is now shown below the "Library card number" - Try adding "userid" to PatronSelfModificationBorrowerUnwantedField and verify the field is hidden as expected - Log out - Go to "Don't have an account? Register here." - Verify "Username:" is *not* shown - Sign off Signed-off-by: Laura Escamilla Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index 5bd55356a0..c49cc0481d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -247,6 +247,15 @@ [% END %] + [% IF action != 'new' %] + [% UNLESS hidden.defined('userid') %] +
  • + + [% borrower.userid | html %] +
  • + [% END %] + [% END %] + [% UNLESS hidden.defined('dateexpiry') %]
  • -- 2.39.5