2143002750
Major bugfixes: * Circulation status in moredetail.pl now correctly displays On loan status and Date due * Bugfixes on Status column in detail.pl * Removed hard-coded English strings from status column in detail.pl * Added missing auth values for lost and damaged statuses, sane defaults if those auth values don't exist * Added missing 'On hold' status and 'Hold waiting' status display Medium bugfixes: * Now correctly shows itemtype at level specified in systempreference * Uses itemtypeimage for display, image title is full itemtype description * Fixed Location column concatenation between branchname location and itemcallnumber * broke out Location (branch), Collection (items.location) Call Number (itemcallnumber) into their own columns * Added auth value display for items.location Minor fixes: * detail.pl didn't show dates correctly * nomenclature s/Checked out/On loan/ in opac-detail.tmpl * s/Book/Item/ in my $desc="Item Returned ".$iteminfo->{'barcode'}; in Circulation.pm * request.tmpl: s/date_due/onloan/ to display date due * Fixed SimilarItems, XISBNSimilarItems NOTE: Needs to be ported to OPAC Signed-off-by: Joshua Ferraro <jmf@liblime.com>
390 lines
15 KiB
Cheetah
390 lines
15 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Circulation › Holds › Place a hold on <!-- TMPL_VAR NAME="title" --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<script type="text/javascript">
|
|
// <![CDATA[
|
|
function check() {
|
|
var msg = "";
|
|
var count_reserv = 0;
|
|
var alreadyreserved = 0;
|
|
|
|
// check if we have checkitem form
|
|
if (document.form.checkitem){
|
|
for (i=0;i<document.form.checkitem.length;i++){
|
|
if (document.form.checkitem[i].checked == true) {
|
|
count_reserv++ ;
|
|
}
|
|
}
|
|
// for only one item, check the checkitem without consider the loop checkitem
|
|
if (i==0){
|
|
if (document.form.checkitem.checked == true) {
|
|
count_reserv++;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (document.form.request.checked == true){
|
|
count_reserv++ ;
|
|
}
|
|
|
|
if (document.form.alreadyreserved.value == "1"){
|
|
alreadyreserved++ ;
|
|
}
|
|
|
|
if (count_reserv == "0"){
|
|
msg += ("- Please select an item to place a hold\n");
|
|
}
|
|
if (count_reserv >= "2"){
|
|
msg += ("- You may only place a hold on one item at a time\n");
|
|
}
|
|
|
|
if (alreadyreserved > "0"){
|
|
msg += ("- This patron had already placed a hold on this item\n Please cancel the previous hold first \n");
|
|
}
|
|
|
|
if (msg == "") return(true);
|
|
else {
|
|
alert(msg);
|
|
return(false);
|
|
}
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
$("#requestany").click(function() {
|
|
if(this.checked){
|
|
$("input[@name=checkitem]").each(function() {
|
|
$(this).attr("checked","");
|
|
});
|
|
}
|
|
});
|
|
$("input[@name=checkitem]").click(function() {
|
|
onechecked = 0;
|
|
$("input[@name=checkitem]").each(function() {
|
|
if(this.checked){
|
|
onechecked = 1;
|
|
}
|
|
});
|
|
if(onechecked == 1){
|
|
$("#requestany").attr("checked","");
|
|
} else {
|
|
$("#requestany").attr("checked","checked");
|
|
}
|
|
});
|
|
});
|
|
|
|
// ]]>
|
|
</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/catalogue/search.pl">Catalogue</a> › <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> › Place a hold on <!-- TMPL_VAR NAME="title" --></div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<!-- TMPL_IF NAME="messagetransfert" -->
|
|
<div>
|
|
<h2>Hold found for (<!-- TMPL_VAR NAME="nextreservtitle" -->), please transfer</h2>
|
|
<p>Hold placed by : <b> <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b> at : <b> <!-- TMPL_VAR NAME="branchname" --> </b>, Please transfer this item.
|
|
</p>
|
|
<form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
|
|
<input type="submit" class="button" />
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
<h1>Place a hold on <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></h1>
|
|
|
|
<!-- TMPL_UNLESS NAME="cardnumber"-->
|
|
<!-- TMPL_IF NAME="messageborrower" -->
|
|
<div class="problem">No patron with this name, Please, try another </div>
|
|
<!-- /TMPL_IF -->
|
|
<form action="request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" method="post">
|
|
<!-- TMPL_UNLESS name="CGIselectborrower" -->
|
|
<fieldset class="brief">
|
|
<label for="patron">Patron: </label>
|
|
<div class="hint">Enter patron card number or partial name:</div>
|
|
<input type="text" size="20" id="patron" class="focus" name="findborrower" />
|
|
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber"-->" />
|
|
<input type="submit" value="Search" />
|
|
</fieldset>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="CGIselectborrower" -->
|
|
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber"-->" />
|
|
<input type="submit" value="Select" />
|
|
<!-- /TMPL_UNLESS -->
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF NAME="maxreserves" -->
|
|
<p class="problem">
|
|
<strong>Too many holds</strong>
|
|
Currently, this patron has too many holds.
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="expiry" -->
|
|
<br />
|
|
<p class="problem">
|
|
<strong>Expired account</strong>
|
|
This patron's account has expired
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="diffbranch" -->
|
|
<p class="problem">
|
|
<strong>Warning:</strong> Pickup Library is different than Patron's Home Library
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="alreadyreserved" -->
|
|
<p class="problem">
|
|
<strong>Warning:</strong>
|
|
This patron already has a hold on this item
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="messageborrower" -->
|
|
<p class="problem"><strong>Patron not found:</strong> Name or barcode not found. Please try an other </p>
|
|
<!-- /TMPL_IF -->
|
|
<fieldset class="rows left">
|
|
<legend>Hold details</legend>
|
|
<form action="placerequest.pl" method="post" onsubmit="return check();" name="form">
|
|
|
|
<input type="hidden" size="10" name="member" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
|
|
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
|
|
<input type="hidden" name="type" value="str8" />
|
|
<input type="hidden" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
|
|
<input type="hidden" name="rank-request" value="<!-- TMPL_VAR NAME="fixedRank" -->" />
|
|
<ol> <li><span class="label">Patron:</span>
|
|
<!-- TMPL_IF NAME="cardnumber"-->
|
|
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="borrowerfirstname" --> <!-- TMPL_VAR NAME="borrowersurname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</a>
|
|
<!-- TMPL_ELSE -->
|
|
Not defined yet
|
|
<!-- /TMPL_IF -->
|
|
</li>
|
|
<li>
|
|
<span class="label">Priority:</span>
|
|
<strong><!-- TMPL_VAR Name="fixedRank" --></strong>
|
|
</li>
|
|
<li>
|
|
<label for="holdnotes">Notes:</label>
|
|
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
|
|
</li>
|
|
<li>
|
|
<label for="pickup">Pickup at:</label>
|
|
<!-- TMPL_VAR NAME="CGIbranch" -->
|
|
</li>
|
|
|
|
<li> <label for="requestany">Place a hold on the next available copy </label>
|
|
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
|
|
</li>
|
|
|
|
<input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
|
|
<input type="hidden" name="alreadyreserved" value="<!-- TMPL_VAR NAME="alreadyreserved" -->" />
|
|
</ol>
|
|
<fieldset class="action">
|
|
<!-- TMPL_IF NAME="cardnumber"-->
|
|
<input type="submit" value="Place Hold" />
|
|
<!-- /TMPL_IF -->
|
|
</fieldset>
|
|
<!-- TMPL_LOOP name="bibitemloop" -->
|
|
<ol>
|
|
<!-- TMPL_UNLESS NAME="item-level_itypes" -->
|
|
<li><span class="label">Item type:</span> <!-- TMPL_VAR NAME="description" --></li>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- TMPL_IF NAME="publicationyear" --><li><span class="label">Publication year:</span> <!-- TMPL_VAR NAME="publicationyear" --></li><!-- /TMPL_IF -->
|
|
</ol>
|
|
<label for="requestspecific">Place a hold on a specific copy</label>
|
|
<table id="requestspecific">
|
|
<tr>
|
|
<!-- TMPL_IF NAME="item-level_itypes" -->
|
|
<th>Hold</th>
|
|
<th>Item type</th>
|
|
<!-- /TMPL_IF -->
|
|
<th>Barcode</th>
|
|
<th>Home Library</th>
|
|
<th>Last Location</th>
|
|
<th>Call number</th>
|
|
<th>Information</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP Name="itemloop" -->
|
|
<tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
|
|
<td>
|
|
<!-- TMPL_IF NAME="available" -->
|
|
<input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
|
|
<!-- TMPL_ELSE -->
|
|
<input DISABLED type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
|
|
<!-- TMPL_IF NAME="item-level_itypes" -->
|
|
<td>
|
|
<img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="itypename" -->" title="<!-- TMPL_VAR NAME="itypename" -->"/>
|
|
</td>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<td>
|
|
<!-- TMPL_VAR NAME="barcode" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="homebranchname" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="holdingbranchname" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="itemcallnumber" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_IF Name="onloan" -->
|
|
<span class="checkedout">Due <!-- TMPL_VAR NAME="onloan" --></span>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF Name="message" -->
|
|
Unavailable (lost or missing)
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF Name="notforloan" -->
|
|
Not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF Name="transfertwhen" -->
|
|
In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
|
|
to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="reservedate"-->
|
|
<!-- TMPL_IF NAME="nocancel" -->
|
|
Can't be cancelled when item is in transit
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="canreservefromotherbranches" -->for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="ReservedForBorrowernumber" -->"><!-- TMPL_VAR NAME="ReservedForFirstname" --> <!-- TMPL_VAR NAME="ReservedForSurname" --></a><!-- /TMPL_IF --> <!-- TMPL_IF NAME="waitingdate" -->at<!-- TMPL_ELSE -->expected at<!-- /TMPL_IF --> <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
|
|
since
|
|
<!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" --><!-- TMPL_ELSE --><!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->. <a class="info" href="modrequest.pl?CancelBiblioNumber=<!-- TMPL_VAR NAME="biblionumber" -->&CancelBorrowerNumber=<!-- TMPL_VAR NAME="ReservedForBorrowernumber" -->&CancelItemnumber=<!-- TMPL_VAR NAME="itemnumber"-->" onclick="if (window.confirm('Are you sure you want to delete this hold?')) {return true;} else {return false;}">Cancel hold</a>
|
|
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_ELSE -->
|
|
Not on hold
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP --> <!-- itemloop -->
|
|
</table>
|
|
<!-- /TMPL_LOOP --> <!-- bibitemloop -->
|
|
|
|
<fieldset class="action">
|
|
<!-- TMPL_IF NAME="cardnumber"-->
|
|
<input type="submit" value="Place Hold" />
|
|
<!-- /TMPL_IF -->
|
|
</fieldset>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- TMPL_UNLESS NAME="cardnumber" -->
|
|
<!-- TMPL_IF name="reserveloop" -->
|
|
<form name="T<!-- TMPL_VAR NAME="time" -->" action="modrequest.pl" method="post">
|
|
<fieldset class="rows left">
|
|
<legend>Existing holds</legend>
|
|
<table>
|
|
<tr>
|
|
<th>Priority</th>
|
|
<th>Patron</th>
|
|
<th>Notes</th>
|
|
<th>Date</th>
|
|
<th>Pick up Library</th>
|
|
<th>Details</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP Name="reserveloop" -->
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
|
|
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
|
|
<select name="rank-request">
|
|
<!-- TMPL_IF Name="wait" -->
|
|
<option value="W" selected="selected">Waiting</option>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="selected" -->
|
|
<option value="<!-- TMPL_VAR NAME="priority" -->" selected="selected">
|
|
<!-- TMPL_VAR NAME="priority" -->
|
|
</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="<!-- TMPL_VAR NAME="priority" -->">
|
|
<!-- TMPL_VAR NAME="priority" -->
|
|
</option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<option value="del">del</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->" ><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a>
|
|
</td>
|
|
<td><!-- TMPL_VAR NAME="notes" --></td>
|
|
<td><!-- TMPL_VAR NAME="date" --></td>
|
|
<td>
|
|
<!-- TMPL_IF Name="wait" -->
|
|
<!-- TMPL_IF NAME="atdestination" -->
|
|
<!-- TMPL_IF name="found" -->
|
|
Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
|
|
<!-- TMPL_ELSE -->
|
|
Waiting to be pulled
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_ELSE -->
|
|
Item being transfered to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_ELSE -->
|
|
<select name="pickup">
|
|
<!-- TMPL_LOOP Name="branchloop" -->
|
|
<!-- TMPL_IF Name="selected" -->
|
|
<option value="<!-- TMPL_VAR NAME="branch" -->" selected="selected">
|
|
<!-- TMPL_ELSE -->
|
|
<option value="<!-- TMPL_VAR NAME="branch" -->">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="branchname" -->
|
|
</option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_IF Name="wait" -->
|
|
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME='biblionumber' -->">
|
|
<!-- TMPL_IF NAME="barcodenumber" -->
|
|
<!-- TMPL_VAR NAME="barcodenumber" -->
|
|
<input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
|
|
<!-- TMPL_ELSE -->
|
|
No Barcode
|
|
<!-- /TMPL_IF -->
|
|
</a>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="constrainttypea" -->
|
|
<i>Next available</i>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="constrainttypeo" -->
|
|
only this type :<b><!-- TMPL_VAR NAME="volumeddesc" --> <!-- TMPL_VAR NAME="itemtype" --></b>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP --> <!-- existing reserveloop -->
|
|
</table>
|
|
<fieldset class="action"><input type="submit" name="submit" value="Cancel hold(s)" /></fieldset>
|
|
</fieldset>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_UNLESS -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
|
|
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|