Bug 29449: Show userid on "Personal details" tab
authorMagnus Enger <magnus@libriotech.no>
Thu, 23 Feb 2023 08:46:13 +0000 (08:46 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Mar 2023 10:12:51 +0000 (12:12 +0200)
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 <laura.escamilla@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt

index 5bd5535..c49cc04 100644 (file)
                                             </li>
                                             [% END %]
 
+                                            [% IF action != 'new' %]
+                                                [% UNLESS hidden.defined('userid') %]
+                                                <li>
+                                                    <label>Username:</label>
+                                                    [% borrower.userid | html  %]
+                                                </li>
+                                                [% END %]
+                                            [% END %]
+
                                             [% UNLESS hidden.defined('dateexpiry') %]
                                             <li>
                                                 <label>Expiration date:</label>