3 [% USE AuthorisedValues %]
5 [% USE AdditionalContents %]
6 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Most popular titles › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %]
12 #search-facets fieldset {
21 list-style-type: none;
29 #search-facets fieldset.action {
33 #search-facets select {
39 [% INCLUDE 'bodytag.inc' bodyid='opac-topissues' bodyclass='scrollto' %]
40 [% INCLUDE 'masthead.inc' %]
43 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
44 <ol class="breadcrumb">
45 <li class="breadcrumb-item">
46 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
48 <li class="breadcrumb-item active">
49 <a href="#" aria-current="page">Most popular titles</a>
52 </nav> <!-- /#breadcrumbs -->
54 <div class="container-fluid">
56 <div class="col-lg-2">
57 <div id="usertopissues">
58 [% INCLUDE 'opac-topissues.inc' %]
59 [% IF ( OpacNav || OpacNavBottom ) %]
60 [% INCLUDE 'navigation.inc' %]
64 <div class="col-10 order-first order-md-first order-lg-2">
65 <div id="topissues" class="maincontent">
70 <table id="topissuest" class="table table-bordered table-striped">
72 The [% limit | html %] most checked-out
73 [% IF selected_itemtype %]
74 [% ItemTypes.GetDescription(selected_itemtype) | html %]
78 [% Branches.GetName( branch ) | html %]
80 [% IF ( timeLimit != 999 ) %]
81 in the past [% timeLimitFinite | html %] months
88 <th class="anti-the">Title</th>
89 <th>[% IF ( ccodesearch ) %]Collection[% ELSE %]Item type[% END %]</th>
90 <th class="title-num">Checkouts</th>
91 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
92 <th class="NoSort"> </th>
97 [% FOREACH result IN results %]
100 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber | html %]">[% result.title | html %]</a><p>[% result.author | html %]
101 [% IF ( result.publishercode ) %]- [% result.publishercode | html %][% END %]
102 [% IF ( result.place ) %][% result.place | html %][% END %]
103 [% IF ( result.publicationyear ) %]
104 [% result.publicationyear | html %]
105 [% ELSIF ( result.copyrightdate ) %]
106 [% result.copyrightdate | html %]
108 [% IF ( result.pages ) %] - [% result.pages | html %][% END %]
109 [% IF ( result.item('size') ) %][% result.item('size') | html %][% END %]</p>
112 [% IF Koha.Preference('AdvancedSearchTypes') == 'ccode' %]
113 <span class="tdlabel">Collection</span>
114 [% AuthorisedValues.GetByCode('ccode', result.ccode, 1) | html %]
116 <span class="tdlabel">Item type</span>
117 [% ItemTypes.GetDescription(result.itemtype) | html %]
121 <span class="tdlabel">Checkouts: </span>
122 <span title="[% result.count | html %]">[% result.count | html %]</span>
124 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
126 [% IF Koha.Preference( 'OPACHoldRequests' ) == 1 %]
127 [% UNLESS ( result.norequests ) %]
128 <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>
138 No results, try to change filters.
139 [% END # / IF results %]
140 </div> <!-- / #topissues -->
141 </div> <!-- / .col-lg-10 -->
142 </div> <!-- / .row -->
143 </div> <!-- / .container-fluid -->
144 </div> <!-- / .main -->
146 [% INCLUDE 'opac-bottom.inc' %]
147 [% BLOCK jsinclude %]
148 [% INCLUDE 'datatables.inc' %]
151 $("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
152 "sorting": [[2, "desc"]],
154 { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
155 { "type": "anti-the", "targets" : [ "anti-the" ] },
156 { "type": "title-numeric", "targets" : [ "title-num"] },
160 function Dopop(link) {
161 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');