3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Most popular titles › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 #search-facets fieldset {
19 list-style-type: none;
27 #search-facets fieldset.action {
31 #search-facets select {
37 [% INCLUDE 'bodytag.inc' bodyid='opac-topissues' bodyclass='scrollto' %]
38 [% INCLUDE 'masthead.inc' %]
41 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
42 <ol class="breadcrumb">
43 <li class="breadcrumb-item">
44 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
46 <li class="breadcrumb-item active">
47 <a href="#" aria-current="page">Most popular titles</a>
50 </nav> <!-- /#breadcrumbs -->
52 <div class="container-fluid">
54 <div class="col-lg-2">
55 <div id="usertopissues">
56 [% INCLUDE 'opac-topissues.inc' %]
57 [% IF ( OpacNav || OpacNavBottom ) %]
58 [% INCLUDE 'navigation.inc' %]
62 <div class="col-10 order-first order-md-first order-lg-2">
63 <div id="topissues" class="maincontent">
68 <table id="topissuest" class="table table-bordered table-striped">
70 The [% limit | html %] most checked-out
71 [% IF selected_itemtype %]
72 [% ItemTypes.GetDescription(selected_itemtype) | html %]
76 [% Branches.GetName( branch ) | html %]
78 [% IF ( timeLimit != 999 ) %]
79 in the past [% timeLimitFinite | html %] months
86 <th class="anti-the">Title</th>
87 <th>[% IF ( ccodesearch ) %]Collection[% ELSE %]Item type[% END %]</th>
88 <th class="title-num">Checkouts</th>
89 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
90 <th class="NoSort"> </th>
95 [% FOREACH result IN results %]
98 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber | html %]">[% result.title | html %]</a><p>[% result.author | html %]
99 [% IF ( result.publishercode ) %]- [% result.publishercode | html %][% END %]
100 [% IF ( result.place ) %][% result.place | html %][% END %]
101 [% IF ( result.publicationyear ) %]
102 [% result.publicationyear | html %]
103 [% ELSIF ( result.copyrightdate ) %]
104 [% result.copyrightdate | html %]
106 [% IF ( result.pages ) %] - [% result.pages | html %][% END %]
107 [% IF ( result.item('size') ) %][% result.item('size') | html %][% END %]</p>
110 [% IF Koha.Preference('AdvancedSearchTypes') == 'ccode' %]
111 <span class="tdlabel">Collection</span>
112 [% AuthorisedValues.GetByCode('ccode', result.ccode, 1) | html %]
114 <span class="tdlabel">Item type</span>
115 [% ItemTypes.GetDescription(result.itemtype) | html %]
119 <span class="tdlabel">Checkouts: </span>
120 <span title="[% result.count | html %]">[% result.count | html %]</span>
122 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
124 [% IF Koha.Preference( 'OPACHoldRequests' ) == 1 %]
125 [% UNLESS ( result.norequests ) %]
126 <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>
136 No results, try to change filters.
137 [% END # / IF results %]
138 </div> <!-- / #topissues -->
139 </div> <!-- / .col-lg-10 -->
140 </div> <!-- / .row -->
141 </div> <!-- / .container-fluid -->
142 </div> <!-- / .main -->
144 [% INCLUDE 'opac-bottom.inc' %]
145 [% BLOCK jsinclude %]
146 [% INCLUDE 'datatables.inc' %]
149 $("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
150 "sorting": [[2, "desc"]],
152 { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
153 { "type": "anti-the", "targets" : [ "anti-the" ] },
154 { "type": "title-numeric", "targets" : [ "title-num"] },
158 function Dopop(link) {
159 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');