Bug 10309 - New OPAC theme based on Bootstrap
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-browser.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›  Browse our catalog
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 <body id="opac-browser">
7 [% INCLUDE 'masthead.inc' %]
8
9     <div class="main">
10         <div class="container-fluid">
11             <div class="row-fluid">
12                 [% IF ( OpacNav || OpacNavBottom ) %]
13                     <div class="span2">
14                         <div id="navigation">
15                             [% INCLUDE 'navigation.inc' %]
16                         </div>
17                     </div>
18                 [% END %]
19
20                 [% IF ( OpacNav ) %]<div class="span10">[% ELSE %]<div class="span12">[% END %]
21
22                 <div id="userbrowser">
23                     <h1>Browse our catalog</h1>
24
25                     [% IF ( have_hierarchy ) %]
26                         <ul>
27                             <li>
28                                 [% description %] <a href="opac-browser.pl">Top level</a>
29                             </li>
30                             <li style="list-style-type: none;">
31                                 <ul>
32                                     [% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
33                                         <li>
34                                             <a href="opac-browser.pl?level=[% HIERARCHY_LOO.level %]&amp;filter=[% HIERARCHY_LOO.classification |uri %]">[% HIERARCHY_LOO.description |html %]</a>
35                                         </li>
36                                         <li style="list-style-type: none;">
37                                     [% END %]
38                                     <li style="list-style-type: none;">
39                                         <table class="table table-bordered table-striped">
40                                             <tr>
41                                                 [% FOREACH LEVEL_LOO IN LEVEL_LOOP %]
42                                                     <td>
43                                                         <p>
44                                                             [% IF ( LEVEL_LOO.endnode ) %]
45                                                                 <a href="opac-search.pl?q=Dewey-classification:[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description |html %]</a>
46                                                             [% ELSE %]
47                                                                 <a href="opac-browser.pl?level=[% LEVEL_LOO.level %]&amp;filter=[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description |html %]</a>
48                                                             [% END %]
49                                                         </p>
50                                                         <p style="font-size:0.75em"><i>([% LEVEL_LOO.number %] biblios)</i></p>
51                                                     </td>
52                                                 [% IF ( LEVEL_LOO.count3 ) %]</tr><tr>[% END %]
53                                                 [% END %]
54                                             </tr>
55                                         </table>
56                                     </li>
57                                 [% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
58                                     </ul></li>
59                                 [% END %]
60                                 </ul>
61                             </li>
62                         </ul>
63                     [% ELSE %]
64                         <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>
65                     [% END # / IF have_hierarchy %]
66
67                     </div> <!-- / .userbrowser -->
68                 </div> <!-- / .span10 -->
69             </div> <!-- / .row-fluid -->
70         </div> <!-- / .container-fluid -->
71     </div> <!-- / .main -->
72
73 [% INCLUDE 'opac-bottom.inc' %]
74 [% BLOCK jsinclude %][% END %]