Owen Leonard
a9c90b6dfb
Note that this new include builds only the first half of the anchor tag (<a>). Because title and subtitle are output differently on some pages, rendering of the second half of the tag is left to individual pages. Includes fixes for staff client templates. Change to basket.pl fixes a bug wherein the OPAC's bibliodefaultview preference was being checked instead of the staff client's. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
258 lines
10 KiB
Cheetah
258 lines
10 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Circulation › Pending Holds</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- Additions to enable Calendar system -->
|
|
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
|
|
<!-- End of additions --><!-- Additions to enable Calendar system -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
|
|
<!-- End of additions -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
|
<script type="text/JavaScript" language="JavaScript">
|
|
//<![CDATA[
|
|
$.tablesorter.addParser({
|
|
id: 'articles',
|
|
is: function(s) {return false; },
|
|
format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
|
|
type: 'text'
|
|
});
|
|
$(document).ready(function() {
|
|
$("th a").hide();
|
|
$.tablesorter.defaults.widgets = ['zebra'];
|
|
$("#holdst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
|
|
dateFormat: 'uk',<!-- /TMPL_IF -->
|
|
sortList: [[3,0]],
|
|
headers: { 0:{sorter:false},1:{sorter:false},3: { sorter: 'articles' },7:{sorter:false}}
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="circ-search.inc" -->
|
|
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Pending Holds</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h2>Pending holds<!-- TMPL_IF NAME="run_report" --> placed between <!-- TMPL_VAR NAME="from" --> and <!-- TMPL_VAR NAME="to" --><!-- /TMPL_IF --></h2>
|
|
<!-- TMPL_IF NAME="run_report" -->
|
|
<h3>Reported on <!-- TMPL_VAR NAME="todaysdate" --></h3>
|
|
<p>The following holds have not been filled. Please retrieve them and check them in.</p>
|
|
<div class="searchresults">
|
|
<!-- TMPL_IF NAME="reserveloop" -->
|
|
<table id="holdst">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Pull This Many Items
|
|
</th>
|
|
<th>
|
|
Items Available
|
|
</th>
|
|
<th>
|
|
Patrons with Holds
|
|
</th>
|
|
<th>Title
|
|
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=biblio&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
|
|
</th>
|
|
<th>
|
|
Libraries
|
|
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=library&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
|
|
</th>
|
|
<th>
|
|
Available Call Numbers
|
|
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=call&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
|
|
</th>
|
|
<th>
|
|
Available Itypes
|
|
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=itype&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
|
|
</th>
|
|
<th>
|
|
Available Locations
|
|
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=location&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
|
|
</th>
|
|
<th >Earliest Hold Date
|
|
<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=date&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- TMPL_IF NAME="next_or_previous" -->
|
|
<tr>
|
|
<td colspan="3" align="left">
|
|
<!-- TMPL_IF NAME="prev_results" -->
|
|
<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
|
|
<input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
|
|
<input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
|
|
<input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="prev_results" -->">
|
|
<input type="submit" name="run_report" value="< Prev">
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td colspan="3"></td>
|
|
<td colspan="3" align="right">
|
|
<!-- TMPL_IF NAME="next_results" -->
|
|
<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
|
|
<input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
|
|
<input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
|
|
<input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="next_results" -->">
|
|
<input type="submit" name="run_report" value="Next >">
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP NAME="reserveloop" -->
|
|
<tr>
|
|
<!-- TMPL_IF name="borrowernumber" -->
|
|
<td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
|
|
<td><!-- TMPL_VAR NAME="count" --></td>
|
|
<td><!-- TMPL_VAR NAME="rcount" --></td>
|
|
<td>
|
|
<p>
|
|
<!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
|
|
<!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" -->
|
|
</a>
|
|
</p>
|
|
</td>
|
|
<!-- TMPL_ELSE -->
|
|
<td colspan="3">
|
|
|
|
</td>
|
|
<td>"</td>
|
|
<!-- /TMPL_IF -->
|
|
<td><p><!-- TMPL_VAR NAME="holdingbranch" --></p></td>
|
|
<td><p><!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
|
|
<td><p><!-- TMPL_VAR NAME="itype" --></p></td>
|
|
<td><p><!-- TMPL_VAR NAME="location" --></p></td>
|
|
<td width="15%">
|
|
<p><!-- TMPL_VAR NAME="reservedate" --></p>
|
|
<p>in <!-- TMPL_VAR NAME="branch" --></p>
|
|
<!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_IF NAME="next_or_previous" -->
|
|
<tr>
|
|
<td colspan="3" align="left">
|
|
<!-- TMPL_IF NAME="prev_results" -->
|
|
<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
|
|
<input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
|
|
<input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
|
|
<input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="prev_results" -->">
|
|
<input type="submit" name="run_report" value="< Prev">
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td colspan="3"></td>
|
|
<td colspan="3" align="right">
|
|
<!-- TMPL_IF NAME="next_results" -->
|
|
<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
|
|
<input type="hidden" name="from" value="<!-- TMPL_VAR NAME="from" -->">
|
|
<input type="hidden" name="to" value="<!-- TMPL_VAR NAME="to" -->">
|
|
<input type="hidden" name="report_page" value="<!-- TMPL_VAR NAME="next_results" -->">
|
|
<input type="submit" name="run_report" value="Next >">
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
</tbody>
|
|
</table>
|
|
<!-- TMPL_ELSE -->
|
|
<b>No items found.</b>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<div id="filters">
|
|
|
|
<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
|
|
<fieldset class="brief">
|
|
<h4>Refine Results</h4>
|
|
<ol>
|
|
<li>
|
|
<label for="from">
|
|
Start date:
|
|
</label>
|
|
<input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
|
|
<script language="JavaScript" type="text/javascript">
|
|
function validate1(date) {
|
|
var day = date.getDate();
|
|
var month = date.getMonth() + 1;
|
|
var year = date.getFullYear();
|
|
var weekDay = date.getDay();
|
|
var dayMonth = month + '-' + day;
|
|
var dateString = year + '-' + month + '-' + day;
|
|
var dateTo = document.getElementById('to').value.split("-");
|
|
var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
|
|
if (date > limitDate) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
Calendar.setup(
|
|
{
|
|
inputField : "from",
|
|
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
|
|
button : "openCalendarFrom",
|
|
disableFunc : validate1,
|
|
dateStatusFunc : validate1
|
|
}
|
|
);
|
|
</script></li>
|
|
<li><label for="to">
|
|
End date:
|
|
</label>
|
|
<input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
|
|
<script type="text/javascript">
|
|
function validate2(date) {
|
|
var day = date.getDate();
|
|
var month = date.getMonth() + 1;
|
|
var year = date.getFullYear();
|
|
var weekDay = date.getDay();
|
|
var dayMonth = month + '-' + day;
|
|
var dateString = year + '-' + month + '-' + day;
|
|
var dateFrom = document.getElementById('from').value.split("-");
|
|
var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
|
|
if (limitDate > date) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
Calendar.setup(
|
|
{
|
|
inputField : "to",
|
|
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
|
|
button : "openCalendarTo",
|
|
disableFunc : validate2,
|
|
dateStatusFunc : validate2
|
|
}
|
|
);
|
|
</script></li>
|
|
</ol>
|
|
<p><i>(Inclusive, default is two days ago to today, set other date ranges as needed. )</i></p>
|
|
<fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
|
|
</fieldset>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|