more nomenclature / translation cleanup
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / serials-recieve.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Serials &rsaquo; Check In subscription for <!-- TMPL_VAR name="bibliotitle" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script language="JavaScript" type="text/javascript">
5 //<![CDATA[
6 function popup() {
7         window.open("subscription-renew.pl?subscriptionid=<!-- TMPL_VAR
8 name="subscriptionid">","subscription_renewal",'width=700,height=400,toolbar=false,scrollbars=yes');
9 }
10
11 function barcode_check(){
12     <!-- TMPL_IF NAME="count" -->
13         var count = '<!-- TMPL_VAR NAME="count" -->';
14         for(var i=1;i<=count;i++){
15
16                 var barcodenum = "barcode"+i;
17                 var statusnum = "status"+i;
18                 var elembarcode = "document.getElementById('"+barcodenum+"')";
19                 var elemstatus = "document.getElementById('"+statusnum+"')";
20 // alert(elembarcode+"\n"+eval(elembarcode+".value));
21 // alert(elemstatus+"\n"+eval(elemstatus+".value"));
22                 if(eval(elembarcode+".value") =='' && eval(elemstatus+".value") == 2){
23                         var answer = confirm("Leave barcode blank?\n - Note: unable to change this later");
24                         if (answer){
25                                 document.f.submit();
26                         } else {
27                                 return false;
28                         }
29                 }
30                 if(eval(elembarcode+".value".indexOf('TEMP')) > 0 && eval(elemstatus+".value") == 2){
31                         var answer = confirm("A barcode was not entered.\nDo you want to put in a barcode\nor do you want to use a system generated barcode?");
32                         if (answer){
33                                 document.f.submit();
34                         } else {
35                                 return false;
36                         }
37                 }
38         }
39     <!-- /TMPL_IF -->
40 }
41 //]]>
42 </script>
43 </head>
44 <body>
45 <!-- TMPL_INCLUDE NAME="header.inc" -->
46 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
47
48 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Check In subscription for <i><!-- TMPL_VAR name="bibliotitle" --></i></div>
49
50 <div id="doc3" class="yui-t2">
51    
52    <div id="bd">
53         <div id="yui-main">
54         <div class="yui-b">
55
56 <h1>Check In subscription for <i><!-- TMPL_VAR name="bibliotitle" --></i></h1>
57 <div id="action">
58     <a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" title="detail of the subscription">Subscription Details</a>
59     <!-- <a href="/cgi-bin/koha/serials/serials-home.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->" class="button" title="all subscriptions on <!-- TMPL_VAR name="bibliotitle" -->">Search All Subscriptions</a> -->
60     <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->" title="go to <!-- TMPL_VAR name="bibliotitle" -->">Show Biblio</a>
61     <!-- TMPL_IF NAME="routing" -->
62     <a href="routing.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" title="subscription routing list">Routing list</a>
63     <!-- /TMPL_IF -->
64 </div>
65
66 <h2>Awaited or late</h2>
67         <form method="post" name="f" action="serials-recieve.pl" onsubmit="return barcode_check()">
68                 <input type="hidden" name="op" value="serialchangestatus" />
69                 <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->" />
70                 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
71                 <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->" />
72         <table>
73         <tr>
74                 <th>Numbered</th>
75                 <th>Published on</th>
76                 <th>planned for</th>
77                 <th>Status</th>
78                 <th>Notes</th>
79         </tr>
80         <!-- TMPL_LOOP name="serialslist" -->
81                 <tr>
82                         <td>
83                                 Issue <input type="text" name="serialseq" value="<!-- TMPL_VAR name="serialseq" -->" size="20" maxlength="100" />
84                         <!--TMPL_IF Name="serialadditems" -->
85                                 <br /><br />
86                                 Callnumber <input type="text" name="itemcallnumber" value="<!--TMPL_VAR NAME="callnumber"-->" size="15" maxlength="100" />
87                                 Barcode <input type="text" name="barcode" value="<!-- TMPL_VAR NAME="barcode"-->" id="barcode<!-- TMPL_VAR NAME="num" -->" size="20" maxlength="20" />
88                         <!--/TMPL_IF -->
89                         </td>
90                         <td>
91                                 <input type="text" name="publisheddate" value="<!-- TMPL_VAR name="publisheddate" -->" size="10" maxlength="15" />
92                         <!--TMPL_IF Name="serialadditems" -->
93                                 <br /><br />&nbsp;
94                         <!--/TMPL_IF  -->
95                         </td>
96                         <td>
97                                 <input type="text" name="planneddate" value="<!-- TMPL_VAR name="planneddate" -->" size="10" maxlength="15" />
98                         <!--TMPL_IF Name="serialadditems" -->
99                                 <br /><br />
100                                 <select name="branch">
101                                                 <option value="">Branch</option>
102                         <!-- TMPL_LOOP name="branchloop" --><!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
103                                 <!-- TMPL_ELSE -->
104                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
105                                 <!-- /TMPL_IF -->
106                         <!-- /TMPL_LOOP -->
107                                 </select>
108                         <!--/TMPL_IF -->
109                         </td>
110                         <td>
111                                 <input type="hidden" name="serialid" value="<!-- TMPL_VAR name="serialid" -->" />
112                                 <select name="status" id="status<!-- TMPL_VAR NAME="num" -->">
113                                         <!--TMPL_IF name="status1" -->
114                                                 <option value="1" selected="selected">Waited</option>
115                                         <!-- /TMPL_IF -->
116                                         <!--TMPL_IF name="status2" -->
117                                                 <option value="2" selected="selected">Arrived</option>
118                                         <!-- TMPL_ELSE -->
119                                                 <option value="2">Arrived</option>
120                                         <!-- /TMPL_IF -->
121                                         <!--TMPL_IF name="status3" -->
122                                                 <option value="3" selected="selected">Late</option>
123                                         <!-- TMPL_ELSE -->
124                                                 <option value="3">Late</option>
125                                         <!-- /TMPL_IF -->
126                                         <!--TMPL_IF name="status4" -->
127                                                 <option value="4" selected="selected">Missing</option>
128                                         <!-- TMPL_ELSE -->
129                                                 <option value="4">Missing</option>
130                                         <!-- /TMPL_IF -->
131                                         <!--TMPL_IF name="status5" -->
132                                                 <option value="5" selected="selected">Not Available</option>
133                                         <!-- TMPL_ELSE -->
134                                                 <option value="5">Not Available</option>
135                                         <!-- /TMPL_IF -->
136                                         <!--TMPL_IF name="status6" -->
137                                                 <option value="6" selected="selected">Delete</option>
138                                         <!-- TMPL_ELSE -->
139                                                 <option value="6">Delete</option>
140                                         <!-- /TMPL_IF -->
141                                 </select>
142                         <!--TMPL_IF Name="serialadditems" -->
143                                 <br /><br />
144                                 <!--TMPL_IF Name="itemstatus"-->
145                                     <!--TMPL_IF Name="choice"-->
146                                                 <!-- TMPL_LOOP name="itemstatusloop" -->
147                                                         <!-- TMPL_VAR name="itemlib" -->: 
148                                                         <!-- TMPL_IF name="selected" -->
149                                                         <input type="checkbox" name="itemstatus" value="<!-- TMPL_VAR name="itemval" -->" checked="checked" />
150                                                         <!-- TMPL_ELSE -->
151                                                         <input type="checkbox" name="itemstatus" value="<!-- TMPL_VAR name="itemval" -->" />
152                                                         <!-- /TMPL_IF -->
153                                                 <!-- /TMPL_LOOP -->
154                                     <!--TMPL_ELSE-->
155                                         <select name="itemstatus">
156                                                 <option value="">Item Status</option>
157                                                 <!-- TMPL_LOOP name="itemstatusloop" -->
158                                                 <!-- TMPL_IF name="selected" -->
159                                                         <option value="<!-- TMPL_VAR name="itemval" -->" selected="selected"><!-- TMPL_VAR name="itemlib" --></option>
160                                                         <!-- TMPL_ELSE -->
161                                                         <option value="<!-- TMPL_VAR name="itemval" -->"><!-- TMPL_VAR name="itemlib" --></option>
162                                                         <!-- /TMPL_IF -->
163                                                 <!-- /TMPL_LOOP -->
164                                         </select>
165                                     <!--/TMPL_IF-->
166                                 <!-- TMPL_ELSE -->
167                                 &nbsp;
168                                 <!--/TMPL_IF-->
169                         <!--/TMPL_IF -->
170
171                         </td>
172                         <td>
173                                 <input type="text" name="notes" value="<!-- TMPL_VAR name="notes" -->" size="20" maxlength="255" />
174                         <!--TMPL_IF Name="serialadditems" -->
175                                 <br /><br />
176                                 <!--TMPL_IF Name="itemlocation"-->
177                                         <select name="location">
178                                                 <option value="">Location</option>
179                                                 <!-- TMPL_LOOP name="itemlocationloop" -->
180                                                 <!-- TMPL_IF name="selected" -->
181                                                         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="itemlocationname" --></option>
182                                                         <!-- TMPL_ELSE -->
183                                                         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="itemlocationname" --></option>
184                                                 <!-- /TMPL_IF -->
185                                                 <!-- /TMPL_LOOP -->
186                                         </select>
187                                 <!-- TMPL_ELSE -->
188                                 &nbsp;
189                                 <!--/TMPL_IF-->
190                         <!--/TMPL_IF -->
191                         </td>
192                 </tr>
193         <!-- /TMPL_LOOP -->
194         <!-- TMPL_UNLESS name="hassubscriptionexpired" -->
195                 <tr>
196                         <td>
197                                 Manual issue <input type="text" name="serialseq" size="30" maxlength="100" value="<!-- TMPL_VAR NAME="missingseq" -->" />
198                         <!--TMPL_IF Name="serialadditems" -->
199                                 <br /><br />
200                                 Callnumber <input type="text" name="itemcallnumber" value="" size="10" maxlength="15" />
201                                 Barcode <input type="text" name="barcode" value="" size="20" maxlength="20" />
202                         <!--/TMPL_IF-->
203                         </td>
204                         <td>
205                                 <input type="text" name="publisheddate" value="<!-- TMPL_VAR name="publisheddate" -->" size="10" maxlength="15" />
206                         <!--TMPL_IF Name="serialadditems" -->
207                                 <br /><br />&nbsp;
208                         <!--/TMPL_IF  -->
209                         </td>
210                         <td>
211                                 <input type="text" name="planneddate" size="10" maxlength="15" value="<!-- TMPL_VAR NAME="missingdate" -->" />
212                         <!--TMPL_IF Name="serialadditems" -->
213                                 <br /><br />
214                                 <select name="branch">
215                                                 <option value="">Branch</option>
216                         <!-- TMPL_LOOP name="branchloop" -->
217                                 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
218                                 <!-- TMPL_ELSE -->
219                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
220                                 <!-- /TMPL_IF -->
221                         <!-- /TMPL_LOOP -->
222                                 </select>
223                         <!--/TMPL_IF-->
224                         </td>
225                         <td>
226                                 <!-- TMPL_IF NAME="frommissing" -->
227                                 <input type="hidden" name="serialid" value="<!-- TMPL_VAR name="missingid" -->" />
228                                 <!-- TMPL_ELSE -->
229                                 <input type="hidden" name="serialid" value="0" />
230                                 <!--/TMPL_IF-->
231                                 <select name="status">
232                                                 <!-- TMPL_IF NAME="frommissing" -->
233                                                 <option value="2" selected="selected">Arrived</option>
234                                                 <!-- TMPL_ELSE -->
235                                                 <option value="2">Arrived</option>
236                                 
237                                                 <!--/TMPL_IF-->
238                                                 <!-- TMPL_IF NAME="frommissing" -->
239                                                 <option value="3">Late</option>
240                                                 <!--TMPL_ELSE-->
241                                                 <option value="3" selected="selected">Late</option>
242                                                 <!--/TMPL_IF-->
243                                                 <option value="4">Missing</option>
244                                                 <option value="5">Not Available</option>
245
246
247                                 </select>
248                         <!--TMPL_IF Name="serialadditems" -->
249                                 <br /><br />
250                                 <!-- TMPL_IF Name="itemstatus"-->
251                                     <!--TMPL_IF Name="choice"-->
252                                                 <!-- TMPL_LOOP name="itemstatusloop" -->
253                                                         <!-- TMPL_VAR name="itemlib" -->: 
254                                                         <!-- TMPL_IF name="selected" -->
255                                                         <input type="checkbox" name="itemstatus" value="<!-- TMPL_VAR name="itemval" -->" checked="checked" />
256                                                         <!-- TMPL_ELSE -->
257                                                         <input type="checkbox" name="itemstatus" value="<!-- TMPL_VAR name="itemval" -->" />
258                                                         <!-- /TMPL_IF -->
259                                                 <!-- /TMPL_LOOP -->
260                                     <!--TMPL_ELSE-->
261                                         <select name="itemstatus">
262                                                 <option value="">Item Status</option>
263                                                 <!-- TMPL_LOOP name="itemstatusloop" -->
264                                                 <!-- TMPL_IF name="selected" -->
265                                                         <option value="<!-- TMPL_VAR name="itemval" -->" selected="selected"><!-- TMPL_VAR name="itemlib" --></option>
266                                                 <!-- TMPL_ELSE -->
267                                                         <option value="<!-- TMPL_VAR name="itemval" -->"><!-- TMPL_VAR name="itemlib" --></option>
268 <!-- /TMPL_IF -->
269                                                 <!-- /TMPL_LOOP -->
270                                         </select>
271                                     <!-- /TMPL_IF -->
272                                 <!-- TMPL_ELSE -->
273                                 &nbsp;
274                                 <!--/TMPL_IF -->
275                         <!--/TMPL_IF-->
276                         </td>
277                         <td>
278                                 &nbsp;
279                         <!--TMPL_IF Name="serialadditems" -->
280                                 <br /><br />
281                                 <!-- TMPL_IF Name="itemlocation"-->
282                                         <select name="location">
283                                                 <option value="">Location</option>
284                                                 <!-- TMPL_LOOP name="itemlocationloop" -->
285                                                 <!-- TMPL_IF name="selected" -->
286                                                         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="itemlocationname" --></option>
287                                                 <!-- TMPL_ELSE -->
288                                                         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="itemlocationname" --></option>
289                                         <!-- /TMPL_IF -->
290                                                 <!-- /TMPL_LOOP -->
291                                         </select>
292                                 <!-- TMPL_ELSE -->
293                                 &nbsp;
294                                 <!--/TMPL_IF -->
295                         <!--/TMPL_IF-->
296                         </td>
297                 </tr>
298         <!-- /TMPL_UNLESS -->
299         </table>
300         <input type="submit" value="Save changes" accesskey="w" class="button" />
301         <!-- TMPL_IF name="hassubscriptionexpired" -->
302                 <h3>Subscription has expired.</h3>
303                 <p><b>Waited last issue status can't be changed. <a href="#" onclick="popup()" class="button">Renew</a> your subscription</b></p>
304         <!-- /TMPL_IF -->
305         <!-- TMPL_IF name="abouttoexpire" -->
306                 <h3>Note: Subscription is about to expire next issue.</h3>
307                 <script type="text/javascript">
308                 <!--
309                 alert("Subscription is about to expire next issue");
310                 //-->
311                 </script>
312         <!-- /TMPL_IF -->       
313         </form>
314
315         <h2>Subscription summary</h2>
316         <form method="post" name="f2" action="serials-recieve.pl">
317                 <input type="hidden" name="op" value="modsubscriptionhistory" />
318                 <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->" />
319                 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
320                 <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->" />
321                 <p><label>Librarian</label><!-- TMPL_VAR name="user" --></p>
322                 <p><label>Starting date:</label><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->" /> (the date of the 1st subscription)</p>
323                 <p><label>Ending date:</label><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->" />(if empty subscription is still active)</p>
324                 <p>Recieved issues</p>
325                 <p><textarea name="recievedlist" cols="60" rows="5"><!-- TMPL_VAR name="recievedlist" --></textarea></p>
326                 <p>Missing issues</p>
327                 <p><textarea name="missinglist" cols="60" rows="2"><!-- TMPL_VAR name="missinglist" --></textarea></p>
328                 <p>OPAC note</p>
329                 <p><textarea name="opacnote" cols="60" rows="5"><!-- TMPL_VAR name="opacnote" --></textarea></p>
330                 <input type="submit" value="Save changes" class="button" />
331         </form>
332
333
334 </div>
335 </div>
336
337 <div class="yui-b">
338 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
339 </div>
340 </div>
341 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->