Bug 24223: Convert OpacNav system preference to additional content
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-browser.tt
1 [% USE Koha %]
2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Browse our catalog &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
8 </head>
9 [% INCLUDE 'bodytag.inc' bodyid='opac-browser' %]
10 [% INCLUDE 'masthead.inc' %]
11
12     <div class="main">
13         <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
14             <ol class="breadcrumb">
15                 <li class="breadcrumb-item">
16                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
17                 </li>
18                 <li class="breadcrumb-item active">
19                     <a href="#" aria-current="page">Browse our catalog</a>
20                 </li>
21             </ol>
22         </nav> <!-- /#breadcrumbs -->
23
24         <div class="container-fluid">
25             <div class="row">
26                 [% IF ( OpacNav || OpacNavBottom ) %]
27                     <div class="col-lg-2">
28                         <div id="navigation">
29                             [% INCLUDE 'navigation.inc' %]
30                         </div>
31                     </div>
32                     <div class="col-10 order-first order-md-first order-lg-2">
33                 [% ELSE %]
34                     <div class="col order-first order-md-first order-lg-2">
35                 [% END %]
36
37                     <div id="userbrowser" class="maincontent">
38                         <h1>Browse our catalog</h1>
39
40                         [% IF ( have_hierarchy ) %]
41                             <ul>
42                                 <li>
43                                     [% description | html %] <a href="opac-browser.pl">Top level</a>
44                                 </li>
45                                 <li style="list-style-type: none;">
46                                     <ul>
47                                         [% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
48                                             <li>
49                                                 <a href="opac-browser.pl?level=[% HIERARCHY_LOO.level | uri %]&amp;filter=[% HIERARCHY_LOO.classification |uri %]">[% HIERARCHY_LOO.description | html %]</a>
50                                             </li>
51                                             <li style="list-style-type: none;">
52                                         [% END %]
53                                         <li style="list-style-type: none;">
54                                             <table class="table table-bordered table-striped">
55                                                 <caption class="sr-only">Items in catalog</caption>
56                                                 <tr>
57                                                     [% FOREACH LEVEL_LOO IN LEVEL_LOOP %]
58                                                         <td>
59                                                             <p>
60                                                                 [% IF ( LEVEL_LOO.endnode ) %]
61                                                                     <a href="opac-search.pl?q=Dewey-classification:[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description | html %]</a>
62                                                                 [% ELSE %]
63                                                                     <a href="opac-browser.pl?level=[% LEVEL_LOO.level | uri %]&amp;filter=[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description | html %]</a>
64                                                                 [% END %]
65                                                             </p>
66                                                             <p style="font-size:0.75em"><em>([% LEVEL_LOO.number | html %] biblios)</em></p>
67                                                         </td>
68                                                     [% IF ( LEVEL_LOO.count3 ) %]</tr><tr>[% END %]
69                                                     [% END %]
70                                                 </tr>
71                                             </table>
72                                         </li>
73                                     [% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
74                                         </ul></li>
75                                     [% END %]
76                                     </ul>
77                                 </li>
78                             </ul>
79                         [% ELSE %]
80                             <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>
81                         [% END # / IF have_hierarchy %]
82
83                     </div> <!-- / .userbrowser -->
84
85                 </div> <!-- / .col-10/12 -->
86             </div> <!-- / .row -->
87         </div> <!-- / .container-fluid -->
88     </div> <!-- / .main -->
89
90 [% INCLUDE 'opac-bottom.inc' %]
91 [% BLOCK jsinclude %][% END %]