https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10760
Marc Véron <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=16730 --- Comment #5 from Marc Véron <[email protected]> --- (In reply to M. Tompsett from comment #4) > Comment on attachment 52352 [details] [review] > Bug 10760: Alternate Address: Display street number and street type > > Review of attachment 52352 [details] [review]: > ----------------------------------------------------------------- > > ::: koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt > @@ +413,5 @@ > > <div id="patron-alternate-address" style="padding-top: 1em;"> > > <h3>Alternate address</h3> > > + > > + [% IF Koha.Preference( 'AddressFormat' ) %] > > + [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( > > 'AddressFormat' ) }.inc" %] > > What if the file doesn't exist? It works the same as with Bug 4041 - Address Format as a I18N/L10N system preference and Bug 16730 - Use member-display-address-style*-includes in moremember-brief.tt Syspref 'AddressFormat' can have 2 values: us and de ----snip--- - pref: addressformat default: us choices: us: US style ([Street number], [Address] - [City], [Zip/Postal Code], [Country]) de: German style ([Adress] [Street number] - [Zip/Postal Code] [City] - [Country] ----snip--- For each choice, a file exists: member-display-alt-address-style-us.inc member-display-alt-address-style-de.inc Fallback is us if syspref 'AdressFormat' is not defined If more formats are needed, you have to - add an additional syspref value - add inc files to folder koha-tmpl/intranet-tmpl/prog/en/includes as appropriate -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
