Bug 24223: Convert OpacNav system preference to additional content
[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, blocktitle => 0 ) %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Subject cloud &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-tags-subject' %]
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">Subject cloud</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="subjectcloud" class="maincontent">
38                         <h1>Subject cloud</h1>
39                             [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
40                                 [% IF ( LOOP ) %]
41                                     <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>
42                                     <fieldset>
43                                         <legend>Show</legend>
44                                         <form class="form-inline" action="/cgi-bin/koha/opac-tags_subject.pl" method="post">
45                                             <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>
46                                         </form>
47                                     </fieldset>
48
49                                     [% FOREACH LOO IN LOOP %]
50                                         <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>
51                                     [% END %]
52                                 [% ELSE %]
53                                     <p>Note: This feature only available to French catalogs where ISBD subjects have been populated, and an index built by separate script.</p>
54                                 [% END # / IF LOOP %]
55                             [% ELSE %]
56                                 <div class="alert alert-info">
57                                     <p>The ISBD cloud is not enabled.</p>
58                                 </div>
59                             [% END # / IF OpacCloud %]
60                     </div> <!-- / #subjectcloud -->
61
62                 </div> <!-- / .col-10/12 -->
63             </div> <!-- / .row -->
64         </div> <!-- / .container-fluid -->
65     </div> <!-- / .main -->
66
67 [% INCLUDE 'opac-bottom.inc' %]
68 [% BLOCK jsinclude %][% END %]