From 71bb4a4cab37a8824b618c05ad15caf408f39500 Mon Sep 17 00:00:00 2001 From: David Roberts Date: Fri, 22 May 2020 21:11:24 +0000 Subject: [PATCH] Bug 25590: B_streetnumber is missing from opac-memberentry.pl This patch adds the ability to add / edit the street number field (B_streetnumber) in the Alternate address area of the patron record on the OPAC. To test: 1) Check that you are unable to add a street number to the Alternate address record when logged into the OPAC 2) Apply the patch 3) Check that you can now add and edit the streetnumber field. 4) Check that it also works correctly in patron self-registration. 5) Check that it works with the field set to be mandatory as well as non-mandatory --- .../opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 13 +++++++++++++ 1 file changed, 13 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 35af40224fe..2ead0d2b7d4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -607,6 +607,19 @@ Alternate address
    + [% UNLESS hidden.defined('B_streetnumber') %] +
  1. + [% IF mandatory.defined('B_streetnumber') %] + + [% ELSE %] + + [% END %] + + + [% IF mandatory.defined('B_streetnumber') %]Required[% END %] +
  2. + [% END %] + [% UNLESS hidden.defined('B_address') %]
  3. [% IF mandatory.defined('B_address') %] -- 2.11.0