Owen Leonard
612b33ae69
Bug 10649 introduced a new include file for adding DataTables-related JavaScript assets. This patch adds use of this include file to all circ-related pages which use DataTables. Apply the patch and test the following pages to confirm that table sorting works correctly: - Circulation - The UseTablesortForCirc system preference must be enabled. - Check out to a patron with existing checkouts. Choose a patron who is a guarantor to another patron with checkouts in order to test the relatives' checkouts table. - The checkouts and relatives' checkouts tables have been modified to exclude articles when sorting of titles. - Hold ratios - The title column has been configured to exclude articles from sorting - Transfer to receive - Holds queue - The title column has been configured to exclude articles when sorting - The date column has been modified to use the title-string filter for sorting. An unformatted date is now passed from C4::HoldsQueue.pm to the template, where the KohaDates filter is used for formatting. Sorting is based on the unformatted date. - Holds awaiting pickup - The "available since" column has been configured for sorting on an unformatted date. waitingreserves.pl now passes the unformatted date to the template, and formatting is done using the KohaDates filter. - The title column has been configured to exclude articles when sorting. Edit: Rebased on current master following commit of Bug 11605 Signed-off-by: A. Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
133 lines
5.7 KiB
Text
133 lines
5.7 KiB
Text
[% USE KohaDates %]
|
|
[% USE ItemTypes %]
|
|
[% USE AuthorisedValues %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Circulation › Holds queue</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style type="text/css"> p { margin-top: 0; }</style>
|
|
</head>
|
|
<body id="circ_view_holdsqueue" class="circ">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script type="text/javascript">//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#holdst").dataTable({
|
|
"aaSorting": [[ 3, "asc" ]],
|
|
"aoColumns": [
|
|
{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
|
|
],
|
|
"sDom": 't',
|
|
"bPaginate": false
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
› <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
|
|
› <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
|
|
[% IF ( run_report ) %] › Results[% END %]
|
|
</div>
|
|
|
|
<div id="doc" class="yui-t7">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-g">
|
|
|
|
<h1>Holds Queue</h1>
|
|
|
|
[% IF ( run_report ) %]
|
|
[% IF ( total ) %]
|
|
<div class="results">[% total %] items found for
|
|
[% IF ( branchlimit ) %][% branchlimit %][% ELSE %]ALL libraries[% END %]
|
|
</div>
|
|
[% ELSE %]
|
|
<div class="dialog message">No items found.</div>
|
|
[% END %]
|
|
[% IF ( itemsloop ) %]
|
|
<table id="holdst">
|
|
<thead>
|
|
<tr>
|
|
<th class="hq-title">Title</th>
|
|
<th class="hq-collection">Collection</th>
|
|
<th class="hq-itemtype">Item type</th>
|
|
<th class="hq-callnumber">Call number</th>
|
|
<th class="hq-copynumber">Copy number</th>
|
|
<th class="hq-enumchron">Enumeration</th>
|
|
<th class="hq-barcode">Barcode</th>
|
|
<th class="hq-patron">Patron</th>
|
|
<th class="hq-sendto">Send to</th>
|
|
<th class="hq-date">Date</th>
|
|
<th class="hq-notes">Notes</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>[% FOREACH itemsloo IN itemsloop %]
|
|
<tr>
|
|
<td class="hq-title"><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]"><strong>[% itemsloo.title |html %]</strong> [% IF ( itemsloo.subtitle ) %][% itemsloo.subtitle %][% END %]</a></p>
|
|
<p><strong>[% itemsloo.author %]</strong>
|
|
<div class="hq-pubdata"> [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
|
|
[% IF ( itemsloo.publicationyear ) %], [% itemsloo.publicationyear %]
|
|
[% ELSIF ( itemsloo.copyrightdate ) %], [% itemsloo.copyrightdate %][% END %]
|
|
[% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
|
|
[% IF ( itemsloo.size ) %][% itemsloo.size %][% END %] [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]</p>
|
|
</div>
|
|
</td>
|
|
<td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %]</td>
|
|
<td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) %]</td>
|
|
<td class="hq-callnumber">[% itemsloo.location %] [% itemsloo.itemcallnumber %]</td>
|
|
<td class="hq-copynumber">[% itemsloo.copynumber %]</td>
|
|
<td class="hq-enumchron">[% itemsloo.enumchron %]</td>
|
|
<td class="hq-barcode">
|
|
[% IF ( itemsloo.item_level_request ) %]
|
|
<em>Only Item:</em> <strong>[% itemsloo.barcode %]</strong>
|
|
[% ELSE %]
|
|
<strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
|
|
[% END %]
|
|
</td>
|
|
<td class="hq-patron"><p><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% itemsloo.cardnumber %]#reserves">[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])</a></p> <p>[% itemsloo.phone %]</p></td>
|
|
<td class="hq-sendto">[% itemsloo.pickbranch %]</td>
|
|
<td class="hq-date"><span title="[% itemsloo.reservedate %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
|
|
<td class="hq-notes">[% itemsloo.notes %]</td>
|
|
</tr>
|
|
[% END %]</tbody>
|
|
</table>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% UNLESS ( total ) %]
|
|
<form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li><label for="branchlimit">Library: </label><select name="branchlimit" id="branchlimit">
|
|
<option value="">All</option>
|
|
[% FOREACH branchloo IN branchloop %]
|
|
[% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
|
|
[% ELSE %]
|
|
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select></li>
|
|
<!-- FIXME Not working yet
|
|
<li><label for="itemtypeslimit">Item Type: </label><select name="itemtypeslimit" id="itemtypeslimit">
|
|
<option value="">All</option>
|
|
[% FOREACH itemtypeloo IN itemtypeloop %]
|
|
[% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
|
|
[% ELSE %]
|
|
<option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select></li>
|
|
-->
|
|
</ol></fieldset>
|
|
<fieldset class="action"> <input type="submit" value="Submit" />
|
|
<input type="hidden" name="run_report" value="1" /></fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|