@@ -, +, @@
- Make sure you have fill address information entered for at least one
library.
- In the OPAC, view the "Libraries" page.
- Check that the format of the library addresses is correct when using
any of the three address formats: de, fr, and us.
---
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 4 +
.../en/includes/display-library-address.inc | 114 +++++++++++++++++++++
.../opac-tmpl/bootstrap/en/modules/opac-library.tt | 45 +++-----
3 files changed, 130 insertions(+), 33 deletions(-)
create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc
--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
+++ a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
@@ -2622,4 +2622,8 @@ $star-selected: #EDB867;
}
}
+.branchaddress {
+ margin-bottom: 1rem;
+}
+
@import "responsive";
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc
@@ -0,0 +1,114 @@
+[%~ USE Koha ~%]
+[%~ USE raw ~%]
+[%~ BLOCK 'display-library-address' ~%]
+ [%~ SET line_break = "
" ~%]
+ [%~ IF no_line_break %][% SET line_break = " " %][% END ~%]
+ [%~ IF Koha.Preference( 'AddressFormat' ) ~%]
+ [%~ PROCESS "display-library-address-${ Koha.Preference( 'AddressFormat' ) }" ~%]
+ [%~ ELSE ~%]
+ [%~ PROCESS 'display-library-address-us' ~%]
+ [%~ END ~%]
+[%~ END ~%]
+
+[%~ BLOCK 'display-library-address-us' ~%]
+ [%~ IF ( library.branchaddress1 or library.branchaddress2 ) ~%]
+
+ [%~ IF ( library.branchaddress1 ) ~%]
+
Phone: [% library.branchphone | html %]
- [% END %] - [% IF ( library.branchfax ) %] -Fax: [% library.branchfax | html %]
- [% END %] - [% IF ( library.branchurl ) %] -[% library.branchurl | html %]
- [% END %] +Phone: [% library.branchphone | html %]
+ [% END %] + [% IF ( library.branchfax ) %] +Fax: [% library.branchfax | html %]
+ [% END %] + [% IF ( library.branchurl ) %] +[% library.branchurl | html %]
+ [% END %] [% END %]