<style>
.sql { display: none; }
.ulined { text-decoration: underline; }
- .ratiolimit:link { color: blue; cursor: pointer; }
- .ratiolimit:hover { color: blue; text-decoration: underline; }
- #holdst ul li { list-style: outside url("[% interface | html %]/[% theme | html %]/img/item-bullet.gif") disc; }
+ #holdst ul li { list-style: outside url("[% interface | html %]/[% theme | html %]/img/item-bullet.svg") disc; }
</style>
</head>
<th>Holds</th>
<th>Items</th>
<th>Hold ratio</th>
- <th>Title</th>
+ <th class="anti-the">Title</th>
<th>Home libraries</th>
<th>Holding libraries</th>
<th>Location</th>
<th>Itype</th>
- <th>Call numbers</th>
+ <th class="natural">Call numbers</th>
<th>Items needed</th>
</tr>
</thead>
<tr>
<td><p>[% reserveloo.reservecount | html %]</p></td>
<td><p>[% reserveloo.itemcount | html %]</p></td>
- <td><a href="#" class="ratiolimit">[% reserveloo.thisratio | html %]</a></td>
+ <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reserveloo.biblionumber | uri %]" >[% reserveloo.thisratio | html %]</a></td>
<td>
[% INCLUDE 'biblio-title.inc' biblio=reserveloo link = 1 %][% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
</td>
[% END %]
[% IF ( reserveloo.pendingorders ) %]<br><strong>[% reserveloo.pendingorders | html %] pending</strong>[% END %]
[% ELSE %]
- 0 to order
+ <span>0 to order</span>
[% END %]
</p>
</td>
<li>
<label for="from">Start date:</label>
- <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
+ <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="flatpickr" data-date_to="to" />
</li>
<li>
<label for="to">End date:</label>
- <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="datepickerto" />
+ <input size="10" id="to" name="to" value="[% to | $KohaDates %]" type="text" class="flatpickr" />
</li>
</ol>
(inclusive)
<script>
var columns_settings = [% TablesSettings.GetColumns( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
$(document).ready(function() {
- $(".ratiolimit").on("click", function(e) {
- e.preventDefault();
- $("#ratio").val($(this).html());
- });
KohaTable("holdst", {
"aaSorting": [ [2,'desc'], [3,'asc'] ],
"aoColumnDefs": [
- { "aTargets": [ 0,1,2,8 ], "sType": "natural" },
- { "aTargets": [ 3 ], "sType": "anti-the" },
+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
+ { "sType": "natural", "aTargets" : [ "natural" ] },
],
"sPaginationType": "full",
"autoWidth": false