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