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