Bug 23299: Switch address1 and streetnumber for German address format on opac-memberentry
Test plan: Toggle value of pref AddressFormat and verify change on opac-memberentry. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
44a19e2d46
commit
b2c34bde8b
1 changed files with 17 additions and 12 deletions
|
@ -7,6 +7,20 @@
|
|||
[% USE KohaDates %]
|
||||
[% USE Math %]
|
||||
[% SET userupdateview = 1 %]
|
||||
[% BLOCK streetnumber %]
|
||||
[% UNLESS hidden.defined('streetnumber') %]
|
||||
<li>
|
||||
[% IF mandatory.defined('streetnumber') %]
|
||||
<label for="borrower_streetnumber" class="required">Street number:</label>
|
||||
[% ELSE %]
|
||||
<label for="borrower_streetnumber">Street number:</label>
|
||||
[% END %]
|
||||
|
||||
<input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber | html %]" />
|
||||
[% IF mandatory.defined('streetnumber') %]<span class="required">Required</span>[% END %]
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › [% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %]</title>
|
||||
|
@ -370,18 +384,7 @@
|
|||
<legend id="mainaddress_legend">Main address</legend>
|
||||
|
||||
<ol>
|
||||
[% UNLESS hidden.defined('streetnumber') %]
|
||||
<li>
|
||||
[% IF mandatory.defined('streetnumber') %]
|
||||
<label for="borrower_streetnumber" class="required">Street number:</label>
|
||||
[% ELSE %]
|
||||
<label for="borrower_streetnumber">Street number:</label>
|
||||
[% END %]
|
||||
|
||||
<input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber | html %]" />
|
||||
[% IF mandatory.defined('streetnumber') %]<span class="required">Required</span>[% END %]
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %]
|
||||
|
||||
[% UNLESS hidden.defined('address') %]
|
||||
<li>
|
||||
|
@ -396,6 +399,8 @@
|
|||
</li>
|
||||
[% END %]
|
||||
|
||||
[% IF Koha.Preference('AddressFormat') == 'de' %][% INCLUDE streetnumber %][% END %]
|
||||
|
||||
[% UNLESS hidden.defined('address2') %]
|
||||
<li>
|
||||
[% IF mandatory.defined('address2') %]
|
||||
|
|
Loading…
Reference in a new issue