Bugzilla – Attachment 104565 Details for
Bug 25070
Include files to display address and contact must be refactored
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25070: Centralize member-display-alt-address-style
Bug-25070-Centralize-member-display-alt-address-st.patch (text/plain), 10.18 KB, created by
Jonathan Druart
on 2020-05-08 09:33:32 UTC
(
hide
)
Description:
Bug 25070: Centralize member-display-alt-address-style
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-08 09:33:32 UTC
Size:
10.18 KB
patch
obsolete
>From 69d7a999fd418072df74777ff36c85356a147030 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 6 Apr 2020 14:25:48 +0200 >Subject: [PATCH] Bug 25070: Centralize member-display-alt-address-style > >--- > .../member-display-alt-address-style-de.inc | 16 ---- > .../member-display-alt-address-style-fr.inc | 21 ----- > .../member-display-alt-address-style-us.inc | 16 ---- > .../member-display-alt-address-style.inc | 76 +++++++++++++++++++ > .../prog/en/modules/members/moremember.tt | 7 +- > 5 files changed, 78 insertions(+), 58 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc >deleted file mode 100644 >index f7fc9748c9..0000000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc >+++ /dev/null >@@ -1,16 +0,0 @@ >-[% IF ( patron.B_address or patron.B_address2 ) %] >- [% IF ( patron.B_address ) %] >- [% SET roadtype_desc = '' %] >- [% IF patron.B_streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] >- [% END %] >- <li class="patronaddress1">[% patron.B_address | html %][%IF roadtype_desc %] [% roadtype_desc | html %][% END %][% IF patron.B_streetnumber %] [% patron.B_streetnumber | html %][% END %]</li> >- [% END %] >- [% IF ( patron.B_address2 ) %] >- <li class="patronaddress2">[% patron.B_address2 | html %]</li> >- [% END %] >-[% END %] >-[% IF ( patron.B_city ) %]<li class="patroncity"> >- [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %][% patron.B_city | html %][% IF ( patron.B_state ) %]</br>[% patron.B_state | html %][% END %] >- [% IF ( patron.B_country ) %]<br />[% patron.B_country | html %][% END %]</li> >-[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc >deleted file mode 100644 >index 2080a48885..0000000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc >+++ /dev/null >@@ -1,21 +0,0 @@ >-[% IF ( patron.B_address or patron.B_address2 ) %] >- [% IF ( patron.B_address ) %] >- [% SET roadtype_desc = '' %] >- [% IF patron.B_streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] >- [% END %] >- <li class="patronaddress1">[% IF patron.B_streetnumber %][% patron.B_streetnumber | html %][% END %] >- [%IF roadtype_desc %][% roadtype_desc | html %] [% END %] >- [% patron.B_address | html %] >- </li> >- [% END %] >- [% IF ( patron.B_address2 ) %] >- <li class="patronaddress2">[% patron.B_address2 | html %]</li> >- [% END %] >-[% END %] >-[% IF ( patron.B_city ) %] >- <li class="patroncity">[%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %] >- [% patron.B_city | html %] >- [% IF ( patron.B_state ) %]</br>[% patron.B_state | html %][% END %] >- [% IF ( patron.B_country ) %]<br />[% patron.B_country | html %][% END %]</li> >-[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc >deleted file mode 100644 >index 9f8453f508..0000000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc >+++ /dev/null >@@ -1,16 +0,0 @@ >-[% IF ( patron.B_address or patron.B_address2 ) %] >- [% IF ( patron.B_address ) %] >- [% SET roadtype_desc = '' %] >- [% IF patron.B_streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] >- [% END %] >- <li class="patronaddress1">[% if (patron.B_streetnumber) | html %][% patron.B_streetnumber | html %][% end | html %] [% patron.B_address | html %] [% IF roadtype_desc %][% roadtype_desc | html %] [% END %][% end | html %]</li> >- [% END %] >- [% IF ( patron.B_address2 ) %] >- <li class="patronaddress2">[% patron.B_address2 | html %]</li> >- [% END %] >-[% END %] >-[% IF ( patron.B_city ) %]<li class="patroncity"> >- [% patron.B_city | html %][% IF ( patron.B_state ) %], [% patron.B_state | html %][% END %] >- [% patron.B_zipcode | html %][% IF ( patron.B_country ) %], [% patron.B_country | html %][% END %]</li> >-[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc >new file mode 100644 >index 0000000000..3eeada0378 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc >@@ -0,0 +1,76 @@ >+[% USE Koha %] >+[% BLOCK 'display-alt-address-style' %] >+ [% IF Koha.Preference( 'AddressFormat' ) %] >+ [% PROCESS "member-alt-display-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] >+ [% ELSE %] >+ [% PROCESS 'member-alt-display-address-style-us' %] >+ [% END %] >+[% END %] >+ >+[% BLOCK 'member-alt-display-address-style-us' %] >+ [% IF ( patron.B_address or patron.B_address2 ) %] >+ [% IF ( patron.B_address ) %] >+ [% SET roadtype_desc = '' %] >+ [% IF patron.B_streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] >+ [% END %] >+ <li class="patronaddress1">[% if (patron.B_streetnumber) | html %][% patron.B_streetnumber | html %][% end | html %] [% patron.B_address | html %] [% IF roadtype_desc %][% roadtype_desc | html %] [% END %][% end | html %]</li> >+ [% END %] >+ [% IF ( patron.B_address2 ) %] >+ <li class="patronaddress2">[% patron.B_address2 | html %]</li> >+ [% END %] >+ [% END %] >+ [% IF ( patron.B_city ) %] >+ <li class="patroncity"> >+ [% patron.B_city | html %][% IF ( patron.B_state ) %], [% patron.B_state | html %][% END %] >+ [% patron.B_zipcode | html %][% IF ( patron.B_country ) %], [% patron.B_country | html %][% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'member-alt-display-address-style-de' %] >+ [% IF ( patron.B_address or patron.B_address2 ) %] >+ [% IF ( patron.B_address ) %] >+ [% SET roadtype_desc = '' %] >+ [% IF patron.B_streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] >+ [% END %] >+ <li class="patronaddress1">[% patron.B_address | html %][%IF roadtype_desc %] [% roadtype_desc | html %][% END %][% IF patron.B_streetnumber %] [% patron.B_streetnumber | html %][% END %]</li> >+ [% END %] >+ [% IF ( patron.B_address2 ) %] >+ <li class="patronaddress2">[% patron.B_address2 | html %]</li> >+ [% END %] >+ [% END %] >+ [% IF ( patron.B_city ) %] >+ <li class="patroncity"> >+ [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %][% patron.B_city | html %][% IF ( patron.B_state ) %]</br>[% patron.B_state | html %][% END %] >+ [% IF ( patron.B_country ) %]<br />[% patron.B_country | html %][% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'member-alt-display-address-style-fr' %] >+ [% IF ( patron.B_address or patron.B_address2 ) %] >+ [% IF ( patron.B_address ) %] >+ [% SET roadtype_desc = '' %] >+ [% IF patron.B_streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] >+ [% END %] >+ <li class="patronaddress1">[% IF patron.B_streetnumber %][% patron.B_streetnumber | html %][% END %] >+ [%IF roadtype_desc %][% roadtype_desc | html %] [% END %] >+ [% patron.B_address | html %] >+ </li> >+ [% END %] >+ [% IF ( patron.B_address2 ) %] >+ <li class="patronaddress2">[% patron.B_address2 | html %]</li> >+ [% END %] >+ [% END %] >+ [% IF ( patron.B_city ) %] >+ <li class="patroncity"> >+ [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %] >+ [% patron.B_city | html %] >+ [% IF ( patron.B_state ) %]</br>[% patron.B_state | html %][% END %] >+ [% IF ( patron.B_country ) %]<br />[% patron.B_country | html %][% END %] >+ </li> >+ [% END %] >+[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 78028d3ca6..75652f0159 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -7,6 +7,7 @@ > [% USE ColumnsSettings %] > [% USE Price %] > [% PROCESS 'member-display-address-style.inc' %] >+[% PROCESS 'member-display-alt-address-style.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %] >@@ -581,11 +582,7 @@ > </div> > <div class="address"> > <ul> >- [% IF Koha.Preference( 'AddressFormat' ) %] >- [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] >- [% ELSE %] >- [% INCLUDE 'member-display-alt-address-style-us.inc' %] >- [% END %] >+ [% PROCESS 'display-alt-address-style' %] > </ul> > </div> > <div class="rows"> >-- >2.20.1
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 25070
:
102439
|
102440
|
102441
|
102442
|
102443
|
102477
|
102478
|
102479
|
102480
|
102481
|
102487
|
102488
|
102489
|
102490
|
102491
|
104562
|
104563
|
104564
|
104565
|
104566
|
104581
|
104582
|
104583
|
104584
|
104585
|
104659
|
104660
|
104661
|
104662
|
104663
|
105745
|
105746
|
105747
|
105748
|
105749
|
105750