[% USE raw %]
[% USE Koha %]
[% USE AdditionalContents %]
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Nube de temas &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Catálogo en línea[% END %] Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]
[% END %]
</head>
[% INCLUDE 'bodytag.inc' bodyid='opac-tags-subject' %]
[% INCLUDE 'masthead.inc' %]

<main class="main">
 [% WRAPPER breadcrumbs %]
 [% WRAPPER breadcrumb_item bc_active= 1 %]
 <span>Nube de temas</span>
 [% END %]
 [% END #/ WRAPPER breadcrumbs %]

 <div class="container-fluid">
 <div class="row">
 [% SET column_class = "col order-first order-md-first order-lg-2" %]
 [% IF ( OpacNav || OpacNavBottom ) %]
 [% column_class = "col-10 order-first order-md-first order-lg-2" %]
 <div class="col-lg-2">
 <div id="navigation"> [% INCLUDE 'navigation.inc' IsPatronPage=1 %] </div>
 </div>
 [% END %]

 <div class="[% column_class | html %]">
 <div id="subjectcloud" class="maincontent">
 <h1>Nube de temas</h1>
 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
 [% IF ( LOOP ) %]
 <p>Esta &quot;nube&quot; muestra los temas más consultados en nuestro catálogo. Haga clic en cualquier tema para ver los ejemplares en nuestra colección.</p>
 <fieldset>
 <legend>Mostrar</legend>
 <form class="form-inline" action="/cgi-bin/koha/opac-tags_subject.pl" method="get">
 <label>hasta <input type="text" name="number" value="[% number | html %]" size="4" maxlength="4" /> </label> <label>temas <input class="btn btn-primary" type="submit" value="Ok" /></label>
 </form>
 </fieldset>

 [% FOREACH LOO IN LOOP %]
 <a href='/cgi-bin/koha/opac-search.pl?idx=su&amp;q="[% LOO.entry | uri %]"' style="font-size:[% LOO.weight | html %]px;">[% LOO.entry | html %]</a>
 [% END %]
 [% ELSE %]
 <p>Nota: esta característica está sólo disponible para catálogos franceses donde han sido rellenados los temas ISBD y se generó un índice.</p>
 [% END # / IF LOOP %]
 [% ELSE %]
 <div class="alert alert-info">
 <p>La nube ISBD no está habilitada.</p>
 </div>
 [% END # / IF OpacCloud %]
 </div>
 <!-- / #subjectcloud -->
 </div>
 <!-- / .col-10/12 -->
 </div>
 <!-- / .row -->
 </div>
 <!-- / .container-fluid -->
</main>
<!-- / .main -->

[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% END %]
