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 <script type="text/javascript" language="javascript">
9 // the english words used in display purposes
10 var text = new Array('Number','Volume','Issue','Month','Week','Starting with:','Rollover at:','Choose Hemisphere:','Northern','Southern',
11 'Autumn','Winter','Spring','Summer','Fall','Season','Year');
13 // common pre defined number patterns
14 function num_pattern() {
15 var patternchoice = '<!--TMPL_VAR NAME='numberpattern'-->';
16 switch(patternchoice){
18 options(text[1],text[0],text[2]);
23 options(text[1],text[0]);
28 options(text[1],text[2]);
33 options(text[0],text[2]);
39 var sYear = d.getFullYear();
40 // options_seasons(text[15],sYear);
57 function display_table(n) {
59 document.getElementById("basetable").style.display = 'block';
61 document.getElementById("basetable").style.display = 'none';
65 // to dispaly the options section
66 function options(x,y,z){
68 // alert("X: "+x+"Y: "+y+"Z: "+z);
70 document.f.xfield.value = x;
72 document.f.yfield.value = y;
74 document.f.zfield.value = z;
80 function irregularity(){
81 var periodicity = '<!-- TMPL_VAR NAME="periodicity"-->';
84 var names = new Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
87 <!-- TMPL_IF NAME="weekarrayjs" -->
88 var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
92 <!-- TMPL_IF NAME="weekarrayjs" -->
93 var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
97 <!-- TMPL_IF NAME="weekarrayjs" -->
98 var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
102 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
105 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
108 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
111 var names = new Array('Autumn','Winter','Spring','Summer','Fall');
114 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
123 <!-- TMPL_IF NAME="irregularity" -->
124 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
125 var irregarray = irregular.split('|');
126 var irregtext = '<p>';
127 for(var i=0;i<irregarray.length;i++){
128 irregtext += names[i]+' ';
131 document.getElementById("irreg").innerHTML = irregtext;
138 <h1>Subscription</h1>
139 <a href="alt_subscription-add.pl?op=mod&subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="button">Edit</a>
140 <a href="statecollection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="button">Receive</a>
141 <!--<a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->" class="button">Biblio</a>-->
142 <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->" class="button">Biblio</a>
143 <!-- TMPL_IF NAME="routing" -->
144 <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" class="button">Edit Routing List</a>
146 <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&op=new" class="button">Create Routing List</a>
148 <a href="subscription-copy.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="button">Copy</a>
151 <!-- TMPL_UNLESS name="totalissues" -->
152 <a href="javascript:confirm_deletion()" class="button">
155 <!-- /TMPL_UNLESS -->
158 <tr valign="top"><td>
161 <h2>Subscription information</h2>
162 <p><label class="label100">Librarian identity:</label> <!-- TMPL_VAR name="librarian" --></p><br />
164 <p><label class="label100">Supplier:</label> <!-- TMPL_VAR name="aqbooksellername" --> </p>
166 <p><label class="label100">Cost:</label> <!-- TMPL_VAR name="cost" --> </p>
168 <p><label class="label100">Budget:</label> <!-- TMPL_VAR name="bookfundid" --> </p>
170 <p><label class="label100">Biblio:</label> <i>(<!-- TMPL_VAR name="biblionumber" -->)</i> <!-- TMPL_VAR name="bibliotitle" --></p><br />
171 <p><label class="label100">Call Number:</label> <!-- TMPL_VAR name="callnumber" --> </p>
173 <p><label class="label100">Notes:</label> <!-- TMPL_VAR name="notes" --></p>
179 <p><label class="label100">Beginnning date:</label> <!-- TMPL_VAR name="startdate" -->
181 <p><label class="label100">Frequency (*):</label>
182 <!--TMPL_IF name="periodicity1" -->
185 <!--TMPL_IF name="periodicity2" -->
188 <!--TMPL_IF name="periodicity3" -->
191 <!--TMPL_IF name="periodicity4" -->
194 <!--TMPL_IF name="periodicity5" -->
197 <!--TMPL_IF name="periodicity6" -->
200 <!--TMPL_IF name="periodicity7" -->
203 <!--TMPL_IF name="periodicity8" -->
206 <!--TMPL_IF name="periodicity9" -->
209 <!--TMPL_IF name="periodicity10" -->
212 <!--TMPL_IF name="periodicity11" -->
216 <p><label class="label100">Number Pattern:</label>
217 <!-- TMPL_IF name="numberpattern1" -->
220 <!-- TMPL_IF name="numberpattern2" -->
221 Volume, Number, Issue
223 <!-- TMPL_IF name="numberpattern3" -->
226 <!-- TMPL_IF name="numberpattern4" -->
229 <!-- TMPL_IF name="numberpattern5" -->
232 <!-- TMPL_IF name="numberpattern6" -->
235 <!-- TMPL_IF name="numberpattern7" -->
239 <table cellpadding="0" cellspacing="0">
241 <td align="right"><input type="text" name="xfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
242 <!--TMPL_IF NAME="lastvalue2"-->
243 <td align="right"><input type="text" name="yfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
245 <!--TMPL_IF NAME="lastvalue3"-->
246 <td align="right"><input type="text" name="zfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
249 <tr><td><p><label class="label100">Starting with:</label></p></td>
250 <td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
251 <!--TMPL_IF NAME="lastvalue2"-->
252 <td align="center">
253 <!--TMPL_VAR NAME="lastvalue2"-->
256 <!--TMPL_IF NAME="lastvalue3"-->
257 <td align="center">
258 <!--TMPL_VAR NAME="lastvalue3"-->
262 <tr><td><p><label class="label100">Rollover:</label></p></td>
263 <td align="center"> </td>
264 <!--TMPL_IF NAME="whenmorethan2"-->
265 <td align="center">
266 <!--TMPL_VAR NAME="whenmorethan2"-->
269 <!--TMPL_IF NAME="whenmorethan3"-->
270 <td align="center">
271 <!--TMPL_VAR NAME="whenmorethan3"-->
276 <!-- TMPL_IF NAME="irregularity" -->
277 <p><label class="label100">Irregularity:</label>
278 <div id="irreg"></div>
281 <p><label class="label100">Begins on:</label>
282 <!--TMPL_VAR name="startdate" -->
287 <h2>Subscription length</h2>
288 <!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
289 <!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
290 <!-- TMPL_IF name="monthlength" --><p><label class="label100">Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
294 <h2>Numbering calculation</h2>
295 <p><label class="label100">Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
297 <div class="bloc25" id="basetable">
298 <table cellpadding="0" cellspacing="0" border="0" class="collapse">
300 <th class="cell-header"> </th>
301 <th class="cell-header">X</th>
302 <th class="cell-header">Y</th>
303 <th class="cell-header">Z</th>
306 <td class="cell">Add</td>
308 <!-- TMPL_VAR name="add1" -->
311 <!-- TMPL_VAR name="add2" -->
314 <!-- TMPL_VAR name="add3" -->
318 <td class="cell">once every</td>
319 <td class="cell"><!-- TMPL_VAR name="every1" --></td>
320 <td class="cell"><!-- TMPL_VAR name="every2" --></td>
321 <td class="cell"><!-- TMPL_VAR name="every3" --></td>
324 <td class="cell">When more than</td>
325 <td class="cell"><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br/>
326 <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
327 <td class="cell"><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br/>
328 <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
329 <td class="cell"><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br/>
330 <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
333 <td class="cell">Set back to</td>
334 <td class="cell"><!-- TMPL_VAR name="setto1" --></td>
335 <td class="cell"><!-- TMPL_VAR name="setto2" --></td>
336 <td class="cell"><!-- TMPL_VAR name="setto3" --></td>
342 <td class="cell"><!-- TMPL_VAR name="lastvalue1" --></td>
343 <td class="cell"><!-- TMPL_VAR name="lastvalue2" --></td>
344 <td class="cell"><!-- TMPL_VAR name="lastvalue3" --></td>
351 <table cellpadding="0" cellspacing="0" border="0" class="collapse">
353 <th class="cell-header">Issue number</th>
354 <th class="cell-header">Planned date</th>
355 <th class="cell-header">Status</th>
357 <!-- TMPL_LOOP name="serialslist" -->
360 <!-- TMPL_VAR name="serialseq" -->
363 <!-- TMPL_VAR name="planneddate" -->
366 <!--TMPL_IF name="status1" -->
369 <!--TMPL_IF name="status2" -->
372 <!--TMPL_IF name="status3" -->
375 <!--TMPL_IF name="status4" -->
387 <script type="text/javascript">
388 function _(s) { return s } // dummy function for gettext
389 function confirm_deletion() {
390 var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
392 window.location="alt_subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
395 window.onload = num_pattern();
397 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->