Bug 28955: (follow-up) Set to fall back
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-tags_subject.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>Subject cloud &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-tags-subject' %]
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">Subject cloud</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="subjectcloud" class="maincontent">
39                         <h1>Subject cloud</h1>
40                             [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
41                                 [% IF ( LOOP ) %]
42                                     <p>This &quot;cloud&quot; shows the most used topics in our catalog. Click on any subject below to see the items in our collection.</p>
43                                     <fieldset>
44                                         <legend>Show</legend>
45                                         <form class="form-inline" action="/cgi-bin/koha/opac-tags_subject.pl" method="post">
46                                             <p>up to <input type="text" name="number" value="[% number | html %]" size="4" maxlength="4" /> subjects <input type="submit" class="btn btn-primary" value="OK" /></p>
47                                         </form>
48                                     </fieldset>
49
50                                     [% FOREACH LOO IN LOOP %]
51                                         <a href="/cgi-bin/koha/opac-search.pl?idx=su&amp;q=&quot;[% LOO.entry | uri %]&quot;" style="font-size:[% LOO.weight | html %]px;">[% LOO.entry | html %]</a>
52                                     [% END %]
53                                 [% ELSE %]
54                                     <p>Note: This feature only available to French catalogs where ISBD subjects have been populated, and an index built by separate script.</p>
55                                 [% END # / IF LOOP %]
56                             [% ELSE %]
57                                 <div class="alert alert-info">
58                                     <p>The ISBD cloud is not enabled.</p>
59                                 </div>
60                             [% END # / IF OpacCloud %]
61                     </div> <!-- / #subjectcloud -->
62
63                 </div> <!-- / .col-10/12 -->
64             </div> <!-- / .row -->
65         </div> <!-- / .container-fluid -->
66     </div> <!-- / .main -->
67
68 [% INCLUDE 'opac-bottom.inc' %]
69 [% BLOCK jsinclude %][% END %]