Bug 14544: QA fixes - some minor bug fixes
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-browser.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Browse our catalog</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='opac-browser' %]
8 [% INCLUDE 'masthead.inc' %]
9
10     <div class="main">
11         <div class="container-fluid">
12             <div class="row-fluid">
13                 [% IF ( OpacNav || OpacNavBottom ) %]
14                     <div class="span2">
15                         <div id="navigation">
16                             [% INCLUDE 'navigation.inc' %]
17                         </div>
18                     </div>
19                 [% END %]
20
21                 [% IF ( OpacNav ) %]<div class="span10">[% ELSE %]<div class="span12">[% END %]
22
23                 <div id="userbrowser">
24                     <h1>Browse our catalog</h1>
25
26                     [% IF ( have_hierarchy ) %]
27                         <ul>
28                             <li>
29                                 [% description %] <a href="opac-browser.pl">Top level</a>
30                             </li>
31                             <li style="list-style-type: none;">
32                                 <ul>
33                                     [% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
34                                         <li>
35                                             <a href="opac-browser.pl?level=[% HIERARCHY_LOO.level %]&amp;filter=[% HIERARCHY_LOO.classification |uri %]">[% HIERARCHY_LOO.description |html %]</a>
36                                         </li>
37                                         <li style="list-style-type: none;">
38                                     [% END %]
39                                     <li style="list-style-type: none;">
40                                         <table class="table table-bordered table-striped">
41                                             <tr>
42                                                 [% FOREACH LEVEL_LOO IN LEVEL_LOOP %]
43                                                     <td>
44                                                         <p>
45                                                             [% IF ( LEVEL_LOO.endnode ) %]
46                                                                 <a href="opac-search.pl?q=Dewey-classification:[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description |html %]</a>
47                                                             [% ELSE %]
48                                                                 <a href="opac-browser.pl?level=[% LEVEL_LOO.level %]&amp;filter=[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description |html %]</a>
49                                                             [% END %]
50                                                         </p>
51                                                         <p style="font-size:0.75em"><i>([% LEVEL_LOO.number %] biblios)</i></p>
52                                                     </td>
53                                                 [% IF ( LEVEL_LOO.count3 ) %]</tr><tr>[% END %]
54                                                 [% END %]
55                                             </tr>
56                                         </table>
57                                     </li>
58                                 [% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
59                                     </ul></li>
60                                 [% END %]
61                                 </ul>
62                             </li>
63                         </ul>
64                     [% ELSE %]
65                         <div class="warning">The browser table is empty. this feature is not fully set-up. See the <a href="http://wiki.koha-community.org/wiki/Opac_browse_feature">Koha Wiki</a> for more information on what it does and how to configure it.</div>
66                     [% END # / IF have_hierarchy %]
67
68                     </div> <!-- / .userbrowser -->
69                 </div> <!-- / .span10 -->
70             </div> <!-- / .row-fluid -->
71         </div> <!-- / .container-fluid -->
72     </div> <!-- / .main -->
73
74 [% INCLUDE 'opac-bottom.inc' %]
75 [% BLOCK jsinclude %][% END %]