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 <style type="text/css">
11 border: 1px solid #666666;
17 <script type="text/javascript" language="javascript">
19 // the english words used in display purposes
20 var text = new Array('Number','Volume','Issue','Month','Week','Starting with:','Rollover at:','Choose Hemisphere:','Northern','Southern',
21 'Autumn','Winter','Spring','Summer','Fall','Season','Year');
23 var is_hemisphere = 1;
25 // common pre defined number patterns
26 function num_pattern() {
27 var patternchoice = document.getElementById("numberpattern").value;
28 switch(patternchoice){
30 document.f.add1.value=1;
31 document.f.add2.value=1;
32 document.f.add3.value=1;
33 document.f.every1.value=12;
34 document.f.every2.value=1;
35 document.f.every3.value=1;
36 document.f.whenmorethan1.value=9999999;
37 document.f.whenmorethan2.value=12;
38 document.f.whenmorethan3.value=4;
39 document.f.setto1.value=0;
40 document.f.setto2.value=1;
41 document.f.setto3.value=1;
42 document.f.lastvalue1.value=1;
43 document.f.lastvalue2.value=1;
44 document.f.lastvalue3.value=1;
45 document.f.numberingmethod.value='Vol {X}, No {Y}, Issue {Z}';
46 moreoptions(text[1],text[0],text[2]);
47 display_table(0); // toggle info box on (1) or off (0)
50 document.f.add1.value=1;
51 document.f.add2.value=1;
52 document.f.add3.value='';
53 document.f.every1.value=12;
54 document.f.every2.value=1;
55 document.f.every3.value='';
56 document.f.whenmorethan1.value=9999999;
57 document.f.whenmorethan2.value=12;
58 document.f.whenmorethan3.value='';
59 document.f.setto1.value=0;
60 document.f.setto2.value=1;
61 document.f.setto3.value='';
62 document.f.lastvalue1.value=1;
63 document.f.lastvalue2.value=1;
64 document.f.lastvalue3.value='';
65 document.f.numberingmethod.value='Vol {X}, No {Y}';
66 moreoptions(text[1],text[0]);
70 document.f.add1.value=1;
71 document.f.add2.value=1;
72 document.f.add3.value='';
73 document.f.every1.value=12;
74 document.f.every2.value=1;
75 document.f.every3.value='';
76 document.f.whenmorethan1.value=9999999;
77 document.f.whenmorethan2.value=12;
78 document.f.whenmorethan3.value='';
79 document.f.setto1.value=0;
80 document.f.setto2.value=1;
81 document.f.setto3.value='';
82 document.f.lastvalue1.value=1;
83 document.f.lastvalue2.value=1;
84 document.f.lastvalue3.value='';
85 document.f.numberingmethod.value='Vol {X}, Issue {Y}';
86 moreoptions(text[1],text[2]);
90 document.f.add1.value=1;
91 document.f.add2.value=1;
92 document.f.add3.value='';
93 document.f.every1.value=12;
94 document.f.every2.value=1;
95 document.f.every3.value='';
96 document.f.whenmorethan1.value=9999999;
97 document.f.whenmorethan2.value=12;
98 document.f.whenmorethan3.value='';
99 document.f.setto1.value=0;
100 document.f.setto2.value=1;
101 document.f.setto3.value='';
102 document.f.lastvalue1.value=1;
103 document.f.lastvalue2.value=1;
104 document.f.lastvalue3.value='';
105 document.f.numberingmethod.value='No {X}, Issue {Y}';
106 moreoptions(text[0],text[2]);
111 var sYear = d.getFullYear();
112 document.f.add1.value=1;
113 document.f.add2.value='1';
114 document.f.add3.value='';
115 document.f.every1.value=4;
116 document.f.every2.value='1';
117 document.f.every3.value='';
118 document.f.whenmorethan1.value=9999999;
119 document.f.whenmorethan2.value='4';
120 document.f.whenmorethan3.value='';
121 document.f.setto1.value=0;
122 document.f.setto2.value='1';
123 document.f.setto3.value='';
124 document.f.lastvalue1.value=sYear;
125 document.f.lastvalue2.value='1';
126 document.f.lastvalue3.value='';
127 document.f.periodicity.value='8';
128 document.f.numberingmethod.value='{Y} {X}';
129 moreoptions_seasons(text[15],sYear);
135 document.f.irreg_check.value=1;
138 document.f.add1.value=1;
139 document.f.add2.value='';
140 document.f.add3.value='';
141 document.f.every1.value=1;
142 document.f.every2.value='';
143 document.f.every3.value='';
144 document.f.whenmorethan1.value=9999999;
145 document.f.whenmorethan2.value='';
146 document.f.whenmorethan3.value='';
147 document.f.setto1.value=0;
148 document.f.setto2.value='';
149 document.f.setto3.value='';
150 document.f.lastvalue1.value=1;
151 document.f.lastvalue2.value='';
152 document.f.lastvalue3.value='';
153 document.f.numberingmethod.value='{X}';
154 moreoptions_daily_check(text[0]);
155 document.f.irreg_check.value=1;
161 function display_table(n) {
163 document.getElementById("basetable").style.display = 'block';
165 document.getElementById("basetable").style.display = 'none';
169 function modify_num_pattern() {
170 document.getElementById("numberpattern").value = '<!-- TMPL_VAR NAME="numberpattern" -->';
173 document.f.add1.value='<!-- TMPL_VAR NAME="add1" -->';
174 document.f.add2.value='<!-- TMPL_VAR NAME="add2" -->';
175 document.f.add3.value='<!-- TMPL_VAR NAME="add3" -->';
176 document.f.every1.value='<!-- TMPL_VAR NAME="every1" -->';
177 document.f.every2.value='<!-- TMPL_VAR NAME="every2" -->';
178 document.f.every3.value='<!-- TMPL_VAR NAME="every3" -->';
179 document.f.whenmorethan1.value='<!-- TMPL_VAR NAME="whenmorethan1" -->';
180 document.f.whenmorethan2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
181 document.f.whenmorethan3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
182 document.f.setto1.value='<!-- TMPL_VAR NAME="setto1" -->';
183 document.f.setto2.value='<!-- TMPL_VAR NAME="setto2" -->';
184 document.f.setto3.value='<!-- TMPL_VAR NAME="setto3" -->';
185 document.f.lastvalue1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
186 document.f.lastvalue2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
187 document.f.lastvalue3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
188 document.f.numberingmethod.value='<!-- TMPL_VAR NAME="numberingmethod" -->';
192 <!-- TMPL_IF NAME="add2" -->
193 if(<!-- TMPL_VAR NAME="add2" --> > 0){
197 <!-- TMPL_IF NAME="add3" -->
198 if(<!-- TMPL_VAR NAME="add3" --> > 0){
203 document.f.lastvaluetemp1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
205 document.f.lastvaluetemp2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
206 document.f.whenmorethantemp2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
209 document.f.lastvaluetemp3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
210 document.f.whenmorethantemp3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
214 // a pre check with more options to see if 'number' and '1/day' are chosen
215 function moreoptions_daily_check(x) {
216 var periodicity = document.f.periodicity.value;
218 if(periodicity == 1){
219 document.getElementById("irregularity").innerHTML = '';
220 document.getElementById("more_options").innerHTML = '';
221 var daynames = new Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
222 errortext ="Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>";
223 for(var j=0;j<daynames.length;j++){
224 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
226 var error = errortext;
227 document.getElementById("irregularity").innerHTML = error;
229 document.getElementById("irregularity").innerHTML = '';
230 document.getElementById("more_options").innerHTML = '';
235 // to dispaly the more options section
236 function moreoptions(x,y,z){
237 document.getElementById("irregularity").innerHTML = '';
238 document.getElementById("more_options").innerHTML = '';
240 // alert("X: "+x+"Y: "+y+"Z: "+z);
242 textbox +="<table>\n<tr><td> <\/td><td>"+x+"<\/td>";
244 textbox +="<td>"+y+"<\/td>";
246 textbox +="<td>"+z+"<\/td>";
249 textbox +="<\/tr>\n";
250 textbox +="<tr><td>"+text[5]+"<\/td><td><input type='text' name='lastvaluetemp1' size='4' onkeyup='moreoptionsupdate(\"lastvalue1\")'><\/td>\n";
252 textbox +="<td><input type='text' name='lastvaluetemp2' size='4' onkeyup='moreoptionsupdate(\"lastvalue2\")'><\/td>\n";
254 textbox +="<td><input type='text' name='lastvaluetemp3' size='4' onkeyup='moreoptionsupdate(\"lastvalue3\")'><\/td>\n";
257 textbox +="<\/tr>\n";
259 textbox +="<tr><td>"+text[6]+"<\/td>";
260 textbox +="<td><a href='javascript:irregularity_check()'>Irregularity?<\/a><\/td>\n";
261 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
263 textbox +="<td><input type='text' name='whenmorethantemp3' size='4' onkeyup='moreoptionsupdate(\"whenmorethan3\",1)'><\/td>\n";
267 textbox +="<\/table>\n";
269 document.getElementById("more_options").innerHTML = textbox;
272 function hemispheres(chosen){
273 var selbox = document.getElementById("season1");
275 var selboxselected = selbox.options[selbox.selectedIndex].value;
276 selbox.options.length = 0;
279 selbox.options[selbox.options.length] = new Option(text[11],'1');
280 selbox.options[selbox.options.length] = new Option(text[12],'2');
281 selbox.options[selbox.options.length] = new Option(text[13],'3');
282 selbox.options[selbox.options.length] = new Option(text[14],'4');
284 selbox.options[selboxselected-1].selected = true;
288 selbox.options[selbox.options.length] = new Option(text[13],'1');
289 selbox.options[selbox.options.length] = new Option(text[10],'2');
290 selbox.options[selbox.options.length] = new Option(text[11],'3');
291 selbox.options[selbox.options.length] = new Option(text[12],'4');
293 selbox.options[selboxselected-1].selected = true;
298 // to dispaly the more options section for seasons
299 function moreoptions_seasons(x,y){
300 document.getElementById("irregularity").innerHTML = '';
301 document.getElementById("more_options").innerHTML = '';
303 // alert("X: "+x+"Year: "+y);
305 var hemi_select = parseInt('<!-- TMPL_VAR NAME="hemisphere" -->');
306 textbox +="<table>\n<tr><td>"+ text[7] +"<\/td><td colspan='2'><select name='hemisphere' onchange='hemispheres(this.options[this.selectedIndex].value)'>";
307 for(var i = 1; i <= 2; i++){
308 textbox +="<option value='"+i+"'";
309 if(i == hemi_select){
310 textbox += " selected "
312 textbox +=">"+text[i+7]+"<\/option>";
314 textbox +="<\/select><\/td><\/tr>\n";
315 textbox +="<tr><td> <\/td><td>"+x+"<\/td>";
316 textbox +="<td>"+text[16]+"<\/td>";
317 textbox +="<\/tr>\n";
318 textbox +="<tr><td>"+text[5]+"<\/td><td><select name='lastvaluetemp2' id='season1' onchange='moreoptionsupdate(\"lastvalue2\")'>";
319 for(var j = 1; j <= 4; j++){
320 textbox +="<option value='"+j+"'>"+text[j+10]+"<\/option>";
322 textbox +="<\/select><\/td><td><select name='lastvaluetemp1' onchange='moreoptionsupdate(\"lastvalue1\")'>";
323 for(var k = parseInt(y); k <= parseInt(y)+15; k++){
324 textbox +="<option value='"+k+"'>"+k+"<\/option>";
326 textbox +="<\/select><\/td><\/tr>\n";
327 textbox +="<tr><td>"+text[6]+"<\/td>";
328 textbox +="<td><a href='javascript:irregularity_check()'>Irregularity?<\/a><\/td>\n";
329 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
330 textbox +="<\/tr><\/table>\n";
332 document.getElementById("more_options").innerHTML = textbox;
335 function irregularity_check(){
336 document.f.irreg_check.value = 1; // Irregularity button now pushed
337 var periodicity = document.f.periodicity.value;
338 var rollover = document.f.whenmorethantemp2.value;
339 if(document.f.whenmorethantemp3){
340 rollover = document.f.whenmorethantemp3.value;
345 var errortext = "<b>Warning irregularity detected<\/b><br \/>";
348 if(rollover < 365) expected =365;
355 if(rollover < 52) expected =52;
362 if(rollover < 26) expected =26;
369 if(rollover < 17) expected =17;
376 if(rollover < 12) expected =12;
383 if(rollover < 6) expected =6;
390 if(rollover < 4) expected =4;
397 if(rollover < 4) expected =4;
404 if(rollover < 2) expected =2;
411 if(rollover < 1) expected =1;
422 var daynames = new Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
423 errortext +="Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>";
424 for(var j=0;j<daynames.length;j++){
425 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
429 errortext +=expected+" issues expected "+rollover+" were entered. <br \/>Please indicate which date(s) an issue is not expected<br \/>";
431 for(var i=rollover;i<expected;i++){
432 errortext +="<select name='irregular' id='irregular"+count+"' onchange='display_example(expected)'>\n";
433 errortext +=irregular_options(periodicity);
434 errortext +="<\/select>\n";
441 errortext +=expectedover+" issues expected "+rollover+" were entered.<br \/> You seem to have indicated more issues per year than expected.";
444 if(error.length ==0){
445 error='No irregularities noticed';
447 display_example(expected);
448 document.getElementById("irregularity").innerHTML = error;
451 function irregular_options(periodicity){
454 <!-- TMPL_IF NAME="weekarrayjs" -->
455 var weeks = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
457 var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
458 var seasons = new Array('Autumn','Winter','Spring','Summer','Fall');
460 if(periodicity == 1) {
465 if(periodicity == 2 || periodicity == 3 || periodicity == 4) {
467 <!-- TMPL_IF NAME="weekarrayjs" -->
469 count = <!-- TMPL_VAR NAME="weekno" -->;
475 if(periodicity == 5 || periodicity == 6 || periodicity == 7 || periodicity == 8 || periodicity == 9) {
476 if(periodicity == 8) {
477 is_season = 1; // setting up from edit page
482 if(is_hemisphere == 2){
493 for(var j=1;j<=expected;j++){
496 count = count-expected;
498 if(is_season && is_hemisphere == 1){
499 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j]+"<\/option>\n";
500 // alert("value: "+((count*3)-2)+" title: "+titles[j]);
501 } else if(is_season && is_hemisphere == 2){
502 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j-1]+"<\/option>\n";
503 // alert("value: "+((count*3)-2)+" title: "+titles[j-1]);
505 errortext +="<option value='"+count+"'>"+titles[j-1]+"<\/option>\n";
509 errortext +="<option value='"+j+"'>"+titles+" "+j+"<\/option>\n";
515 function irregular_order(){
516 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
517 var periodicity = document.f.periodicity.value;
518 var irregarray = irregular.split('|');
520 for(j=0;j<irregarray.length;j++){
521 document.getElementById("irregular"+irregarray[j]).checked = true;
524 for(i=0;i<irregarray.length;i++){
525 document.getElementById("irregular"+i).value = irregarray[i];
530 function display_example(expected){
531 var startfrom1 = parseInt(document.f.lastvalue1.value);
532 var startfrom2 = parseInt(document.f.lastvalue2.value);
533 var startfrom3 = parseInt(document.f.lastvalue3.value);
534 var every1 = parseInt(document.f.every1.value);
535 var every2 = parseInt(document.f.every2.value);
536 var every3 = parseInt(document.f.every3.value);
537 var numberpattern = document.f.numberingmethod.value;
538 var whenmorethan2 = parseInt(document.f.whenmorethan2.value);
539 var whenmorethan3 = parseInt(document.f.whenmorethan3.value);
540 var setto2 = parseInt(document.f.setto2.value);
541 var setto3 = parseInt(document.f.setto3.value);
542 var displaytext = 'Based on the information<br \/>entered the Numbering Pattern<br \/>will look like this<br \/>\n';
544 var count=startfrom3-1;
545 var count2=startfrom2;
546 for(var i=0;i<12;i++){
547 if(count>=whenmorethan3){
549 if(count2>=whenmorethan2){
558 displaytext += numberpattern.replace(/{Z}/,count)+'\n';
559 displaytext = displaytext.replace(/{Y}/,count2)+'<br \/>\n';
560 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
564 if(startfrom2>0 && !startfrom3){
565 var count=startfrom2-1;
566 for(var i=0;i<12;i++){
567 if(count>=whenmorethan2){
575 if(is_hemisphere == 2){
577 displaytext += numberpattern.replace(/{Y}/,text[count+12])+'\n';
579 displaytext += numberpattern.replace(/{Y}/,text[count+8])+'\n';
582 displaytext += numberpattern.replace(/{Y}/,text[count+10])+'\n';
585 displaytext += numberpattern.replace(/{Y}/,count)+'\n';
587 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
590 if(startfrom1>0 && !startfrom2 && !startfrom3){
591 for(var i=startfrom1;i<(startfrom1+12);i=i+(1*every1)){
593 displaytext += numberpattern.replace(/{X}/,startfrom1)+'<br \/>\n';
596 displaytext = "<div style='padding: 5px; background-color: #CCCCCC'>"+displaytext+"<\/div>";
597 document.getElementById("displayexample").innerHTML = displaytext;
600 function isArray(obj) {
601 if (obj.constructor.toString().indexOf("Array") == -1)
607 function moreoptionsupdate(fieldnames,rollover){
608 fieldname = fieldnames;
609 fld = fieldname.length;
611 fieldnametempnumber = fieldname.substr(fld);
612 //alert(fieldnametempnumber);
613 fieldnametemp = fieldname.slice(0,-1)+"temp"+fieldnametempnumber;
614 // alert(fieldnametemp);
615 eval("document.f."+fieldname+".value = document.f."+fieldnametemp+".value");
617 eval("document.f.every"+(fieldnametempnumber-1)+".value = document.f."+fieldnametemp+".value");
622 function check_input(e){
623 var unicode=e.charCode? e.charCode : e.keyCode
624 if (unicode!=8 && unicode !=46){ // if key isn't backspace or delete
625 if (unicode<48||unicode>57) { // if not a number
626 alert("Needs to be entered in digit form -eg 10");
627 return false // disable key press
636 <!-- TMPL_IF name="mod" -->
637 <h1>Modify subscription</h1>
638 <form method="post" name="f" action="alt_subscription-detail.pl">
639 <input type="hidden" name="op" value="modsubscription">
640 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
642 <h1>Add a subscription (Serial Holdings Record)</h1>
643 <form method="post" name="f">
644 <input type="hidden" name="op" value="addsubscription">
646 <input type="hidden" name="user" value="<!-- TMPL_VAR name="loggedinusername" -->">
647 <input type="hidden" name="irreg_check" value="0">
651 <h2>Subscription information</h2>
652 <table border="0" cellspacing="5" cellpadding="0">
653 <tr><td>Librarian:</td>
654 <td><!-- TMPL_VAR name="loggedinusername" --></td></tr>
655 <tr><td><label>Supplier:</label></td>
656 <td><input type="text" name="aqbooksellerid" value="<!-- TMPL_VAR name="aqbooksellerid" -->" size="4"> (<input type="text" name="aqbooksellername" value="<!-- TMPL_VAR name="aqbooksellername" -->" disabled readonly>) <a href="#" onClick="FindAcqui(f)">Search for a Supplier</a></td>
657 <tr><td><label>Biblio</label></td>
658 <td><input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size="4"> (<input type="text" name="title" value="<!-- TMPL_VAR name="bibliotitle" -->" disabled readonly>) <a href="#" onClick="Plugin(f)">Search for Biblio</a> | <a href="/cgi-bin/koha/acqui/acqui-home.pl">Create Biblio</a></td>
659 <tr><td><label>Call Number</label></td>
660 <td><input type="text" name="callnumber" value="<!-- TMPL_VAR name="callnumber" -->" size="20"></td></tr>
661 <tr><td><label>Notes</label></td>
662 <td><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></td>
663 <tr><td><b>Warning:</b></td>
666 <li>Remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
667 <li>You also must have selected a supplier if you want to ask for late issues</li>
673 <table border="0" cellspacing="5" cellpadding="0">
674 <tr><td><label class="label100">First Issue ETA:</label></td>
675 <td> <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="button2" style="cursor: pointer;" />
677 <input type="text" name="firstacquidate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10 id="acqui_date" style="border-width: 0px;">
678 <!-- both scripts for calendar must follow the input field -->
679 <script type="text/javascript">
681 inputField:"acqui_date",
682 ifFormat : "%d/%m/%Y",
687 <script type="text/javascript">
689 inputField : "acqui_date",
690 ifFormat : "%d/%m/%Y",
691 button : "acqui_date",
695 <td rowspan="5"><div id="displayexample"></div></td></tr>
696 <tr><td><label class="label100">Frequency: (*)</label></td>
697 <td> <select name="periodicity" size="1">
698 <option value="" selected>-- please choose --</option>
699 <option value="">Unknown</option>
701 <!-- TMPL_IF name="periodicity1" -->
702 <option value="1" selected>1/day</option>
704 <option value="1">1/day</option>
706 <!-- TMPL_IF name="periodicity2" -->
707 <option value="2" selected>1/week</option>
709 <option value="2">1/week</option>
711 <!-- TMPL_IF name="periodicity3" -->
712 <option value="3" selected>1/2 weeks (2/month)</option>
714 <option value="3">1/2 weeks (2/months)</option>
716 <!-- TMPL_IF name="periodicity4" -->
717 <option value="4" selected>1/3 weeks</option>
719 <option value="4">1/3 weeks</option>
721 <!-- TMPL_IF name="periodicity5" -->
722 <option value="5" selected>1/month</option>
724 <option value="5">1/month</option>
726 <!-- TMPL_IF name="periodicity6" -->
727 <option value="6" selected>1/2 months (6/year)</option>
729 <option value="6">1/2 months (6/year)</option>
731 <!-- TMPL_IF name="periodicity7" -->
732 <option value="7" selected>1/3 months (1/quarter)</option>
734 <option value="7">1/3 months (1/quarter)</option>
736 <!-- periodicity8 is 1/quarter, exactly like periodicity7 but will use it for seasonal option -->
737 <!-- TMPL_IF name="periodicity8" -->
738 <option value="8" selected>1/quarter (seasonal)</option>
740 <option value="8">1/quarter (seasonal)</option>
743 <!-- TMPL_IF name="periodicity9" -->
744 <option value="9" selected>2/years</option>
746 <option value="9">2/year</option>
748 <!-- TMPL_IF name="periodicity10" -->
749 <option value="10" selected>1/year</option>
751 <option value="10">1/year</option>
753 <!-- TMPL_IF name="periodicity11" -->
754 <option value="11" selected>1/2 years</option>
756 <option value="11">1/2 years</option>
760 <tr><td><label class="label100">Numbering Pattern:</label></td>
761 <td><select name="numbering_pattern" size="1" id="numberpattern" onchange="num_pattern()">
762 <option value="" selected>-- please choose --</option>
763 <!-- TMPL_IF name="numberpattern1" -->
764 <option value="1" selected>Number</option>
766 <option value="1">Number</option>
768 <!-- TMPL_IF name="numberpattern2" -->
769 <option value="2" selected>Volume, Number, Issue</option>
771 <option value="2">Volume, Number, Issue</option>
773 <!-- TMPL_IF name="numberpattern3" -->
774 <option value="3" selected>Volume, Number</option>
776 <option value="3">Volume, Number</option>
778 <!-- TMPL_IF name="numberpattern4" -->
779 <option value="4" selected>Volume, Issue</option>
781 <option value="4">Volume, Issue</option>
783 <!-- TMPL_IF name="numberpattern5" -->
784 <option value="5" selected>Number, Issue</option>
786 <option value="5">Number, Issue</option>
788 <!-- TMPL_IF name="numberpattern6" -->
789 <option value="6" selected>Seasonal only</option>
791 <option value="6">Seasonal only</option>
793 <!-- TMPL_IF name="numberpattern7" -->
794 <option value="7" selected>None of the above</option>
796 <option value="7">None of the above</option>
800 <div id="more_options"></div>
801 <div id="irregularity"></div></td></tr>
802 <tr><td><label class="label100">Begins On: (*)</label></td>
803 <td><img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="button1" style="cursor: pointer;" />
804 <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10 id="beginning_date" style="border-width: 0px;">
805 <!-- both scripts for calendar must follow the input field -->
806 <script type="text/javascript">
808 inputField : "beginning_date",
809 ifFormat : "%d/%m/%Y",
814 <script type="text/javascript">
816 inputField : "beginning_date",
817 ifFormat : "%d/%m/%Y",
818 button : "beginning_date",
825 <!-- <tr><td><label class="label100">Arrives on</label></td>
826 <td> <select name="dow" size="1">
827 <option value="">None</option>
828 <!-- TMPL_IF name="dow1" -->
829 <option value="1" selected>Monday</option>
831 <option value="1">Monday</option>
833 <!-- TMPL_IF name="dow2" -->
834 <option value="2" selected>Tuesday</option>
836 <option value="2">Tuesday</option>
838 <!-- TMPL_IF name="dow3" -->
839 <option value="3" selected>Wednesday</option>
841 <option value="3">Wednesday</option>
843 <!-- TMPL_IF name="dow4" -->
844 <option value="4" selected>Thursday</option>
846 <option value="4">Thursday</option>
848 <!-- TMPL_IF name="dow5" -->
849 <option value="5" selected>Friday</option>
851 <option value="5">Friday</option>
853 <!-- TMPL_IF name="dow6" -->
854 <option value="6" selected>Saturday</option>
856 <option value="6">Saturday</option>
858 <!-- TMPL_IF name="dow7" -->
859 <option value="7" selected>Sunday</option>
861 <option value="7">Sunday</option>
863 </select></td></tr> -->
866 <h2>Subscription length</h2>
867 <p><select name="subtype">
868 <!-- TMPL_LOOP NAME="subtype" -->
869 <option value="<!-- TMPL_VAR NAME="name" -->" <!-- TMPL_IF NAME="selected" --> selected="SELECTED" <!-- /TMPL_IF -->><!-- TMPL_VAR NAME="name" --></option>
871 </select> <input type="text" name="sublength" value="<!-- TMPL_VAR name="sublength" -->" size="3" onkeypress="return check_input(event)"> (*) (enter amount in numerals)</p>
875 <h2>Numbering calculation</h2>
876 <p>Numbering formula: <input type="text" name="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->"></p>
877 <div id="basetable" style="display: none;">
878 <table class="small">
888 <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->">
891 <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->">
894 <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->">
899 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->"></td>
900 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->"></td>
901 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->"></td>
904 <td>When more than</td>
905 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->"></td>
906 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->"></td>
907 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->"></td>
909 <!-- TMPL_IF name="mod" -->
911 <td>The loop is for instance</td>
912 <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->"></td>
913 <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->"></td>
914 <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->"></td>
919 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->"></td>
920 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->"></td>
921 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->"></td>
925 <!-- TMPL_IF name="mod" -->
931 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->"></td>
932 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->"></td>
933 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->"></td>
937 <!-- TMPL_IF name="mod" -->
938 <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w" class="button">
940 <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w" class="button">
946 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
948 <script language="JavaScript" type="text/javascript">
952 window.open('subscription-bib-search.pl','FindABibIndex','width=500,height=400,toolbar=no,scrollbars=yes');
955 function FindAcqui(f)
957 window.open('acqui-search.pl','FindASupplier','width=500,height=400,toolbar=no,scrollbars=yes');
960 function Find_ISSN(f)
962 window.open('issn-search.pl','FindABibIndex','width=500,height=400,toolbar=no,scrollbars=yes');
967 if (f.startdate.value.length != 0 && f.sublength.value > 0) {
968 if (f.irreg_check.value == 1) {
971 if(f.numbering_pattern.value == ''){
972 alert("need to choose a numbering pattern");
974 alert("need to check for irregularity by clicking 'Irregularity?'");
978 alert('field marked with * are mandatory');
983 <!-- TMPL_IF name="mod" -->
984 <script type="text/javascript">
985 window.onload = modify_num_pattern();
986 <!-- TMPL_IF name="hemisphere" -->
987 window.onload = hemispheres(<!-- TMPL_VAR NAME="hemisphere" -->);
991 <!-- TMPL_IF name="irregularity" -->
992 <script type="text/javascript">
993 window.onload = irregularity_check();
994 window.onload = irregular_order();