New programmer templates for the OPAC. Markup has been pared down, but structure...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / opac-reserve.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> Catalog -- Reserving <!-- TMPL_VAR NAME="title" --> for <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP -->
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <!--TMPL_INCLUDE NAME="masthead.inc" -->
4 <!--TMPL_INCLUDE NAME="navigation.inc" -->
5
6 <!--CONTENT-->
7 <!-- TMPL_IF NAME="message" -->
8 <div id="main">
9 <!-- TMPL_IF NAME="GNA" --><p class="error"><strong>Sorry</strong>, you cannot place reserves 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="error">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 -->
10 <!-- TMPL_IF NAME="lost" --><p class="error"><strong>Sorry</strong>, you cannot place reserves because your library card has been marked as lost or stolen. </p><p class="error"> 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 -->
11 <!-- TMPL_IF NAME="debarred" --><p class="error"><strong>Sorry</strong>, you cannot place reserves because your account has been frozen.</p><p class="error">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 -->
12 <!-- TMPL_IF NAME="too_much_oweing" --><p class="error">Sorry, you cannot make reserves because you owe <!-- TMPL_VAR NAME="too_much_oweing" -->. </p> <!-- /TMPL_IF -->
13 <!-- TMPL_IF NAME="too_many_reserves" --><p class="error">Sorry, you cannot make more than <!-- TMPL_VAR NAME="too_many_reserves" --> reserves. </p><!-- /TMPL_IF -->
14 <!-- TMPL_IF NAME="already_reserved" --><p class="error">You already have a reserve placed on this item.
15 <form action="opac-detail.pl" method="get"><input type="hidden" name="bib" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><input type="submit" class="icon back" value="Return to Item Detail Screen" /></form></p>
16 <!-- /TMPL_IF -->
17 <!-- TMPL_IF NAME="no_items_selected" --><p class="error">You must select at least one item.</p><!-- /TMPL_IF -->
18         <!-- TMPL_IF NAME="no_branch_selected" --><p class="error">You must select a branch for pickup!</p><!-- /TMPL_IF -->
19 </div>
20 <!-- /TMPL_IF -->
21
22 <!-- TMPL_IF NAME="select_item_types" -->
23 <!-- The first time round you select which bibitems you want -->
24 <div id="main">
25 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
26 <input type="hidden" name="item_types_selected" value="1">
27 <input type="hidden" name="bib" value="<!-- TMPL_VAR NAME="biblionumber" -->">
28 <h2>Reservation Details</h2>
29 <div class="form">
30 <table>
31    <tr><th>Reserving: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span><!-- TMPL_IF NAME="author" --> (<!-- TMPL_VAR NAME="author" -->)<!-- /TMPL_IF --></td></tr>
32     <tr><th>For:</th><td><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_LOOP --></td></tr>
33
34     <tr><th>Pick up from:</th><td><select name="branch" id="branch">
35                 <option>-- Please choose your branch --</option>
36                 <!-- TMPL_LOOP NAME="CGIbranch" --><option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branch" --></option><!-- /TMPL_LOOP -->
37 </select></td></tr>
38 </table>
39
40 <!-- TMPL_IF NAME="onlyone" -->
41 <!-- If there is only one type -->
42
43 </div><p><input type="submit" class="submit" value="Next &gt;&gt;">
44 <input type="hidden" name="all" value="1"></p>
45 </form>
46
47 <!-- TMPL_ELSE -->
48 <!-- If there is more than one type -->
49
50     <h4>Choose Either...</h4>
51       <p><input class="checkbox" type="checkbox" name="all" value="next-available">
52         Next Available Copy (any format)</p>
53     <h4>
54      ...Or Choose Acceptable Formats
55     </h4>
56
57 <!-- TMPL_LOOP NAME="TYPE_ROWS" -->
58 <ul><!-- TMPL_LOOP NAME="ROW" -->
59 <li><input type="checkbox" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->" class="checkbox"><!-- TMPL_VAR NAME="description" --></li>
60 <!-- /TMPL_LOOP -->
61 </ul><!-- /TMPL_LOOP -->
62 <!-- <table>
63         <tr>
64     <th>Number of Copies</th><th>Requests already received for this title</th> <th>Items curently on issue, due back</th></tr>
65     <td><!-- TMPL_VAR NAME="itemcount" --></td>
66     <td><!-- TMPL_VAR NAME="reservecount" --></td>
67      <td><!-- TMPL_LOOP NAME="ITEMS" --><!-- TMPL_VAR NAME="date_due" -->, <!-- /TMPL_LOOP --></td>
68 </table> -->
69 </div>
70 <p><input type="submit" class="submit" value="Confirm Reservation &gt;&gt;"></p>
71 </form>
72 </div>
73 <!-- /TMPL_IF -->
74
75
76 <!-- end of the first form -->
77 <!-- /TMPL_IF -->
78
79 <!-- TMPL_IF NAME="item_types_selected" -->
80 <!-- if the bibitems have already been selected -->
81 <div id="main">
82 <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
83 <input type="hidden" name="place_reserve" value="1">
84 <input type="hidden" name="bib" value="<!-- TMPL_VAR NAME="biblionumber" -->"><h3>Confirm Reservation</h3>
85 <div class="details">
86         <table>
87                 <tr><th>Title: </th><td><span class="title"><!-- TMPL_VAR NAME="title" --></span></td></tr>
88
89 <!-- TMPL_IF NAME="all" -->
90                 <tr><th>Item Type: </th><td>Any<input type="hidden" name="all" value="1"></td></tr>
91 <!-- TMPL_ELSE -->
92                 <tr><th>Item Types: </th><td><!-- TMPL_LOOP NAME="TYPES" -->
93 <input type="hidden" name="itemtype" value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" -->;
94 <!-- /TMPL_LOOP --></td></tr>
95
96 <!-- /TMPL_IF -->
97                 <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
98 </table>
99 </div>
100 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>
101
102 </FORM>
103
104 <!-- /TMPL_IF -->
105 </div>
106 </body>
107 </html>