Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance...
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-tags_subject.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Subject cloud</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='opac-tags-subject' %]
8 [% INCLUDE 'masthead.inc' %]
9
10     <div class="main">
11         <ul class="breadcrumb">
12             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13             <li><a href="#">Subject cloud</a></li>
14         </ul>
15
16         <div class="container-fluid">
17             <div class="row-fluid">
18                 [% IF ( OpacNav || OpacNavBottom ) %]
19                     <div class="span2">
20                         <div id="navigation">
21                             [% INCLUDE 'navigation.inc' %]
22                         </div>
23                     </div>
24                 [% END %]
25
26                 [% IF ( OpacNav ||  OpacNavBottom ) %]
27                     <div class="span7">
28                 [% ELSE %]
29                     <div class="span9">
30                 [% END %]
31                     <div id="subjectcloud">
32                         <h1>Subject cloud</h1>
33                             [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
34                                 [% IF ( LOOP ) %]
35                                     <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>
36                                     <fieldset>
37                                         <legend>Show</legend>
38                                         <form class="form-inline" action="/cgi-bin/koha/opac-tags_subject.pl" method="post">
39                                             <p>up to <input type="text" name="number" value="[% number %]" size="4" maxlength="4" /> subjects <input type="submit" class="btn" value="OK" /></p>
40                                         </form>
41                                     </fieldset>
42
43                                     [% FOREACH LOO IN LOOP %]
44                                         <a href="/cgi-bin/koha/opac-search.pl?idx=su&amp;q=&quot;[% LOO.entry |html %]&quot;" style="font-size:[% LOO.weight %]px;">[% LOO.entry %]</a>
45                                     [% END %]
46                                 [% ELSE %]
47                                     <p>Note: This feature only available to French catalogs where ISBD subjects have been populated, and an index built by separate script.</p>
48                                 [% END # / IF LOOP %]
49                             [% ELSE %]
50                                 <div class="alert alert-info">
51                                     <p>The ISBD cloud is not enabled.</p>
52                                 </div>
53                             [% END # / IF OpacCloud %]
54                     </div> <!-- / #subjectcloud -->
55                 </div> <!-- / .span7/9 -->
56             </div> <!-- / .row-fluid -->
57         </div> <!-- / .container-fluid -->
58     </div> <!-- / .main -->
59
60 [% INCLUDE 'opac-bottom.inc' %]
61 [% BLOCK jsinclude %][% END %]