1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Subscription edit<!--
2 TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="menus.inc" -->
5 <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
7 <!--------------------------MAIN BODY OF PAGE-------------------------->
8 <h1>Check In subscription for: <!-- TMPL_VAR name="bibliotitle" --></h1>
10 <a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" title="detail of the subscription">Subscription Details</a>
11 <!-- <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> -->
12 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->" title="go to <!-- TMPL_VAR name="bibliotitle" -->">Show Biblio</a>
13 <!-- TMPL_IF NAME="routing" -->
14 <a href="routing.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" title="subscription routing list">Routing list</a>
18 <h2>waited or late numbers</h2>
19 <form method="post" name="f" action="serials-recieve.pl" onsubmit="return barcode_check()">
20 <input type="hidden" name="op" value="serialchangestatus">
21 <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->">
22 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
23 <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
24 <table cellspacing="0" cellpadding="0" border="0" class="collapse">
42 <!-- TMPL_LOOP name="serialslist" -->
45 Issue <input type="text" name="serialseq" value="<!-- TMPL_VAR name="serialseq" -->" size="20" maxlength="100">
46 <!--TMPL_IF Name="serialadditems" -->
48 Callnumber <input type="text" name="itemcallnumber" value="<!--TMPL_VAR NAME="callnumber"-->" size=15 maxlength=100>
49 Barcode <input type="text" name="barcode" value="<!-- TMPL_VAR NAME="barcode"-->" id="barcode<!-- TMPL_VAR NAME="num" -->" size=20 maxlength=20>
53 <input type="text" name="publisheddate" value="<!-- TMPL_VAR name="publisheddate" -->" size=10 maxlength=15>
54 <!--TMPL_IF Name="serialadditems" -->
59 <input type="text" name="planneddate" value="<!-- TMPL_VAR name="planneddate" -->" size=10 maxlength=15>
60 <!--TMPL_IF Name="serialadditems" -->
62 <select name="branch" size="1">
63 <option value="">Branch</option>
64 <!-- TMPL_LOOP name="branchloop" -->
65 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
71 <input type="hidden" name="serialid" value="<!-- TMPL_VAR name="serialid" -->">
72 <select name="status" size="1" id="status<!-- TMPL_VAR NAME="num" -->">
73 <!--TMPL_IF name="status1" -->
74 <option value="1" selected>Waited</option>
76 <!--TMPL_IF name="status2" -->
77 <option value="2" selected>Arrived</option>
79 <option value="2">Arrived</option>
81 <!--TMPL_IF name="status3" -->
82 <option value="3" selected>Late</option>
84 <option value="3">Late</option>
86 <!--TMPL_IF name="status4" -->
87 <option value="4" selected>Missing</option>
89 <option value="4">Missing</option>
91 <!--TMPL_IF name="status5" -->
92 <option value="5" selected>Not Available</option>
94 <option value="5">Not Available</option>
96 <!--TMPL_IF name="status6" -->
97 <option value="6" selected>Delete</option>
99 <option value="6">Delete</option>
102 <!--TMPL_IF Name="serialadditems" -->
104 <!--TMPL_IF Name="itemstatus"-->
105 <!--TMPL_IF Name="choice"-->
106 <!-- TMPL_LOOP name="itemstatusloop" -->
107 <!-- TMPL_VAR name="itemlib" -->: <input type="checkbox" name="itemstatus" value="<!-- TMPL_VAR name="itemval" -->" <!-- TMPL_IF name="selected" -->checked<!-- /TMPL_IF -->>
110 <select name="itemstatus" size="1">
111 <option value="">Item Status</option>
112 <!-- TMPL_LOOP name="itemstatusloop" -->
113 <option value="<!-- TMPL_VAR name="itemval" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="itemlib" --></option>
124 <input type="text" name="notes" value="<!-- TMPL_VAR name="notes" -->" size=20 maxlength=255>
125 <!--TMPL_IF Name="serialadditems" -->
127 <!--TMPL_IF Name="itemlocation"-->
128 <select name="location" size="1">
129 <option value="">Location</option>
130 <!-- TMPL_LOOP name="itemlocationloop" -->
131 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="itemlocationname" --></option>
141 <!-- TMPL_UNLESS name="hassubscriptionexpired" -->
144 Manual issue <input type="text" name="serialseq" size=30 maxlength=100 value="<!-- TMPL_VAR NAME="missingseq" -->">
145 <!--TMPL_IF Name="serialadditems" -->
147 Callnumber <input type="text" name="itemcallnumber" value="" size=10 maxlength=15>
148 Barcode <input type="text" name="barcode" value="" size=20 maxlength=20>
152 <input type="text" name="publisheddate" value="<!-- TMPL_VAR name="publisheddate" -->" size=10 maxlength=15>
153 <!--TMPL_IF Name="serialadditems" -->
158 <input type="text" name="planneddate" size=10 maxlength=15 value="<!-- TMPL_VAR NAME="missingdate" -->">
159 <!--TMPL_IF Name="serialadditems" -->
161 <select name="branch" size="1">
162 <option value="">Branch</option>
163 <!-- TMPL_LOOP name="branchloop" -->
164 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
170 <!-- TMPL_IF NAME="frommissing" -->
171 <input type="hidden" name="serialid" value="<!-- TMPL_VAR name="missingid" -->">
173 <input type="hidden" name="serialid" value="0">
175 <select name="status" size="1">
176 <!-- TMPL_IF NAME="frommissing" -->
177 <option value="2" selected >Arrived</option>
179 <option value="2">Arrived</option>
182 <!-- TMPL_IF NAME="frommissing" -->
183 <option value="3">Late</option>
185 <option value="3" selected>Late</option>
187 <option value="4">Missing</option>
188 <option value="5">Not Available</option>
192 <!--TMPL_IF Name="serialadditems" -->
194 <!-- TMPL_IF Name="itemstatus"-->
195 <!--TMPL_IF Name="choice"-->
196 <!-- TMPL_LOOP name="itemstatusloop" -->
197 <!-- TMPL_VAR name="itemlib" -->: <input type="checkbox" name="itemstatus" value="<!-- TMPL_VAR name="itemval" -->" <!-- TMPL_IF name="selected" -->checked<!-- /TMPL_IF -->>
200 <select name="itemstatus" size="1">
201 <option value="">Item Status</option>
202 <!-- TMPL_LOOP name="itemstatusloop" -->
203 <option value="<!-- TMPL_VAR name="itemval" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="itemlib" --></option>
214 <!--TMPL_IF Name="serialadditems" -->
216 <!-- TMPL_IF Name="itemlocation"-->
217 <select name="location" size="1">
218 <option value="">Location</option>
219 <!-- TMPL_LOOP name="itemlocationloop" -->
220 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="itemlocationname" --></option>
229 <!-- /TMPL_UNLESS -->
231 <input type="submit" value="Save changes" accesskey="w" class="button">
232 <!-- TMPL_IF name="hassubscriptionexpired" -->
233 <h3>Subscription has expired.</h3>
234 <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 name="abouttoexpire" -->
237 <h3>Note: Subscription is about to expire next issue.</h3>
238 <script type="text/javascript">
240 alert("Subscription is about to expire next issue");
246 <h2>Subscription summary</h2>
247 <form method="post" name="f2" action="serials-recieve.pl">
248 <input type="hidden" name="op" value="modsubscriptionhistory">
249 <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->">
250 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
251 <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
252 <p><label>Librarian</label><!-- TMPL_VAR name="user" --></p>
253 <p><label>Starting date:</label><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->"> (the date of the 1st subscription)</p>
254 <p><label>Ending date:</label><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->">(if empty : subscription still active)</p>
255 <p>Recieved issues</p>
256 <p> <textarea name="recievedlist" COLS=60 ROWS=5><!-- TMPL_VAR name="recievedlist" --></textarea></p>
257 <p>Missing issues</p>
258 <p> <textarea name="missinglist" COLS=60 ROWS=2><!-- TMPL_VAR name="missinglist" --></textarea></p>
260 <p> <textarea name="opacnote" COLS=60 ROWS=5><!-- TMPL_VAR name="opacnote" --></textarea></p>
261 <input type="submit" value="Save changes" class="button">
265 <script language="JavaScript" type="text/javascript">
268 window.open("subscription-renew.pl?subscriptionid=<!-- TMPL_VAR
269 name="subscriptionid">","subscription_renewal",'width=700,height=400,toolbar=false,scrollbars=yes');
272 function barcode_check(){
273 <!-- TMPL_IF NAME="count" -->
274 var count = '<!-- TMPL_VAR NAME="count" -->';
275 for(var i=1;i<=count;i++){
277 var barcodenum = "barcode"+i;
278 var statusnum = "status"+i;
279 var elembarcode = "document.getElementById('"+barcodenum+"')";
280 var elemstatus = "document.getElementById('"+statusnum+"')";
281 // alert(elembarcode+"\n"+eval(elembarcode+".value));
282 // alert(elemstatus+"\n"+eval(elemstatus+".value"));
283 if(eval(elembarcode+".value") =='' && eval(elemstatus+".value") == 2){
284 var answer = confirm("Leave barcode blank?\n - Note: unable to change this later");
291 if(eval(elembarcode+".value".indexOf('TEMP')) > 0 && eval(elemstatus+".value") == 2){
292 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?");
304 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->