a10aeb1b0d
To test 1. Log in to the staff client. Note your logged in library. 2. Navigate to Circulation -> Holds queue. 3. Select a holds queue report for a library other than your own. 4. From the holds queue report page, click the "Check out" tab and enter the card number of a patron who has holds. 5. On the circulation page for that patron, click the "Holds" tab. 6. Click one of the titles in the list of holds. Your logged in branch will now match the library you chose for the holds queue report. Alternate sequence: 4. From the holds queue report page, click the "Check out" tab and do a non-exact search (search which will return more than one result) for a patron who has holds. 5. Choose the correct patron from the list of results. Your logged in branch will now match the library you chose for the holds queue report. Apply the patch and repeat, this time it should not change your logged in branch Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Weird bug, the patch works for me. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Good catch. All tests and QA script pass. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
131 lines
5.6 KiB
Text
131 lines
5.6 KiB
Text
[% 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="/intranet-tmpl/prog/en/css/datatables.css" />
|
|
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
|
[% INCLUDE 'datatables-strings.inc' %]
|
|
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
|
|
<script type="text/javascript">//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#holdst").dataTable({
|
|
"aaSorting": [[ 2, "asc" ]],
|
|
"bPaginate": false,
|
|
"bLengthChange": false,
|
|
"bFilter": false,
|
|
"bSort": true,
|
|
"bInfo": false,
|
|
"bAutoWidth": 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-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">[% itemsloo.ccode %]</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">[% itemsloo.reservedate %]</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' %]
|