Bug 22807: (follow-up) Add .maincontent class to libraries page
[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         [% IF ( OpacNav ||  OpacNavBottom ) %]
82         <div class="span2">
83             <div id="navigation">
84                 [% INCLUDE 'navigation.inc' %]
85             </div>
86         </div>
87         <div class="span10">
88         [% ELSE %]
89         <div class="span12">
90         [% END %]
91
92                 [% IF ( library ) %]
93
94                     <div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library">
95                         <h3 property="name">[% library.branchname | html %]</h3>
96
97                         <div class="row-fluid">
98                             <div class="span8">
99                                 [% PROCESS library_info %]
100                                 [% IF ( library.opac_info ) %]
101                                     <hr />
102                                     [% PROCESS library_description %]
103                                 [% END %]
104                             </div>
105                             <div class="span4">
106                                 [% IF ( libraries.count > 1 ) %]
107                                     <nav class="libraries">
108                                         <ul class="fa-ul">
109                                             [% FOREACH library IN libraries %]
110                                                 [% IF ( branchcode == library.branchcode ) %]
111                                                     <li class="current">
112                                                         <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
113                                                             <i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %]
114                                                         </a>
115                                                     </li>
116                                                 [% ELSE %]
117                                                     <li>
118                                                         <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
119                                                             <i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %]
120                                                         </a>
121                                                     </li>
122                                                 [% END %]
123                                             [% END %]
124                                         </ul>
125                                     </nav>
126                                 [% END %]
127                             </div>
128                         </div>
129                     </div> <!-- /#library_info -->
130
131                 [% ELSE %]
132                     <div id="library_info" class="maincontent">
133                         <h2>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h2>
134
135                         [% FOREACH library IN libraries %]
136                             <h3 property="name">
137                                 [% IF ( libraries.count > 1 ) %]
138                                     <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a>
139                                 [% ELSE %]
140                                     [% library.branchname | html %]
141                                 [% END %]
142                             </h3>
143                             [% PROCESS library_info %]
144                             <hr>
145                             [% IF ( libraries.count == 1 ) %]
146                                 [% PROCESS library_description %]
147                             [% END %]
148                         [% END %]
149                     </div>
150                 [% END %]
151
152         </div> <!-- /.row-fluid -->
153     </div> <!-- /.container-fluid -->
154 </div> <!-- / .main -->
155 [% INCLUDE 'opac-bottom.inc' %]
156 [% BLOCK jsinclude %][% END %]