Bug 16562 - Translatability: Issue in opac-user.tt (separated word 'item')
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-topissues.tt
1 [% USE Koha %]
2 [% USE AuthorisedValues %]
3 [% USE ItemTypes %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Most popular titles</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %]
8     <style type="text/css">
9         #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;};
10     </style>
11 [% END %]
12 </head>
13 [% INCLUDE 'bodytag.inc' bodyid='opac-topissues' bodyclass='scrollto' %]
14 [% INCLUDE 'masthead.inc' %]
15
16     <div class="main">
17         <ul class="breadcrumb">
18             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
19             <li><a href="#">Most popular titles</a></li>
20         </ul>
21
22         <div class="container-fluid">
23             <div class="row-fluid">
24                 <div class="span2">
25                     <div id="usertopissues">
26                         [% INCLUDE 'opac-topissues.inc' %]
27                         [% IF ( OpacNav || OpacNavBottom ) %]
28                             [% INCLUDE 'navigation.inc' %]
29                         [% END %]
30                     </div>
31                 </div>
32                 <div class="span10">
33                     <div id="topissues" class="maincontent">
34
35                         [% IF ( results ) %]
36                             <table id="topissuest" class="table table-bordered table-striped">
37                                 <caption>
38                                     The [% limit %] most checked-out
39                                     [% IF selected_itemtype %]
40                                         [% ItemTypes.GetDescription(selected_itemtype) %]
41                                     [% END %]
42                                     [% IF ( branch ) %]
43                                     at
44                                     [% branch %]
45                                     [% END %]
46                                     [% IF ( timeLimit != 999 ) %]
47                                     in the past [% timeLimit |html %] months
48                                     [% ELSE %] of all time[% END %]
49                                 </caption>
50                                 <thead>
51                                     <tr>
52                                         <th>Title</th>
53                                         <th>[% IF ( ccodesearch ) %]Collection[% ELSE %]Item type[% END %]</th>
54                                         <th>Checkouts</th>
55                                         [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]<th>&nbsp;</th>[% END %]
56                                     </tr>
57                                 </thead>
58                                 <tbody>
59                                     [% FOREACH result IN results %]
60                                         <tr>
61                                             <td><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber %]">[% result.title |html %]</a><p>[% result.author %]
62                                             [% IF ( result.publishercode ) %]- [% result.publishercode %][% END %]
63                                             [% IF ( result.place ) %][% result.place %][% END %]
64                                             [% IF ( result.publicationyear ) %]
65                                                 [% result.publicationyear %]
66                                             [% ELSIF ( result.copyrightdate ) %]
67                                                 [% result.copyrightdate %]
68                                             [% END %]
69                                             [% IF ( result.pages ) %] - [% result.pages %][% END %]
70                                             [% IF ( result.item('size') ) %][% result.item('size') %][% END %]</p>
71                                             </td>
72                                             <td>
73                                               [% IF Koha.Preference('AdvancedSearchTypes') == 'ccode' %]
74                                                 <span class="tdlabel">Collection</span>
75                                                 [% AuthorisedValues.GetByCode('ccode', result.ccode, 1) %]
76                                               [% ELSE %]
77                                                 <span class="tdlabel">Item type</span>
78                                                 [% ItemTypes.GetDescription(result.itemtype) %]
79                                               [% END %]
80                                             </td>
81                                             <td><span class="tdlabel">Checkouts: </span> <span title="[% result.count %]">[% result.count %]</span></td>
82                                             [% 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 %]
83                                             </tr>
84                                     [% END %]
85                                 </tbody>
86                             </table>
87                         [% ELSE %]
88                             No results, try to change filters.
89                         [% END # / IF results %]
90                     </div> <!-- / #topissues -->
91                 </div> <!-- / .span10 -->
92             </div> <!-- / .row-fluid -->
93         </div> <!-- / .container-fluid -->
94     </div> <!-- / .main -->
95
96 [% INCLUDE 'opac-bottom.inc' %]
97 [% BLOCK jsinclude %]
98 [% INCLUDE 'datatables.inc' %]
99 <script type="text/javascript">
100 //<![CDATA[
101     $(function() {
102         $("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
103             "aaSorting": [ [2, "desc"], [0, "asc"] ],
104             "aoColumnDefs": [
105               [% IF ( opacuserlogin ) %]{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }[% END %]
106             ],
107             "aoColumns": [
108                 { "sType": "anti-the" },
109                 null,
110                 { "sType": "title-numeric" },
111                 [% IF ( opacuserlogin ) %]null,[% END %]
112             ]
113         }));
114     });
115 function Dopop(link) {
116     newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
117 }
118 //]]>
119 </script>
120 [% END %]