Fixed bug 968
[koha.git] / koha-tmpl / intranet-tmpl / default / en / request.tmpl
1 <!-- TMPL_INCLUDE Name="cat-top.inc" -->
2 <div id="mainbloc">
3         <form action="placerequest.pl" method="post" name="request">
4         <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="bib" -->">
5         <input type="hidden" name="type" value="str8">
6         <input type="hidden" name="title" value="<!-- TMPL_VAR NAME="title" -->">
7         <h1 class="catalogue">
8                 Requesting: <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="bib" -->"><!-- TMPL_VAR NAME="title" --></a>
9                 <!-- TMPL_VAR NAME="author" -->
10         </h1>
11         <div id="bloc25">
12                 <h2 class="catalogue">Request</h2>
13                 <p>
14                 <label class="label100">Rank</label>
15                         <select name="rank-request">
16                         <!--$priorityoptions-->
17                         <!-- TMPL_LOOP Name="optionloop" -->
18                                 <option value="<!-- TMPL_VAR NAME="num" -->" <!-- TMPL_IF Name="selected" --> selected<!-- /TMPL_IF -->>
19                                         <!-- TMPL_VAR NAME="num" -->
20                                 </option>
21                         <!-- /TMPL_LOOP -->
22                         </select>
23                 </p>
24                 <p><label class="label100">Member Number</label><input type="text" size="10" name="member"> <a href="/cgi-bin/koha/members/members-home.pl?quicksearch=1" onclick="openWindow('/cgi-bin/koha/members/members-home.pl?quicksearch=1', 'newwin'); return false;">(Quick Search)</a></p>
25                 <p><label class="label100">Notes</label><input type="text" size="20" name="notes"></p>
26                 <p><label class="label100">Date</label><!-- TMPL_VAR NAME="date" --></p>
27                 <p><label class="label100">Pickup</label><!-- TMPL_VAR NAME="CGIbranch" --></p>
28                 <p>
29                         <label class="label100">Request</label><input type="checkbox" name="request" value="any">Next Available, or choose from list below
30                 </p>
31                 <table class="small">
32                         <tr>
33                                 <th class="catalogue">Request</th>
34                                 <th class="catalogue">Item type</th>
35                                 <th class="catalogue">Classification</th>
36                                 <th class="catalogue">Volume</th>
37                                 <th class="catalogue">Pubdate</th>
38                                 <th class="catalogue">Copies</th>
39                         </tr>
40                         <!--$bibitemrows-->
41                         <!-- TMPL_LOOP Name="bibitemloop" -->
42                                 <tr>
43                                         <td>
44                                                 <!-- TMPL_IF Name="itemlost" -->
45                                                         Cannot be selected
46                                                 <!-- TMPL_ELSE -->
47                                                         <input type="checkbox" name="reqbib" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
48                                                         <input type="hidden" name="biblioitem" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
49                                                 <!-- /TMPL_IF -->
50                                         </td>
51                                         <td>
52                                                 <!-- TMPL_VAR NAME="description" -->
53                                         </td>
54                                         <td>
55                                                 <!-- TMPL_VAR NAME="class" -->
56                                         </td>
57                                         <td>
58                                                 <!-- TMPL_VAR NAME="volumeddesc" -->
59                                         </td>
60                                         <td>
61                                                 <!-- TMPL_VAR NAME="publicationyear" -->
62                                         </td>
63                                         <td>
64                                                 <!-- TMPL_LOOP Name="barcodeloop" -->
65                                                         <!-- TMPL_VAR NAME="barcode" --> <!-- TMPL_VAR NAME="message" --><br>
66                                                 <!-- /TMPL_LOOP -->
67                                         </td>
68                                 </tr>
69                         <!-- /TMPL_LOOP -->
70                 </table>
71                 <input type="submit" value="request" class="button catalogue">
72                 </form>
73         </div>
74         <!-- TMPL_IF name="reserveloop" -->
75                 <div id="bloc25">
76                         <form name="T<!-- TMPL_VAR NAME="time" -->" action="modrequest.pl" method="post">
77                         <h2 class="catalogue">MODIFY EXISTING REQUESTS </h2>
78                         <table class="small">
79                                 <tr>
80                                         <th class="catalogue">Rank</th>
81                                         <th class="catalogue">Member</th>
82                                         <th class="catalogue">Notes</th>
83                                         <th class="catalogue">Date</th>
84                                         <th class="catalogue">Pickup</th>
85                                         <th class="catalogue">Request</th>
86                                 </tr>
87                                 <!--$existingreserves-->
88                                 <!-- TMPL_LOOP Name="reserveloop" -->
89                                         <tr>
90                                                 <td>
91                                                         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->">
92                                                         <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblionumber" -->">
93                                                         <select name="rank-request">
94                                                                 <!-- TMPL_IF Name="wait" -->
95                                                                         <option value="W" selected>Waiting</option>
96                                                                 <!-- /TMPL_IF -->
97                                                                 <!-- TMPL_LOOP Name="optionloop" -->
98                                                                         <option value="<!-- TMPL_VAR NAME="num" -->" <!-- TMPL_IF Name="selected" --> selected <!-- /TMPL_IF -->>
99                                                                                 <!-- TMPL_VAR NAME="num" -->
100                                                                         </option>
101                                                                 <!-- /TMPL_LOOP -->
102                                                                 <option value="del">Del</option>
103                                                         </select>
104                                                 </td>
105                                                 <td>
106                                                 <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a>
107                                                 </td>
108                                                 <td><!-- TMPL_VAR NAME="notes" --></td>
109                                                 <td><!-- TMPL_VAR NAME="date" --></td>
110                                                 <td><!-- TMPL_IF Name="wait" -->
111                                                 <!-- TMPL_IF NAME="atdestination" -->
112                                 <strong>Waiting</strong> at <!-- TMPL_VAR Name="wbrcode" -->
113                                 <!-- TMPL_ELSE -->
114                                 In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR Name="wbrcode" -->
115                                 <!-- /TMPL_IF -->
116                 <input type="hidden" name="pickup" value=<!-- TMPL_VAR NAME="wbrcd" -->>
117                                                         <!-- TMPL_ELSE -->
118                                                                 <select name="pickup">
119                                                                         <!-- TMPL_LOOP Name="branchloop" -->
120                                                                                 <option value="<!-- TMPL_VAR NAME="branch" -->"<!-- TMPL_IF Name="selected" --> selected<!-- /TMPL_IF -->>
121                                                                                         <!-- TMPL_VAR NAME="branchname" -->
122                                                                                 </option>
123                                                                         <!-- /TMPL_LOOP -->
124                                                                 </select>
125                                                         <!-- /TMPL_IF -->
126                                                 </td>
127                                                 <td>
128                                                         <!-- TMPL_IF Name="wait" -->
129                                                                 <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME=''biblionumber" -->&amp;type=intra" onClick="openWindow(this, 'Item', 480, 640); return false;">
130                                                                         <!-- TMPL_VAR NAME="barcode" -->
131                                                                 </a>
132                                                         <!-- TMPL_ELSE -->
133                                                                 <!-- TMPL_IF Name="constrainttypea" -->
134                                                                         <i>Next Available</i>
135                                                                 <!-- TMPL_ELSE -->
136                                                                         <!-- TMPL_IF Name="constrainttypeo" -->
137                                                                                 This type only : <b><!-- TMPL_VAR NAME="volumeddesc" --> <!-- TMPL_VAR NAME="itemtype" --></b>
138                                                                         <!-- /TMPL_IF -->
139                                                                 <!-- /TMPL_IF -->
140                                                         <!-- /TMPL_IF -->
141                         
142                                                 </td>
143                                         </tr>
144                                 <!-- /TMPL_LOOP -->
145                                 <tr>
146                                         <td colspan="6" align="right">
147                                                 Delete a request by selecting "del" from the rank list.
148                                                 <input type="image" name="submit"  VALUE="request" border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/2rightarrow.png">
149                                         </td>
150                                 </tr>
151                         </table>
152                         </form>
153                 </div>
154         <!-- /TMPL_IF -->
155 </div>
156 <script language="javascript" type="text/javascript">
157         // Set the value of the form field to the passed value and optionally shift
158         // focus and close the popup.
159         function FillForm(val,formname,formfield) {
160                 document.forms[formname].elements[formfield].value = val;
161                 // Uncomment below to shift focus after clicking link in popup.
162                 document.forms[formname].elements[formfield].focus();
163                 // Uncomment below to close popup after clicking link.
164                 newwin.close();
165         }
166 </script>
167 <!-- TMPL_INCLUDE Name="cat-bottom.inc" -->