Koha/koha-tmpl/intranet-tmpl/prog/en/reserve/request.tmpl
2007-05-11 16:22:03 +00:00

359 lines
12 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Circulation</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="menus.inc" -->
<!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
<script language="JavaScript">
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 a document to reserve\n");
}
if (count_reserv >= "2"){
msg += ("- You can select only one type of document\n by item, or by the first item returned\n");
}
if (alreadyreserved > "0"){
msg += ("- This borrower had already reserved this document\n Please cancel the previous reserve first \n");
}
if (msg == "") return(true);
else {
alert(msg);
return(false);
}
}
</script>
<!-- TMPL_IF NAME="messagetransfert" -->
<div>
<h2>Reserve find for the document(<!-- TMPL_VAR NAME="nextreservtitle" -->)must transfered</h2>
<p>This documen is reserved by : <b> <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b> at the library : <b> <!-- TMPL_VAR NAME="branchname" --> </b>, Please put this document in transfer .
</p>
<form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
<input type="submit" class="button circulation">
</form>
</div>
<!-- /TMPL_IF -->
<h1>Request for reserve</h1>
<fieldset>
<legend>Biblio informations</legend>
<ul>
<p><label>Title: </label><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></p>
<p><label>Author: </label><!-- TMPL_VAR NAME="author" --></p>
</ul>
</fieldset>
<!-- TMPL_UNLESS NAME="cardnumber"-->
<form action="request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" method="post" onSubmit="request.pl" name="getborrower">
<fieldset>
<legend>Member search</legend>
<!-- TMPL_UNLESS name="CGIselectborrower" -->
<p>
<label>Member (number or name)</label>
<input type="text" size="20" name="findborrower">
</p>
<div id="action">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber"-->">
<input type="submit" value="Search">
</div>
<!-- TMPL_ELSE -->
<!-- TMPL_VAR NAME="CGIselectborrower" -->
<div id="action">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber"-->">
<input type="submit" value="Select">
</div>
<!-- /TMPL_UNLESS -->
</fieldset>
</form>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="maxreserves" -->
<br>
<p class="problem">
<label><u>Too many reserves</u></label>
Currently, this member has too much active reserves.
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expiry" -->
<br>
<p class="problem">
<label>Expired card</label>
The card of this member is expired
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="diffbranch" -->
<p class="problem">
<label>Localisation</label>
The borrower isn't in is own library
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="alreadyreserved" -->
<p class="problem">
<label>Operation can be make</label>
This borrower had already make a reserve for this document
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="messageborrower" -->
<div class="problem">Carrefull,there is no borrower with this name, Please, try an other </div>
<!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<form action="placerequest.pl" method="post" onSubmit="return check();" name="form">
<fieldset>
<legend>Reservation properties</legend>
<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" -->">
<p><label>Member</label>
<!-- TMPL_IF NAME="cardnumber"-->
<!-- TMPL_VAR NAME="borrowersurname" --> <!-- TMPL_VAR NAME="borrowerfirstname" -->
(card number: <!-- TMPL_VAR NAME="cardnumber" -->)
<!-- TMPL_ELSE -->
Not defined yet
<!-- /TMPL_IF -->
</p>
<p>
<label for="priority">Priority</label>
<b> <!-- TMPL_VAR Name="fixedRank" --> </b>
</p>
<p>
<label>Notes</label>
<textarea name="notes" cols="20" rows="2"></textarea>
</p>
<p>
<label>Pickup at</label>
<!-- TMPL_VAR NAME="CGIbranch" -->
</p>
</fieldset>
<fieldset>
<legend>Items</legend>
<!-- TMPL_LOOP name="bibitemloop" -->
<ul>
<li>Item type: <!-- TMPL_VAR NAME="description" --></li>
<li>Publication year: <!-- TMPL_VAR NAME="publicationyear" --></li>
</ul>
<table>
<tr>
<th>Barcode</th>
<th>Home branch</th>
<th>Holding branch</th>
<th>Call number</th>
<th>Information</th>
<th>Cancel a Reserve</th>
</tr>
<!-- TMPL_LOOP Name="itemloop" -->
<tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
<td>
<!-- TMPL_VAR NAME="barcode" -->
</td>
<td>
<!-- TMPL_VAR NAME="homebranch" -->
</td>
<td>
<!-- TMPL_VAR NAME="holdingbranch" -->
</td>
<td>
<!-- TMPL_VAR NAME="itemcallnumber" -->
</td>
<td>
<!-- TMPL_IF Name="date_due" -->
On loan, Return expected on <!-- TMPL_VAR NAME="date_due" -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="available" -->
<label>
<input type="checkbox" name="checkitem" value="<!-- TMPL_VAR NAME="itemnumber" -->">
reserve this item
</label>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="reservedate" -->
Item reserved on <!-- TMPL_VAR NAME="reservedate" -->
<!-- /TMPL_IF -->
<!-- TMPL_IF Name="message" -->
Cant' be selected (lost or long overdue)
<!-- /TMPL_IF -->
<!-- TMPL_IF Name="notforloan" -->
This document is not for loan (<!-- TMPL_VAR NAME="notforloanvalue" -->)
<!-- /TMPL_IF -->
<!-- TMPL_IF Name="transfertwhen" -->
Document in transfer from the library : <!-- TMPL_VAR NAME="transfertfrom" -->,
to : <!-- TMPL_VAR NAME="transfertto" -->, the : <!-- TMPL_VAR NAME="transfertwhen" -->
<!-- /TMPL_IF -->
</td>
<td>
<!-- TMPL_IF NAME="reservedate"-->
<!-- TMPL_IF NAME="nocancel" -->
Can't be cancelled, when item on transfert
<!-- TMPL_ELSE -->
<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('You will delete a reserve, are you sure ?'))
{return true;}
else {return false;}">Cancel A reserve
<span> Item reserved for :
<!-- TMPL_VAR NAME="ReservedForSurname" --> <!-- TMPL_VAR NAME="ReservedForFirstname" -->
<br>
expected at : <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
</span>
</a>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
No reserves
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP --> <!-- itemloop -->
</table>
<!-- /TMPL_LOOP --> <!-- bibitemloop -->
<p>
<label>
If no item is available, reserve next returning item
<input type="checkbox" name="request" value="Any">
</label>
</p>
<input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
<input type="hidden" name="alreadyreserved" value="<!-- TMPL_VAR NAME="alreadyreserved" -->">
</fieldset>
<div id="actions">
<!-- TMPL_IF NAME="cardnumber"-->
<input type="submit" value="Reserve">
<!-- TMPL_ELSE -->
<input type="submit" value="Reserve" value="Reserve" disabled="disabled" style="background-color: gray;" disabled="disabled" title="Search member first">
<!-- /TMPL_IF -->
</div>
</form>
<!-- TMPL_IF name="reserveloop" -->
<form name="T<!-- TMPL_VAR NAME="time" -->" action="modrequest.pl" method="post">
<fieldset>
<legend>Queue list</legend>
<table>
<tr>
<th>Priority</th>
<th>Member</th>
<th>Notes</th>
<th>Date</th>
<th>Pick up location</th>
<th>Informations</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>Waiting</option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="priority" -->" <!-- TMPL_IF Name="selected" --> selected <!-- /TMPL_IF -->>
<!-- TMPL_VAR NAME="priority" -->
</option>
<!-- /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="surname" -->, <!-- TMPL_VAR NAME="firstname" --></a>
</td>
<td><!-- TMPL_VAR NAME="notes" --></td>
<td><!-- TMPL_VAR NAME="date" --></td>
<td>
<!-- TMPL_IF Name="wait" -->
<!-- TMPL_IF NAME="atdestination" -->
Document waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value=<!-- TMPL_VAR NAME="wbrcd" -->>
<!-- TMPL_ELSE -->
Document will be 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' -->&type='intra'" onclick="openWindow(this, 'Item', 480, 640); return false;">
<!-- 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 -->
<tr>
<td colspan="6">
<input type="submit" name="submit" value="Cancel reserve(s)" border="0">
</td>
</tr>
</table>
</fieldset>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->