Kyle M Hall
a8942c2884
Revert "DBRev to make notes of the XSS patches and the new important dependency." This reverts commite140603a59
. Revert "Bug 13618: Specific for branches.opac_info" This reverts commit06e4a50f00
. Revert "Bug 13618: (follow-up) Specific for other prefs" This reverts commitd6475a111f
. Revert "Bug 13618: Fix for debarredcomment and patron messages" This reverts commitdd98c9df92
. Revert "Bug 13618: Do not display html tags in patron's notices" This reverts commita065b243fe
. Revert "Bug 13618: Do not display and html tags in item fields content" This reverts commitbaeeaffbf8
. Revert "Bug 13618: Fix for system preference description" This reverts commita967a09261
. Revert "Bug 13618: Remove html filters for newly pushed code" This reverts commit0e98662b10
. Revert "Bug 13618: (follow-up) add missing lines for opac-shelves" This reverts commitfc2fb605e5
. Revert "Bug 13618: (follow-up) Specific for ColumnsSettings" This reverts commitbc308fdd9c
. Revert "Bug 13618: Fix for edit biblios and items" This reverts commit811c4e8402
. Revert "Bug 13618: followup to remove tabs" This reverts commitca8e8c397c
. Revert "Bug 13618: Fix last occurrences recently introduced to master" This reverts commitbb417b256b
. Revert "Bug 13618: Fix for news" This reverts commitae5b98020a
. Revert "Bug 13618: Fix escape on sending baskets or shelves by email" This reverts commita7731ffe25
. Revert "Bug 13618: Specific for XSLTBloc" This reverts commit11fa38dc29
. Revert "Bug 13618: Specific for Salutation on editing a patron" This reverts commit36c07ad6d3
. Revert "Bug 13618: Specific for other prefs" This reverts commite6ea281a3b
. Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference" This reverts commit7824874557
. Revert "Bug 13618: Specific for ColumnsSettings" This reverts commit1834da3da3
. Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs" This reverts commit21ae62b253
. Revert "Bug 13618: Fix error 'Not a GLOB reference'" This reverts commit602bdbab4c
. Revert "Bug 13618: Specific for the ISBD view" This reverts commitd254362435
. Revert "Bug 13618: Specific for pagination_bar" This reverts commit8837a8ae68
. Revert "Bug 13618: Specific places where we don't need to escape variables - intra" This reverts commit00eff140b3
. Revert "Bug 13618: Remove html filters at the intranet" This reverts commit7db851ff03
. Revert "Bug 13618: Specific places where we don't need to escape variables" This reverts commit49a3738b8d
. Revert "Bug 13618: Remove html filters at the OPAC" This reverts commitcedaa0e23e
. Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter" This reverts commit01b38d3b13
. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
120 lines
6.4 KiB
Text
120 lines
6.4 KiB
Text
[% USE Koha %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE ItemTypes %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Most popular titles</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %]
|
|
<style type="text/css">
|
|
#search-facets fieldset { border: 0; margin: 0;padding:.3em;}#search-facets ol{padding:.3em;}#search-facets li {list-style-type:none;padding:4px 4px;}#search-facets label{font-weight:bold;display:block;margin:.2em 0;}#search-facets fieldset.action {padding-left:4px;margin:.3em;};
|
|
</style>
|
|
[% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-topissues' bodyclass='scrollto' %]
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
|
|
<li><a href="#">Most popular titles</a></li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class="span2">
|
|
<div id="usertopissues">
|
|
[% INCLUDE 'opac-topissues.inc' %]
|
|
[% IF ( OpacNav || OpacNavBottom ) %]
|
|
[% INCLUDE 'navigation.inc' %]
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
<div class="span10">
|
|
<div id="topissues" class="maincontent">
|
|
|
|
[% IF ( results ) %]
|
|
<table id="topissuest" class="table table-bordered table-striped">
|
|
<caption>
|
|
The [% limit %] most checked-out
|
|
[% IF selected_itemtype %]
|
|
[% ItemTypes.GetDescription(selected_itemtype) %]
|
|
[% END %]
|
|
[% IF ( branch ) %]
|
|
at
|
|
[% branch %]
|
|
[% END %]
|
|
[% IF ( timeLimit != 999 ) %]
|
|
in the past [% timeLimit |html %] months
|
|
[% ELSE %] of all time[% END %]
|
|
</caption>
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>[% IF ( ccodesearch ) %]Collection[% ELSE %]Item type[% END %]</th>
|
|
<th>Checkouts</th>
|
|
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]<th> </th>[% END %]
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH result IN results %]
|
|
<tr>
|
|
<td><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber %]">[% result.title |html %]</a><p>[% result.author %]
|
|
[% IF ( result.publishercode ) %]- [% result.publishercode %][% END %]
|
|
[% IF ( result.place ) %][% result.place %][% END %]
|
|
[% IF ( result.publicationyear ) %]
|
|
[% result.publicationyear %]
|
|
[% ELSIF ( result.copyrightdate ) %]
|
|
[% result.copyrightdate %]
|
|
[% END %]
|
|
[% IF ( result.pages ) %] - [% result.pages %][% END %]
|
|
[% IF ( result.item('size') ) %][% result.item('size') %][% END %]</p>
|
|
</td>
|
|
<td>
|
|
[% IF Koha.Preference('AdvancedSearchTypes') == 'ccode' %]
|
|
<span class="tdlabel">Collection</span>
|
|
[% AuthorisedValues.GetByCode('ccode', result.ccode, 1) %]
|
|
[% ELSE %]
|
|
<span class="tdlabel">Item type</span>
|
|
[% ItemTypes.GetDescription(result.itemtype) %]
|
|
[% END %]
|
|
</td>
|
|
<td><span class="tdlabel">Checkouts: </span> <span title="[% result.count %]">[% result.count %]</span></td>
|
|
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]<td>[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %][% UNLESS ( result.norequests ) %]<a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% result.biblionumber %]">Place hold</a>[% END %][% END %]</td>[% END %]
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
No results, try to change filters.
|
|
[% END # / IF results %]
|
|
</div> <!-- / #topissues -->
|
|
</div> <!-- / .span10 -->
|
|
</div> <!-- / .row-fluid -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(function() {
|
|
$("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aaSorting": [ [2, "desc"], [0, "asc"] ],
|
|
"aoColumnDefs": [
|
|
[% IF ( opacuserlogin ) %]{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }[% END %]
|
|
],
|
|
"aoColumns": [
|
|
{ "sType": "anti-the" },
|
|
null,
|
|
{ "sType": "title-numeric" },
|
|
[% IF ( opacuserlogin ) %]null,[% END %]
|
|
]
|
|
}));
|
|
});
|
|
function Dopop(link) {
|
|
newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
|
|
}
|
|
//]]>
|
|
</script>
|
|
[% END %]
|