Bugzilla – Attachment 52829 Details for
Bug 10760
Use Street Number and Street type in Alternate Address section
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10760: Alternate Address: Make street number and street type editable
Bug-10760-Alternate-Address-Make-street-number-and.patch (text/plain), 5.10 KB, created by
Kyle M Hall (khall)
on 2016-06-24 16:08:46 UTC
(
hide
)
Description:
Bug 10760: Alternate Address: Make street number and street type editable
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-06-24 16:08:46 UTC
Size:
5.10 KB
patch
obsolete
>From c5da1786c548bd574f56a0888910eb8a6730d1a4 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 14 Jun 2016 10:14:29 +0200 >Subject: [PATCH] Bug 10760: Alternate Address: Make street number and street > type editable > >Table 'borrowers' contain columns B_streetnumber and B_streettype. >This patch makes them editable for alternate address. > >To test: >- Apply patch >- Edit a patron's details >- Verify that in edit mode for Alternate address, the fields 'street type' and 'street number' appear > and follow the settings in sysprefs AddressFormat, BorrowerMandatoryField, BorrowerUnwantedField >- Verify that the values are saved correctly. > >Note: A second patch will follow to manage the display of street number and street type >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../en/includes/member-alt-address-style-de.inc | 36 ++++++++++++++++++++++ > .../en/includes/member-alt-address-style-us.inc | 35 +++++++++++++++++++++ > 2 files changed, 71 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc >index 3893497..43385f2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc >@@ -12,6 +12,42 @@ > [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >+ >+ [% IF roadtypes %] >+ <li> >+ [% IF ( mandatoryB_streettype ) %] >+ <label for="B_streettype" class="required"> >+ [% ELSE %] >+ <label for="B_streettype"> >+ [% END %] >+ Street type: </label> >+ <select name="B_streettype"> >+ <option value=""></option> >+ [% FOR roadtype IN roadtypes %] >+ [% IF roadtype.authorised_value == B_streettype %] >+ <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> >+ [% ELSE %] >+ <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+ >+ [% UNLESS noB_streetnumber %] >+ <li> >+ [% IF ( mandatoryB_streetnumber ) %] >+ <label for="B_streetnumber" class="required"> >+ [% ELSE %] >+ <label for="B_streetnumber"> >+ [% END %] >+ Street Number: </label> >+ <input type="text" id="B_address" name="B_streetnumber" size="5" value="[% B_streetnumber %]" /> >+ [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+ > [% UNLESS noB_address2 %] > <li> > [% IF ( mandatoryB_address2 ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc >index e6b31ff..7c4adbd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc >@@ -1,5 +1,40 @@ > <fieldset class="rows" id="memberentry_address"> > <legend id="alt_address_lgd">Alternate address</legend><ol> >+ [% UNLESS noB_streetnumber %] >+ <li> >+ [% IF ( mandatoryB_streetnumber ) %] >+ <label for="B_streetnumber" class="required"> >+ [% ELSE %] >+ <label for="B_streetnumber"> >+ [% END %] >+ Street Number: </label> >+ <input type="text" id="B_address" name="B_streetnumber" size="5" value="[% B_streetnumber %]" /> >+ [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+ >+ [% IF roadtypes %] >+ <li> >+ [% IF ( mandatoryB_streettype ) %] >+ <label for="B_streettype" class="required"> >+ [% ELSE %] >+ <label for="B_streettype"> >+ [% END %] >+ Street type: </label> >+ <select name="B_streettype"> >+ <option value=""></option> >+ [% FOR roadtype IN roadtypes %] >+ [% IF roadtype.authorised_value == B_streettype %] >+ <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> >+ [% ELSE %] >+ <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+ > [% UNLESS noB_address %] > <li> > [% IF ( mandatoryB_address ) %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10760
:
52351
|
52352
|
52595
|
52598
|
52599
|
52600
| 52829 |
52830
|
52831