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 <table id="topissuest" class="table table-bordered table-striped">
73 The [% limit | html %] most checked-out
74 [% IF selected_itemtype %]
75 [% ItemTypes.GetDescription(selected_itemtype) | html %]
79 [% Branches.GetName( branch ) | html %]
81 [% IF ( timeLimit != 999 ) %]
82 in the past [% timeLimitFinite | html %] months
89 <th class="anti-the">Title</th>
90 <th>[% IF ( ccodesearch ) %]Collection[% ELSE %]Item type[% END %]</th>
92 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
93 <th class="NoSort"> </th>
98 [% FOREACH result IN results %]
101 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber | html %]">[% result.title | html %]</a><p>[% result.author | html %]
102 [% IF ( result.publishercode ) %]- [% result.publishercode | html %][% END %]
103 [% IF ( result.place ) %][% result.place | html %][% END %]
104 [% IF ( result.publicationyear ) %]
105 [% result.publicationyear | html %]
106 [% ELSIF ( result.copyrightdate ) %]
107 [% result.copyrightdate | html %]
109 [% IF ( result.pages ) %] - [% result.pages | html %][% END %]
110 [% IF ( result.item('size') ) %][% result.item('size') | html %][% END %]</p>
113 [% IF Koha.Preference('AdvancedSearchTypes') == 'ccode' %]
114 <span class="tdlabel">Collection</span>
115 [% AuthorisedValues.GetByCode('ccode', result.ccode, 1) | html %]
117 <span class="tdlabel">Item type</span>
118 [% ItemTypes.GetDescription(result.itemtype) | html %]
121 <td data-order="[% result.count | html %]">
122 <span class="tdlabel">Checkouts: </span>
123 [% result.count | html %]
125 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
127 [% IF Koha.Preference( 'OPACHoldRequests' ) == 1 %]
128 [% UNLESS ( result.norequests ) %]
129 <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>
139 No results, try to change filters.
140 [% END # / IF results %]
141 </div> <!-- / #topissues -->
142 </div> <!-- / .col-lg-10 -->
143 </div> <!-- / .row -->
144 </div> <!-- / .container-fluid -->
145 </div> <!-- / .main -->
147 [% INCLUDE 'opac-bottom.inc' %]
148 [% BLOCK jsinclude %]
149 [% INCLUDE 'datatables.inc' %]
152 $("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
153 "sorting": [[2, "desc"]],
155 { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
156 { "type": "anti-the", "targets" : [ "anti-the" ] }
160 function Dopop(link) {
161 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');