Bug 13388: (follow-up) Remove display of email address
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-library.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>
6     [% IF ( LibraryNameTitle ) %]
7         [% LibraryNameTitle | html %]
8     [% ELSE %]
9         Koha online
10     [% END %] catalog &rsaquo; Libraries
11     [% IF ( library ) %]
12         &rsaquo; [% library.branchname | html %]
13     [% END %]
14 </title>
15 [% INCLUDE 'doc-head-close.inc' %]
16 [% BLOCK cssinclude %][% END %]
17 </head>
18
19 [% INCLUDE 'bodytag.inc' bodyid='opac-library' bodyclass='scrollto' %]
20 [% INCLUDE 'masthead.inc' %]
21
22 [% BLOCK library_description %]
23     <div property="description">
24         [% library.opac_info | $raw %]
25     </div>
26 [% END %]
27
28 [% BLOCK library_info %]
29     <div property="address" typeof="PostalAddress">
30         <p>
31             <span property="streetAddress">
32                 [% IF ( library.branchaddress1 ) %]
33                     [% library.branchaddress1 | html %]
34                 [% END %]
35                 [% IF ( library.branchaddress2 ) %]
36                     <br />[% library.branchaddress2 | html %]
37                 [% END %]
38                 [% IF ( library.branchaddress3 ) %]
39                     <br />[% library.branchaddress3 | html %]
40                 [% END %]
41             </span><br>
42             [% IF ( library.branchcity ) %]
43                 <span property="addressLocality">[% library.branchcity | html %]</span>
44             [% END %]
45             [% IF ( library.branchstate ) %]
46                 <span property="addressRegion">[% library.branchstate | html %]</span>
47             [% END %]
48             [% IF ( library.branchzip ) %]
49                 <span property="postalCode">[% library.branchzip | html %]</span>
50             [% END %]
51             [% IF ( library.branchcountry ) %]
52                 <br /><span property="addressCountry">[% library.branchcountry | html %]</span>
53             [% END %]
54             [% IF ( library.branchphone ) %]
55                 <p>Phone: <a href="tel:[% library.branchphone | url %]" property="telephone">[% library.branchphone | html %]</a></p>
56             [% END %]
57             [% IF ( library.branchfax ) %]
58                 <p>Fax: <span property="faxNumber">[% library.branchfax | html %]</span></p>
59             [% END %]
60             [% IF ( library.branchurl ) %]
61                 <p><a href="[% library.branchurl | url %]" property="url">[% library.branchurl | html %]</a></p>
62             [% END %]
63         </p>
64     </div> <!-- /div property=address -->
65 [% END %]
66
67 <div class="main">
68     <ul class="breadcrumb">
69         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
70         <li><a href="/cgi-bin/koha/opac-library.pl">Libraries</a>
71         [% IF ( library ) %]
72             <span class="divider">&rsaquo;</span></li>
73             <li><a href="#">[% library.branchname | html %]</a></li>
74         [% ELSE %]
75             </li>
76         [% END %]
77     </ul>
78
79     <div class="container-fluid">
80         <div class="row-fluid">
81             <div class="span12">
82
83                 [% IF ( library ) %]
84
85                     <div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library">
86                         <h3 property="name">[% library.branchname | html %]</h3>
87
88                         <div class="row-fluid">
89                             <div class="span8">
90                                 [% PROCESS library_info %]
91                                 [% IF ( library.opac_info ) %]
92                                     <hr />
93                                     [% PROCESS library_description %]
94                                 [% END %]
95                             </div>
96                             <div class="span4">
97                                 [% IF ( libraries.count > 1 ) %]
98                                     <nav class="libraries">
99                                         <ul class="fa-ul">
100                                             [% FOREACH library IN libraries %]
101                                                 [% IF ( branchcode == library.branchcode ) %]
102                                                     <li class="current">
103                                                         <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
104                                                             <i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %]
105                                                         </a>
106                                                     </li>
107                                                 [% ELSE %]
108                                                     <li>
109                                                         <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
110                                                             <i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %]
111                                                         </a>
112                                                     </li>
113                                                 [% END %]
114                                             [% END %]
115                                         </ul>
116                                     </nav>
117                                 [% END %]
118                             </div>
119                         </div>
120                     </div> <!-- /#library_info -->
121
122                 [% ELSE %]
123                     <h2>Libraries</h2>
124
125                     [% FOREACH library IN libraries %]
126                         <h3 property="name">
127                             [% IF ( libraries.count > 1 ) %]
128                                 <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a>
129                             [% ELSE %]
130                                 [% library.branchname | html %]
131                             [% END %]
132                         </h3>
133                         [% PROCESS library_info %]
134                         <hr>
135                         [% IF ( libraries.count == 1 ) %]
136                             [% PROCESS library_description %]
137                         [% END %]
138                     [% END %]
139
140                 [% END %]
141
142         </div> <!-- /.row-fluid -->
143     </div> <!-- /.container-fluid -->
144 </div> <!-- / .main -->
145 [% INCLUDE 'opac-bottom.inc' %]
146 [% BLOCK jsinclude %][% END %]