Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl
Chris Cormack 9678cfc38d Fix for bug 1738, opac-reserve now blocks reserving not for loan items
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-07 20:02:51 -06:00

203 lines
9.5 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Reserving <!-- TMPL_VAR NAME="title" --> for <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP -->
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!--TMPL_INCLUDE NAME="masthead.inc" -->
<div id="doc" class="yui-t7">
<div id="bd">
<div id="yui-g">
<!-- TMPL_IF NAME="message" -->
<!-- TMPL_IF NAME="GNA" -->
<p class="problem">
<strong>Sorry</strong>, you cannot place holds because the library doesn't have up-to-date <a href="/cgi-bin/koha/opac-userdetails.pl">contact information</a> on file.
</p>
<p class="problem">Please contact your librarian, or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="lost" -->
<p class="problem">
<strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.
</p>
<p class="problem">
If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="debarred" -->
<p class="error">
<strong>Sorry</strong>, you cannot place holds because your account has been frozen.
</p>
<p class="problem">Usually the reason for freezing an account is old overdues or damage fees. If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please consult a librarian.
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="too_much_oweing" -->
<p class="problem">
Sorry, you cannot place holds because you owe <!-- TMPL_VAR NAME="too_much_oweing" -->.
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="too_many_reserves" -->
<p class="error">Sorry, you cannot place more than <!-- TMPL_VAR NAME="too_many_reserves" --> holds.
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="already_reserved" -->
<p class="problem">
You already have a hold placed on this item.
<form action="/cgi-bin/koha/opac-detail.pl" method="post">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<input type="submit" class="icon back" value="Return to Item Detail Screen" />
</form>
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="no_items_selected" -->
<p class="problem">
You must select at least one item.
</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="no_branch_selected" -->
<p class="error">
You must select a library for pickup.
</p>
<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="select_item_types" -->
<!-- The first time round you select which bibitems you want -->
<form action="/cgi-bin/koha/opac-reserve.pl" method="post">
<input type="hidden" name="item_types_selected" value="1">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
<h3>Place a hold on <span class="title"><!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></h3>
<p><strong>For:</strong> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_LOOP --></p>
<p><strong>Priority:</strong><!-- TMPL_VAR Name="fixedRank" --> out of ?</p>
<p>Pick up from:<select name="branch" id="branch">
<!-- TMPL_LOOP NAME="CGIbranch" -->
<!-- TMPL_IF name="selected" -->
<option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branch" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branch" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
</p>
<!-- TMPL_IF NAME="forloan" -->
<p> <label for="requestany">Place a hold on the next available copy </label>
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
</p>
<input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
<input type="submit" value="Place Hold" />
<input type="hidden" name="all" value="1"/></p>
<input type="hidden" name="place_reserve" value="1"/>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP name="bibitemloop" -->
<!-- TMPL_UNLESS NAME="item-level_itypes" -->
<p><strong>Item type:</strong> <!-- TMPL_VAR NAME="description" --></p>
<!-- /TMPL_UNLESS -->
<!-- TMPL_IF NAME="publicationyear" --><p><strong>Publication year:</strong> <!-- TMPL_VAR NAME="publicationyear" --></p><!-- /TMPL_IF -->
<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="date_due" -->
<span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span>
<!-- TMPL_ELSE -->
<!-- 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 -->
<!-- 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="reservedate"-->
<!-- TMPL_IF NAME="waitingdate" -->Waiting<!-- TMPL_ELSE -->On hold<!-- /TMPL_IF --> for patron
<!-- 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 -->.
<!-- TMPL_ELSE -->
Not on hold
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP --> <!-- itemloop -->
</table>
<!-- /TMPL_LOOP --> <!-- bibitemloop -->
<input type="submit" value="Place Hold" />
</form>
<!-- end of the first form -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="item_types_selected" -->
<!-- if the bibitems have already been selected -->
<form action="/cgi-bin/koha/opac-reserve.pl" method="post">
<input type="hidden" name="place_reserve" value="1">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><h3>Confirm Reservation</h3>
<div class="details">
<table>
<tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span></td></tr>
<!-- TMPL_IF NAME="all" -->
<tr><th>Item Type: </th><td>Any<input type="hidden" name="all" value="1"></td></tr>
<!-- TMPL_ELSE -->
<tr><th>Item Types: </th><td><!-- TMPL_LOOP NAME="TYPES" -->
<input type="hidden" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" -->;
<!-- /TMPL_LOOP --></td></tr>
<!-- /TMPL_IF -->
<tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
</table>
</div>
<p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>
</form>
<!-- /TMPL_IF -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="opac-bottom.inc"-->