1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Serials</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
8 <!-- Additions to enable Calendar system -->
9 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
10 <!-- End of additions -->
12 <!-- Additions to enable Calendar system -->
13 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar.js"></script>
14 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-en.js"></script>
15 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-setup.js"></script>
16 <!-- End of additions -->
18 <script type="text/javascript" language="javascript">
20 function _(s) { return s } // dummy function for gettext
22 // the english words used in display purposes
23 var text = new Array(_('Number'),_('Volume'),_('Issue'),_('Month'),_('Week'),_('Starting with:'),_('Rollover at:'),_('Choose Hemisphere:'),_('Northern'),_('Southern'),
24 _('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'),_('Season'),_('Year'));
26 var is_hemisphere = 1;
28 // common pre defined number patterns
29 function num_pattern() {
30 var patternchoice = document.getElementById("numberpattern").value;
31 switch(patternchoice){
33 document.f.add1.value=1;
34 document.f.add2.value=1;
35 document.f.add3.value=1;
36 document.f.every1.value=12;
37 document.f.every2.value=1;
38 document.f.every3.value=1;
39 document.f.whenmorethan1.value=9999999;
40 document.f.whenmorethan2.value=12;
41 document.f.whenmorethan3.value=4;
42 document.f.setto1.value=0;
43 document.f.setto2.value=1;
44 document.f.setto3.value=1;
45 document.f.lastvalue1.value=1;
46 document.f.lastvalue2.value=1;
47 document.f.lastvalue3.value=1;
48 document.f.numberingmethod.value=_('Vol {X}, No {Y}, Issue {Z}');
49 moreoptions(text[1],text[0],text[2]);
50 display_table(0); // toggle info box on (1) or off (0)
53 document.f.add1.value=1;
54 document.f.add2.value=1;
55 document.f.add3.value='';
56 document.f.every1.value=12;
57 document.f.every2.value=1;
58 document.f.every3.value='';
59 document.f.whenmorethan1.value=9999999;
60 document.f.whenmorethan2.value=12;
61 document.f.whenmorethan3.value='';
62 document.f.setto1.value=0;
63 document.f.setto2.value=1;
64 document.f.setto3.value='';
65 document.f.lastvalue1.value=1;
66 document.f.lastvalue2.value=1;
67 document.f.lastvalue3.value='';
68 document.f.numberingmethod.value=_('Vol {X}, No {Y}');
69 moreoptions(text[1],text[0]);
73 document.f.add1.value=1;
74 document.f.add2.value=1;
75 document.f.add3.value='';
76 document.f.every1.value=12;
77 document.f.every2.value=1;
78 document.f.every3.value='';
79 document.f.whenmorethan1.value=9999999;
80 document.f.whenmorethan2.value=12;
81 document.f.whenmorethan3.value='';
82 document.f.setto1.value=0;
83 document.f.setto2.value=1;
84 document.f.setto3.value='';
85 document.f.lastvalue1.value=1;
86 document.f.lastvalue2.value=1;
87 document.f.lastvalue3.value='';
88 document.f.numberingmethod.value=_('Vol {X}, Issue {Y}');
89 moreoptions(text[1],text[2]);
93 document.f.add1.value=1;
94 document.f.add2.value=1;
95 document.f.add3.value='';
96 document.f.every1.value=12;
97 document.f.every2.value=1;
98 document.f.every3.value='';
99 document.f.whenmorethan1.value=9999999;
100 document.f.whenmorethan2.value=12;
101 document.f.whenmorethan3.value='';
102 document.f.setto1.value=0;
103 document.f.setto2.value=1;
104 document.f.setto3.value='';
105 document.f.lastvalue1.value=1;
106 document.f.lastvalue2.value=1;
107 document.f.lastvalue3.value='';
108 document.f.numberingmethod.value=_('No {X}, Issue {Y}');
109 moreoptions(text[0],text[2]);
114 var sYear = d.getFullYear();
115 document.f.add1.value=1;
116 document.f.add2.value='1';
117 document.f.add3.value='';
118 document.f.every1.value=4;
119 document.f.every2.value='1';
120 document.f.every3.value='';
121 document.f.whenmorethan1.value=9999999;
122 document.f.whenmorethan2.value='4';
123 document.f.whenmorethan3.value='';
124 document.f.setto1.value=0;
125 document.f.setto2.value='1';
126 document.f.setto3.value='';
127 document.f.lastvalue1.value=sYear;
128 document.f.lastvalue2.value='1';
129 document.f.lastvalue3.value='';
130 document.f.periodicity.value='8';
131 document.f.numberingmethod.value=_('{Y} {X}');
132 moreoptions_seasons(text[15],sYear);
138 document.getElementById("more_options").innerHTML = '';
139 document.f.irreg_check.value=1;
142 document.f.add1.value=1;
143 document.f.add2.value='';
144 document.f.add3.value='';
145 document.f.every1.value=1;
146 document.f.every2.value='';
147 document.f.every3.value='';
148 document.f.whenmorethan1.value=9999999;
149 document.f.whenmorethan2.value='';
150 document.f.whenmorethan3.value='';
151 document.f.setto1.value=0;
152 document.f.setto2.value='';
153 document.f.setto3.value='';
154 document.f.lastvalue1.value=1;
155 document.f.lastvalue2.value='';
156 document.f.lastvalue3.value='';
157 document.f.numberingmethod.value='{X}';
158 moreoptions_daily_check(text[0]);
159 document.f.irreg_check.value=1;
165 function display_table(n) {
167 document.getElementById("basetable").style.display = 'block';
169 document.getElementById("basetable").style.display = 'none';
173 function modify_num_pattern() {
174 document.getElementById("numberpattern").value = '<!-- TMPL_VAR NAME="numberpattern" -->';
177 document.f.add1.value='<!-- TMPL_VAR NAME="add1" -->';
178 document.f.add2.value='<!-- TMPL_VAR NAME="add2" -->';
179 document.f.add3.value='<!-- TMPL_VAR NAME="add3" -->';
180 document.f.every1.value='<!-- TMPL_VAR NAME="every1" -->';
181 document.f.every2.value='<!-- TMPL_VAR NAME="every2" -->';
182 document.f.every3.value='<!-- TMPL_VAR NAME="every3" -->';
183 document.f.whenmorethan1.value='<!-- TMPL_VAR NAME="whenmorethan1" -->';
184 document.f.whenmorethan2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
185 document.f.whenmorethan3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
186 document.f.setto1.value='<!-- TMPL_VAR NAME="setto1" -->';
187 document.f.setto2.value='<!-- TMPL_VAR NAME="setto2" -->';
188 document.f.setto3.value='<!-- TMPL_VAR NAME="setto3" -->';
189 document.f.lastvalue1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
190 document.f.lastvalue2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
191 document.f.lastvalue3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
192 document.f.numberingmethod.value='<!-- TMPL_VAR NAME="numberingmethod" -->';
196 <!-- TMPL_IF NAME="add2" -->
197 if(<!-- TMPL_VAR NAME="add2" --> > 0){
201 <!-- TMPL_IF NAME="add3" -->
202 if(<!-- TMPL_VAR NAME="add3" --> > 0){
207 document.f.lastvaluetemp1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
209 document.f.lastvaluetemp2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
210 document.f.whenmorethantemp2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
213 document.f.lastvaluetemp3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
214 document.f.whenmorethantemp3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
218 // a pre check with more options to see if 'number' and '1/day' are chosen
219 function moreoptions_daily_check(x) {
220 var periodicity = document.f.periodicity.value;
222 if(periodicity == 1){
223 document.getElementById("irregularity").innerHTML = '';
224 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
225 errortext =_("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
226 for(var j=0;j<daynames.length;j++){
227 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
229 var error = errortext;
231 document.getElementById("irregularity").innerHTML = error;
233 document.getElementById("irregularity").innerHTML = '';
234 document.getElementById("more_options").innerHTML = '';
239 // to dispaly the more options section
240 function moreoptions(x,y,z){
241 document.getElementById("irregularity").innerHTML = '';
242 document.getElementById("more_options").innerHTML = '';
244 // alert("X: "+x+"Y: "+y+"Z: "+z);
246 textbox +="<table>\n<tr><td> <\/td><td>"+x+"<\/td>";
248 textbox +="<td>"+y+"<\/td>";
250 textbox +="<td>"+z+"<\/td>";
253 textbox +="<\/tr>\n";
254 textbox +="<tr><td>"+text[5]+"<\/td><td><input type='text' name='lastvaluetemp1' size='4' onkeyup='moreoptionsupdate(\"lastvalue1\")'><\/td>\n";
256 textbox +="<td><input type='text' name='lastvaluetemp2' size='4' onkeyup='moreoptionsupdate(\"lastvalue2\")'><\/td>\n";
258 textbox +="<td><input type='text' name='lastvaluetemp3' size='4' onkeyup='moreoptionsupdate(\"lastvalue3\")'><\/td>\n";
261 textbox +="<\/tr>\n";
263 textbox +="<tr><td>"+text[6]+"<\/td>";
264 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
265 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
267 textbox +="<td><input type='text' name='whenmorethantemp3' size='4' onkeyup='moreoptionsupdate(\"whenmorethan3\",1)'><\/td>\n";
271 textbox +="<tr> <td>"+_('issues expected')+"</td><td><input type='text' name='issuesexpectedtemp1' size='4' onkeyup='moreoptionsupdate(\"issuesexpected1\",0)'><br/><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"</a></td></tr>";
273 textbox +="<\/table>\n";
275 document.getElementById("more_options").innerHTML = textbox;
278 function hemispheres(chosen){
279 var selbox = document.getElementById("season1");
281 var selboxselected = selbox.options[selbox.selectedIndex].value;
282 selbox.options.length = 0;
285 selbox.options[selbox.options.length] = new Option(text[11],'1');
286 selbox.options[selbox.options.length] = new Option(text[12],'2');
287 selbox.options[selbox.options.length] = new Option(text[13],'3');
288 selbox.options[selbox.options.length] = new Option(text[14],'4');
290 selbox.options[selboxselected-1].selected = true;
294 selbox.options[selbox.options.length] = new Option(text[13],'1');
295 selbox.options[selbox.options.length] = new Option(text[10],'2');
296 selbox.options[selbox.options.length] = new Option(text[11],'3');
297 selbox.options[selbox.options.length] = new Option(text[12],'4');
299 selbox.options[selboxselected-1].selected = true;
304 // to dispaly the more options section for seasons
305 function moreoptions_seasons(x,y){
306 document.getElementById("irregularity").innerHTML = '';
307 document.getElementById("more_options").innerHTML = '';
309 // alert("X: "+x+"Year: "+y);
311 var hemi_select = parseInt('<!-- TMPL_VAR NAME="hemisphere" -->');
312 textbox +="<table>\n<tr><td>"+ text[7] +"<\/td><td colspan='2'><select name='hemisphere' onchange='hemispheres(this.options[this.selectedIndex].value)'>";
313 for(var i = 1; i <= 2; i++){
314 textbox +="<option value='"+i+"'";
315 if(i == hemi_select){
316 textbox += " selected "
318 textbox +=">"+text[i+7]+"<\/option>";
320 textbox +="<\/select><\/td><\/tr>\n";
321 textbox +="<tr><td> <\/td><td>"+x+"<\/td>";
322 textbox +="<td>"+text[16]+"<\/td>";
323 textbox +="<\/tr>\n";
324 textbox +="<tr><td>"+text[5]+"<\/td><td><select name='lastvaluetemp2' id='season1' onchange='moreoptionsupdate(\"lastvalue2\")'>";
325 for(var j = 1; j <= 4; j++){
326 textbox +="<option value='"+j+"'>"+text[j+10]+"<\/option>";
328 textbox +="<\/select><\/td><td><select name='lastvaluetemp1' onchange='moreoptionsupdate(\"lastvalue1\")'>";
329 for(var k = parseInt(y); k <= parseInt(y)+15; k++){
330 textbox +="<option value='"+k+"'>"+k+"<\/option>";
332 textbox +="<\/select><\/td><\/tr>\n";
333 textbox +="<tr><td>"+text[6]+"<\/td>";
334 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
335 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
336 textbox +="<\/tr><\/table>\n";
338 document.getElementById("more_options").innerHTML = textbox;
341 function irregularity_check(){
342 document.f.irreg_check.value = 1; // Irregularity button now pushed
343 var periodicity = document.f.periodicity.value;
344 var rollover = document.f.issuesexpected1.value;
345 if(document.f.whenmorethantemp2){
346 rollover = document.f.whenmorethantemp2.value;
348 if(document.f.whenmorethantemp3){
349 rollover = document.f.whenmorethantemp3.value;
354 var errortext = _("<b>Warning irregularity detected<\/b><br \/>");
357 if(rollover < 365) expected =365;
364 if(rollover < 52) expected =52;
371 if(rollover < 26) expected =26;
378 if(rollover < 17) expected =17;
385 if(rollover < 12) expected =12;
392 if(rollover < 6) expected =6;
399 if(rollover < 4) expected =4;
406 if(rollover < 4) expected =4;
413 if(rollover < 2) expected =2;
420 if(rollover < 1) expected =1;
431 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
432 errortext += _("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
433 for(var j=0;j<daynames.length;j++){
434 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
438 errortext +=expected+_(" issues expected ")+rollover+_(" were entered. <br \/>Please indicate which date(s) an issue is not expected<br \/>");
440 for(var i=rollover;i<expected;i++){
441 errortext +="<select name='irregular' id='irregular"+count+"' onchange='display_example(expected)'>\n";
442 errortext +=irregular_options(periodicity);
443 errortext +="<\/select>\n";
450 errortext +=expectedover+_(" issues expected ")+rollover+_(" were entered.<br \/> You seem to have indicated more issues per year than expected.");
453 if(error.length ==0){
454 error=_('No irregularities noticed');
456 display_example(expected);
457 document.getElementById("irregularity").innerHTML = error;
460 function irregular_options(periodicity){
463 <!-- TMPL_IF NAME="weekarrayjs" -->
464 var weeks = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
466 var months = new Array(_('January'),_('February'),_('March'),_('April'),_('May'),_('June'),_('July'),_('August'),_('September'),_('October'),_('November'),_('December'));
467 var seasons = new Array(_('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'));
469 if(periodicity == 1) {
474 if(periodicity == 2 || periodicity == 3 || periodicity == 4) {
476 <!-- TMPL_IF NAME="weekarrayjs" -->
478 count = <!-- TMPL_VAR NAME="weekno" -->;
484 if(periodicity == 5 || periodicity == 6 || periodicity == 7 || periodicity == 8 || periodicity == 9) {
485 if(periodicity == 8) {
486 is_season = 1; // setting up from edit page
491 if(is_hemisphere == 2){
502 for(var j=1;j<=expected;j++){
505 count = count-expected;
507 if(is_season && is_hemisphere == 1){
508 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j]+"<\/option>\n";
509 // alert("value: "+((count*3)-2)+" title: "+titles[j]);
510 } else if(is_season && is_hemisphere == 2){
511 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j-1]+"<\/option>\n";
512 // alert("value: "+((count*3)-2)+" title: "+titles[j-1]);
514 errortext +="<option value='"+count+"'>"+titles[j-1]+"<\/option>\n";
518 errortext +="<option value='"+j+"'>"+titles+" "+j+"<\/option>\n";
524 function irregular_order(){
525 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
526 var periodicity = document.f.periodicity.value;
527 var irregarray = irregular.split(',');
529 for(j=0;j<irregarray.length;j++){
530 document.getElementById("irregular"+irregarray[j]).checked = true;
533 for(i=0;i<irregarray.length;i++){
534 document.getElementById("irregular"+i).value = irregarray[i];
539 function display_example(expected){
540 var startfrom1 = parseInt(document.f.lastvalue1.value);
541 var startfrom2 = parseInt(document.f.lastvalue2.value);
542 var startfrom3 = parseInt(document.f.lastvalue3.value);
543 var every1 = parseInt(document.f.every1.value);
544 var every2 = parseInt(document.f.every2.value);
545 var every3 = parseInt(document.f.every3.value);
546 var numberpattern = document.f.numberingmethod.value;
547 var whenmorethan2 = parseInt(document.f.whenmorethan2.value);
548 var whenmorethan3 = parseInt(document.f.whenmorethan3.value);
549 var setto2 = parseInt(document.f.setto2.value);
550 var setto3 = parseInt(document.f.setto3.value);
551 var displaytext = _('Based on the information<br \/>entered the Numbering Pattern<br \/>will look like this<br \/>\n');
553 var count=startfrom3-1;
554 var count2=startfrom2;
555 for(var i=0;i<12;i++){
556 if(count>=whenmorethan3){
558 if(count2>=whenmorethan2){
567 displaytext += numberpattern.replace(/{Z}/,count)+'\n';
568 displaytext = displaytext.replace(/{Y}/,count2)+'<br \/>\n';
569 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
573 if(startfrom2>0 && !startfrom3){
574 var count=startfrom2-1;
575 for(var i=0;i<12;i++){
576 if(count>=whenmorethan2){
584 if(is_hemisphere == 2){
586 displaytext += numberpattern.replace(/{Y}/,text[count+12])+'\n';
588 displaytext += numberpattern.replace(/{Y}/,text[count+8])+'\n';
591 displaytext += numberpattern.replace(/{Y}/,text[count+10])+'\n';
594 displaytext += numberpattern.replace(/{Y}/,count)+'\n';
596 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
599 if(startfrom1>0 && !startfrom2 && !startfrom3){
600 var offset=eval(document.f.issuesexpected1.value);
604 for(var i=startfrom1;i<(startfrom1+offset);i+=every1){
605 displaytext += numberpattern.replace(/{X}/,i)+'<br \/>\n';
608 displaytext = "<div style='padding: 5px; background-color: #CCCCCC'>"+displaytext+"<\/div>";
609 document.getElementById("displayexample").innerHTML = displaytext;
612 function isArray(obj) {
613 if (obj.constructor.toString().indexOf("Array") == -1)
619 function moreoptionsupdate(fieldnames,rollover){
620 fieldname = fieldnames;
621 fld = fieldname.length;
623 fieldnametempnumber = fieldname.substr(fld);
624 //alert(fieldnametempnumber);
625 fieldnametemp = fieldname.slice(0,-1)+"temp"+fieldnametempnumber;
626 // alert(fieldnametemp);
627 eval("document.f."+fieldname+".value = document.f."+fieldnametemp+".value");
628 // alert (fieldname+" : "+eval("document.f."+fieldname+".value") +' '+fieldnametemp+' : ' +eval("document.f."+fieldnametemp+".value"));
630 eval("document.f.every"+(fieldnametempnumber-1)+".value = document.f."+fieldnametemp+".value");
635 function check_input(e){
636 var unicode=e.charCode? e.charCode : e.keyCode
637 if (unicode!=8 && unicode !=46 && unicode!=9 && unicode !=13){ // if key isn't backspace or delete
638 if (unicode<48||unicode>57) { // if not a number
639 alert(_("Needs to be entered in digit form -eg 10"));
640 return false // disable key press
648 <!-- TMPL_IF name="mod" -->
649 <h1>Modify a subscription</h1>
650 <form method="post" name="f">
651 <input type="hidden" name="op" value="modsubscription">
652 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
654 <h1>Add a subscription (Serial Holdings Record)</h1>
655 <form method="post" name="f">
656 <input type="hidden" name="op" value="addsubscription">
658 <input type="hidden" name="user" value="<!-- TMPL_VAR name="loggedinusername" -->">
659 <input type="hidden" name="irreg_check" value="0">
660 <input type="hidden" name="issuesexpected1" value="0">
663 <div id="subscription_form">
664 <h2>Subscription information for subscription #<!--TMPL_VAR name="subscriptionid"--></h2>
668 <td><!-- TMPL_VAR name="loggedinusername" --></td>
671 <td><label>Supplier:</label></td>
672 <td><input type="text" name="aqbooksellerid" value="<!-- TMPL_VAR name="aqbooksellerid" -->" size="8"> (<input type="text" name="aqbooksellername" value="<!-- TMPL_VAR name="aqbooksellername" -->" disabled readonly>) <a href="#" onClick="FindAcqui(f)">Search for a Supplier</a></td>
675 <td><label>Biblio</label></td>
677 <input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size="8">
678 (<input type="text" name="title" value="<!-- TMPL_VAR name="bibliotitle" -->" disabled readonly>)
679 <a href="#" onClick="Plugin(f)">Search for Biblio</a> |
680 <!--TMPL_UNLESS Name="mod"--><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Create Biblio</a><!--/TMPL_UNLESS-->
684 <td><label>Call Number</label></td>
685 <td><input type="text" name="callnumber" value="<!-- TMPL_VAR name="callnumber" -->" size="20"></td>
690 <select name="branchcode">
691 <option value="">Any branch</option>
692 <!-- TMPL_LOOP name="branchloop" -->
693 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
695 </select> (select a branch)
699 <td><label>Notes</label></td>
700 <td><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></td>
703 <td><label>Management Notes</label></td>
704 <td><textarea name="internalnotes" cols="30" rows="2"><!-- TMPL_VAR name="internalnotes" --></textarea></td>
707 <td>Patron alert with </td>
709 <select name="letter">
710 <option value="">un-activated</option>
711 <!-- TMPL_LOOP name="letterloop" -->
712 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="lettername" --></option>
714 </select> (select a letter & patrons will be able to "follow" this subscription and recieve a mail on every new issue)
718 <td><b>Warning:</b></td>
721 <li>Remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
722 <li>You also must have selected a supplier if you want to ask for late issues</li>
728 <div id="subscription_form_planning">
732 <td>First Issue ETA:</td>
734 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="button2" style="cursor: pointer;" />
735 <input type="text" name="firstacquidate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10 id="acqui_date" style="border-width: 0px;" />
736 <!-- both scripts for calendar must follow the input field -->
737 <script type="text/javascript">
739 inputField:"acqui_date",
740 ifFormat : "%d/%m/%Y",
745 <script type="text/javascript">
747 inputField : "acqui_date",
748 ifFormat : "%d/%m/%Y",
749 button : "acqui_date",
755 <div id="displayexample"></div>
759 <td>Frequency: (*)</td>
761 <select name="periodicity" size="1" onchange="javascript:document.getElementsByName('manualhist')[0].checked=(this.value==1);num_pattern;">
762 <option value="" selected>-- please choose --</option>
763 <option value="">Unknown</option>
765 <!-- TMPL_IF name="periodicity1" -->
766 <option value="1" selected>1/day</option>
768 <option value="1">1/day</option>
770 <!-- TMPL_IF name="periodicity2" -->
771 <option value="2" selected>1/week</option>
773 <option value="2">1/week</option>
775 <!-- TMPL_IF name="periodicity3" -->
776 <option value="3" selected>1/2 weeks (2/month)</option>
778 <option value="3">1/2 weeks (2/months)</option>
780 <!-- TMPL_IF name="periodicity4" -->
781 <option value="4" selected>1/3 weeks</option>
783 <option value="4">1/3 weeks</option>
785 <!-- TMPL_IF name="periodicity5" -->
786 <option value="5" selected>1/month</option>
788 <option value="5">1/month</option>
790 <!-- TMPL_IF name="periodicity6" -->
791 <option value="6" selected>1/2 months (6/year)</option>
793 <option value="6">1/2 months (6/year)</option>
795 <!-- TMPL_IF name="periodicity7" -->
796 <option value="7" selected>1/3 months (1/quarter)</option>
798 <option value="7">1/3 months (1/quarter)</option>
800 <!-- periodicity8 is 1/quarter, exactly like periodicity7 but will use it for seasonal option -->
801 <!-- TMPL_IF name="periodicity8" -->
802 <option value="8" selected>1/quarter (seasonal)</option>
804 <option value="8">1/quarter (seasonal)</option>
807 <!-- TMPL_IF name="periodicity9" -->
808 <option value="9" selected>2/years</option>
810 <option value="9">2/year</option>
812 <!-- TMPL_IF name="periodicity10" -->
813 <option value="10" selected>1/year</option>
815 <option value="10">1/year</option>
817 <!-- TMPL_IF name="periodicity11" -->
818 <option value="11" selected>1/2 years</option>
820 <option value="11">1/2 years</option>
823 Manual History :<input type="checkbox" name="manualhist" value="1" />
827 <td>Numbering Pattern:</td>
829 <select name="numbering_pattern" size="1" id="numberpattern" onchange="num_pattern()">
830 <option value="" selected>-- please choose --</option>
831 <!-- TMPL_IF name="numberpattern1" -->
832 <option value="1" selected>Number</option>
834 <option value="1">Number</option>
836 <!-- TMPL_IF name="numberpattern2" -->
837 <option value="2" selected>Volume, Number, Issue</option>
839 <option value="2">Volume, Number, Issue</option>
841 <!-- TMPL_IF name="numberpattern3" -->
842 <option value="3" selected>Volume, Number</option>
844 <option value="3">Volume, Number</option>
846 <!-- TMPL_IF name="numberpattern4" -->
847 <option value="4" selected>Volume, Issue</option>
849 <option value="4">Volume, Issue</option>
851 <!-- TMPL_IF name="numberpattern5" -->
852 <option value="5" selected>Number, Issue</option>
854 <option value="5">Number, Issue</option>
856 <!-- TMPL_IF name="numberpattern6" -->
857 <option value="6" selected>Seasonal only</option>
859 <option value="6">Seasonal only</option>
861 <!-- TMPL_IF name="numberpattern7" -->
862 <option value="7" selected>None of the above</option>
864 <option value="7">None of the above</option>
867 <div id="more_options"></div>
868 <div id="irregularity"></div>
872 <td>Begins On: (*)</td>
874 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="button1" style="cursor: pointer;" />
875 <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10 id="beginning_date" style="border-width: 0px;">
876 <!-- both scripts for calendar must follow the input field -->
877 <script type="text/javascript">
879 inputField : "beginning_date",
880 ifFormat : "%d/%m/%Y",
885 <script type="text/javascript">
887 inputField : "beginning_date",
888 ifFormat : "%d/%m/%Y",
889 button : "beginning_date",
896 <td>Subscription length</td>
898 <select name="subtype">
899 <!-- TMPL_LOOP NAME="subtype" -->
900 <!-- TMPL_IF NAME="selected" -->
901 <option value="<!-- TMPL_VAR NAME="name" -->" selected="SELECTED">
903 <option value="<!-- TMPL_VAR NAME="name" -->">
905 <!-- TMPL_VAR NAME="name" -->
909 <input type="text" name="sublength" value="<!-- TMPL_VAR name="sublength" -->" size="3" onkeypress="return check_input(event)"> (*) (enter amount in numerals)
913 <td>Numbering calculation</td>
914 <td>Numbering formula: <input type="text" name="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->"></td>
918 <div id="basetable" style="display: none;">
919 <table class="small">
929 <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->">
932 <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->">
935 <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->">
940 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->"></td>
941 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->"></td>
942 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->"></td>
945 <td>When more than</td>
946 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->"></td>
947 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->"></td>
948 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->"></td>
950 <!-- TMPL_IF name="mod" -->
952 <td>The loop is for instance</td>
953 <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->"></td>
954 <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->"></td>
955 <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->"></td>
960 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->"></td>
961 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->"></td>
962 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->"></td>
966 <!-- TMPL_IF name="mod" -->
972 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->"></td>
973 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->"></td>
974 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->"></td>
981 <!--TMPL_IF Name="history"-->
982 <div id="subscription_form_history">
986 <td>Starting date:</td>
987 <td><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->"> (the date of the 1st subscription)</td>
990 <td>Ending date:</td>
991 <td><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->">(if empty : subscription still active)</td>
994 <td>Recieved issues</td>
995 <td><textarea name="recievedlist" cols="60" rows="5"><!-- TMPL_VAR name="recievedlist" --></textarea></td>
998 <td>Missing issues</td>
999 <td><textarea name="missinglist" cols="60" rows="5"><!-- TMPL_VAR name="missinglist" --></textarea></td>
1002 <td>Opac's notes</td>
1003 <td><textarea name="opacnote" cols="60" rows="5"><!-- TMPL_VAR name="opacnote" --></textarea></td>
1006 <td>Librarian notes</td>
1007 <td><textarea name="librariannote" cols="60" rows="5"><!-- TMPL_VAR name="librariannote" --></textarea></td>
1012 <!-- TMPL_IF name="mod" -->
1013 <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w">
1015 <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w">
1021 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
1023 <script language="JavaScript" type="text/javascript">
1027 window.open('subscription-bib-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
1030 function FindAcqui(f)
1032 window.open('acqui-search.pl','FindASupplier','width=800,height=400,toolbar=no,scrollbars=yes');
1035 function Find_ISSN(f)
1037 window.open('issn-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
1042 if (f.startdate.value.length != 0 && f.sublength.value > 0) {
1043 if (f.irreg_check.value == 1) {
1044 document.f.submit();
1046 if(f.numbering_pattern.value == ''){
1047 alert(_("need to choose a numbering pattern"));
1049 alert(_("need to check for irregularity by clicking 'Irregularity?'"));
1053 alert(_('field marked with * are mandatory'));
1058 <!-- TMPL_IF name="mod" -->
1059 <script type="text/javascript">
1060 window.onload = modify_num_pattern();
1061 <!-- TMPL_IF name="hemisphere" -->
1062 window.onload = hemispheres(<!-- TMPL_VAR NAME="hemisphere" -->);
1066 <!-- TMPL_IF name="irregularity" -->
1067 <script type="text/javascript">
1068 window.onload = irregularity_check();
1069 window.onload = irregular_order();