3 [% USE AuthorisedValues %]
5 [% USE AdditionalContents %]
6 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Most popular titles › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %]
13 #search-facets fieldset {
22 list-style-type: none;
30 #search-facets fieldset.action {
34 #search-facets select {
40 [% INCLUDE 'bodytag.inc' bodyid='opac-topissues' bodyclass='scrollto' %]
41 [% INCLUDE 'masthead.inc' %]
44 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
45 <ol class="breadcrumb">
46 <li class="breadcrumb-item">
47 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
49 <li class="breadcrumb-item active">
50 <a href="#" aria-current="page">Most popular titles</a>
53 </nav> <!-- /#breadcrumbs -->
55 <div class="container-fluid">
57 <div class="col-lg-2">
58 <div id="usertopissues">
59 [% INCLUDE 'opac-topissues.inc' %]
60 [% IF ( OpacNav || OpacNavBottom ) %]
61 [% INCLUDE 'navigation.inc' %]
65 <div class="col-10 order-first order-md-first order-lg-2">
66 <div id="topissues" class="maincontent">
71 [% OpacAdvancedSearchTypes = Koha.Preference('OpacAdvancedSearchTypes').split('\|') %]
72 <table id="topissuest" class="table table-bordered table-striped">
74 The [% limit | html %] most checked-out
75 [% IF selected_itemtype %]
76 [% ItemTypes.GetDescription(selected_itemtype) | html %]
80 [% Branches.GetName( branch ) | html %]
82 [% IF ( timeLimit != 999 ) %]
83 in the past [% timeLimitFinite | html %] months
90 <th class="anti-the">Title</th>
94 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
95 <th class="NoSort"> </th>
100 [% FOREACH result IN results %]
103 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber | html %]">[% result.title | html %]</a><p>[% result.author | html %]
104 [% IF ( result.publishercode ) %]- [% result.publishercode | html %][% END %]
105 [% IF ( result.place ) %][% result.place | html %][% END %]
106 [% IF ( result.publicationyear ) %]
107 [% result.publicationyear | html %]
108 [% ELSIF ( result.copyrightdate ) %]
109 [% result.copyrightdate | html %]
111 [% IF ( result.pages ) %] - [% result.pages | html %][% END %]
112 [% IF ( result.item('size') ) %][% result.item('size') | html %][% END %]</p>
115 <span class="tdlabel">Item type</span>
116 [% ItemTypes.GetDescription(result.itemtype) | html %]
119 <span class="tdlabel">Collection</span>
120 [% AuthorisedValues.GetByCode('ccode', result.ccode, 1) | html %]
122 <td data-order="[% result.count | html %]">
123 <span class="tdlabel">Checkouts: </span>
124 [% result.count | html %]
126 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
128 [% IF Koha.Preference( 'OPACHoldRequests' ) == 1 %]
129 [% UNLESS ( result.norequests ) %]
130 <a class="btn btn-link btn-sm hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% result.biblionumber | uri %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a>
140 No results, try to change filters.
141 [% END # / IF results %]
142 </div> <!-- / #topissues -->
143 </div> <!-- / .col-lg-10 -->
144 </div> <!-- / .row -->
145 </div> <!-- / .container-fluid -->
146 </div> <!-- / .main -->
148 [% INCLUDE 'opac-bottom.inc' %]
149 [% BLOCK jsinclude %]
150 [% INCLUDE 'datatables.inc' %]
153 $("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
154 "sorting": [[3, "desc"]],
156 { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
157 { "type": "anti-the", "targets" : [ "anti-the" ] }
161 function Dopop(link) {
162 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');