1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Serials</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <!-- End of additions -->
8 <!-- Additions to enable Calendar system -->
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
12 <!-- End of additions -->
14 <script type="text/javascript">
16 function _(s) { return s } // dummy function for gettext
18 // the english words used in display purposes
19 var text = new Array(_('Number'),_('Volume'),_('Issue'),_('Month'),_('Week'),_('Starting with:'),_('Rollover at:'),_('Choose Hemisphere:'),_('Northern'),_('Southern'),
20 _('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'),_('Season'),_('Year'));
22 var is_hemisphere = 1;
24 // common pre defined number patterns
25 function num_pattern() {
26 var patternchoice = document.getElementById("numberpattern").value;
27 switch(patternchoice){
29 document.f.add1.value=1;
30 document.f.add2.value=1;
31 document.f.add3.value=1;
32 document.f.every1.value=12;
33 document.f.every2.value=1;
34 document.f.every3.value=1;
35 document.f.whenmorethan1.value=9999999;
36 document.f.whenmorethan2.value=12;
37 document.f.whenmorethan3.value=4;
38 document.f.setto1.value=0;
39 document.f.setto2.value=1;
40 document.f.setto3.value=1;
41 document.f.lastvalue1.value=1;
42 document.f.lastvalue2.value=1;
43 document.f.lastvalue3.value=1;
44 document.f.numberingmethod.value=_('Vol {X}, No {Y}, Issue {Z}');
45 moreoptions(text[1],text[0],text[2]);
46 display_table(0); // toggle info box on (1) or off (0)
49 document.f.add1.value=1;
50 document.f.add2.value=1;
51 document.f.add3.value='';
52 document.f.every1.value=12;
53 document.f.every2.value=1;
54 document.f.every3.value='';
55 document.f.whenmorethan1.value=9999999;
56 document.f.whenmorethan2.value=12;
57 document.f.whenmorethan3.value='';
58 document.f.setto1.value=0;
59 document.f.setto2.value=1;
60 document.f.setto3.value='';
61 document.f.lastvalue1.value=1;
62 document.f.lastvalue2.value=1;
63 document.f.lastvalue3.value='';
64 document.f.numberingmethod.value=_('Vol {X}, No {Y}');
65 moreoptions(text[1],text[0]);
69 document.f.add1.value=1;
70 document.f.add2.value=1;
71 document.f.add3.value='';
72 document.f.every1.value=12;
73 document.f.every2.value=1;
74 document.f.every3.value='';
75 document.f.whenmorethan1.value=9999999;
76 document.f.whenmorethan2.value=12;
77 document.f.whenmorethan3.value='';
78 document.f.setto1.value=0;
79 document.f.setto2.value=1;
80 document.f.setto3.value='';
81 document.f.lastvalue1.value=1;
82 document.f.lastvalue2.value=1;
83 document.f.lastvalue3.value='';
84 document.f.numberingmethod.value=_('Vol {X}, Issue {Y}');
85 moreoptions(text[1],text[2]);
89 document.f.add1.value=1;
90 document.f.add2.value=1;
91 document.f.add3.value='';
92 document.f.every1.value=12;
93 document.f.every2.value=1;
94 document.f.every3.value='';
95 document.f.whenmorethan1.value=9999999;
96 document.f.whenmorethan2.value=12;
97 document.f.whenmorethan3.value='';
98 document.f.setto1.value=0;
99 document.f.setto2.value=1;
100 document.f.setto3.value='';
101 document.f.lastvalue1.value=1;
102 document.f.lastvalue2.value=1;
103 document.f.lastvalue3.value='';
104 document.f.numberingmethod.value=_('No {X}, Issue {Y}');
105 moreoptions(text[0],text[2]);
110 var sYear = d.getFullYear();
111 document.f.add1.value=1;
112 document.f.add2.value='1';
113 document.f.add3.value='';
114 document.f.every1.value=4;
115 document.f.every2.value='1';
116 document.f.every3.value='';
117 document.f.whenmorethan1.value=9999999;
118 document.f.whenmorethan2.value='4';
119 document.f.whenmorethan3.value='';
120 document.f.setto1.value=0;
121 document.f.setto2.value='1';
122 document.f.setto3.value='';
123 document.f.lastvalue1.value=sYear;
124 document.f.lastvalue2.value='1';
125 document.f.lastvalue3.value='';
126 document.f.periodicity.value='8';
127 document.f.numberingmethod.value=_('{Y} {X}');
128 moreoptions_seasons(text[15],sYear);
134 document.getElementById("more_options").innerHTML = '';
135 document.f.irreg_check.value=1;
139 var sYear = d.getFullYear();
140 document.f.add1.value=1;
141 document.f.add2.value=1;
142 document.f.add3.value='';
143 document.f.every1.value=12;
144 document.f.every2.value=1;
145 document.f.every3.value='';
146 document.f.whenmorethan1.value=9999999;
147 document.f.whenmorethan2.value=12;
148 document.f.whenmorethan3.value='';
149 document.f.setto1.value=0;
150 document.f.setto2.value=1;
151 document.f.setto3.value='';
152 document.f.lastvalue1.value=sYear;
153 document.f.lastvalue2.value='1';
154 document.f.lastvalue3.value='';
155 document.f.periodicity.value=1;
156 document.f.numberingmethod.value=_('{X}/{Y}');
160 document.f.add1.value=1;
161 document.f.add2.value='';
162 document.f.add3.value='';
163 document.f.every1.value=1;
164 document.f.every2.value='';
165 document.f.every3.value='';
166 document.f.whenmorethan1.value=9999999;
167 document.f.whenmorethan2.value='';
168 document.f.whenmorethan3.value='';
169 document.f.setto1.value=0;
170 document.f.setto2.value='';
171 document.f.setto3.value='';
172 document.f.lastvalue1.value=1;
173 document.f.lastvalue2.value='';
174 document.f.lastvalue3.value='';
175 document.f.numberingmethod.value='{X}';
176 moreoptions_daily_check(text[0]);
177 document.f.irreg_check.value=1;
183 function display_table(n) {
185 document.getElementById("basetable").style.display = 'block';
187 document.getElementById("basetable").style.display = 'none';
191 function modify_num_pattern() {
192 document.getElementById("numberpattern").value = '<!-- TMPL_VAR NAME="numberpattern" -->';
195 document.f.add1.value='<!-- TMPL_VAR NAME="add1" -->';
196 document.f.add2.value='<!-- TMPL_VAR NAME="add2" -->';
197 document.f.add3.value='<!-- TMPL_VAR NAME="add3" -->';
198 document.f.every1.value='<!-- TMPL_VAR NAME="every1" -->';
199 document.f.every2.value='<!-- TMPL_VAR NAME="every2" -->';
200 document.f.every3.value='<!-- TMPL_VAR NAME="every3" -->';
201 document.f.whenmorethan1.value='<!-- TMPL_VAR NAME="whenmorethan1" -->';
202 document.f.whenmorethan2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
203 document.f.whenmorethan3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
204 document.f.setto1.value='<!-- TMPL_VAR NAME="setto1" -->';
205 document.f.setto2.value='<!-- TMPL_VAR NAME="setto2" -->';
206 document.f.setto3.value='<!-- TMPL_VAR NAME="setto3" -->';
207 document.f.lastvalue1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
208 document.f.lastvalue2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
209 document.f.lastvalue3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
210 document.f.numberingmethod.value='<!-- TMPL_VAR NAME="numberingmethod" -->';
214 <!-- TMPL_IF NAME="add2" -->
215 if(<!-- TMPL_VAR NAME="add2" --> > 0){
219 <!-- TMPL_IF NAME="add3" -->
220 if(<!-- TMPL_VAR NAME="add3" --> > 0){
225 document.f.lastvaluetemp1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
227 document.f.lastvaluetemp2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
228 document.f.whenmorethantemp2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
231 document.f.lastvaluetemp3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
232 document.f.whenmorethantemp3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
236 // a pre check with more options to see if 'number' and '1/day' are chosen
237 function moreoptions_daily_check(x) {
238 var periodicity = document.f.periodicity.value;
240 if(periodicity == 1){
241 document.getElementById("irregularity").innerHTML = '';
242 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
243 errortext =_("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
244 for(var j=0;j<daynames.length;j++){
245 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
247 var error = errortext;
249 document.getElementById("irregularity").innerHTML = error;
251 document.getElementById("irregularity").innerHTML = '';
252 document.getElementById("more_options").innerHTML = '';
257 // to dispaly the more options section
258 function moreoptions(x,y,z){
259 document.getElementById("irregularity").innerHTML = '';
260 document.getElementById("more_options").innerHTML = '';
262 // alert("X: "+x+"Y: "+y+"Z: "+z);
264 textbox +="<table>\n<tr><td> <\/td><td>"+x+"<\/td>";
266 textbox +="<td>"+y+"<\/td>";
268 textbox +="<td>"+z+"<\/td>";
271 textbox +="<\/tr>\n";
272 textbox +="<tr><td>"+text[5]+"<\/td><td><input type='text' name='lastvaluetemp1' size='4' onkeyup='moreoptionsupdate(\"lastvalue1\")'><\/td>\n";
274 textbox +="<td><input type='text' name='lastvaluetemp2' size='4' onkeyup='moreoptionsupdate(\"lastvalue2\")'><\/td>\n";
276 textbox +="<td><input type='text' name='lastvaluetemp3' size='4' onkeyup='moreoptionsupdate(\"lastvalue3\")'><\/td>\n";
279 textbox +="<\/tr>\n";
281 textbox +="<tr><td>"+text[6]+"<\/td>";
282 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
283 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
285 textbox +="<td><input type='text' name='whenmorethantemp3' size='4' onkeyup='moreoptionsupdate(\"whenmorethan3\",1)'><\/td>\n";
289 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>";
291 textbox +="<\/table>\n";
293 document.getElementById("more_options").innerHTML = textbox;
296 function hemispheres(chosen){
297 var selbox = document.getElementById("season1");
299 var selboxselected = selbox.options[selbox.selectedIndex].value;
300 selbox.options.length = 0;
303 selbox.options[selbox.options.length] = new Option(text[11],'1');
304 selbox.options[selbox.options.length] = new Option(text[12],'2');
305 selbox.options[selbox.options.length] = new Option(text[13],'3');
306 selbox.options[selbox.options.length] = new Option(text[14],'4');
308 selbox.options[selboxselected-1].selected = true;
312 selbox.options[selbox.options.length] = new Option(text[13],'1');
313 selbox.options[selbox.options.length] = new Option(text[10],'2');
314 selbox.options[selbox.options.length] = new Option(text[11],'3');
315 selbox.options[selbox.options.length] = new Option(text[12],'4');
317 selbox.options[selboxselected-1].selected = true;
322 // to dispaly the more options section for seasons
323 function moreoptions_seasons(x,y){
324 document.getElementById("irregularity").innerHTML = '';
325 document.getElementById("more_options").innerHTML = '';
327 // alert("X: "+x+"Year: "+y);
329 var hemi_select = parseInt('<!-- TMPL_VAR NAME="hemisphere" -->');
330 textbox +="<table>\n<tr><td>"+ text[7] +"<\/td><td colspan='2'><select name='hemisphere' onchange='hemispheres(this.options[this.selectedIndex].value)'>";
331 for(var i = 1; i <= 2; i++){
332 textbox +="<option value='"+i+"'";
333 if(i == hemi_select){
334 textbox += " selected "
336 textbox +=">"+text[i+7]+"<\/option>";
338 textbox +="<\/select><\/td><\/tr>\n";
339 textbox +="<tr><td> <\/td><td>"+x+"<\/td>";
340 textbox +="<td>"+text[16]+"<\/td>";
341 textbox +="<\/tr>\n";
342 textbox +="<tr><td>"+text[5]+"<\/td><td><select name='lastvaluetemp2' id='season1' onchange='moreoptionsupdate(\"lastvalue2\")'>";
343 for(var j = 1; j <= 4; j++){
344 textbox +="<option value='"+j+"'>"+text[j+10]+"<\/option>";
346 textbox +="<\/select><\/td><td><select name='lastvaluetemp1' onchange='moreoptionsupdate(\"lastvalue1\")'>";
347 for(var k = parseInt(y); k <= parseInt(y)+15; k++){
348 textbox +="<option value='"+k+"'>"+k+"<\/option>";
350 textbox +="<\/select><\/td><\/tr>\n";
351 textbox +="<tr><td>"+text[6]+"<\/td>";
352 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
353 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
354 textbox +="<\/tr><\/table>\n";
356 document.getElementById("more_options").innerHTML = textbox;
359 function irregularity_check(){
360 document.f.irreg_check.value = 1; // Irregularity button now pushed
361 var periodicity = document.f.periodicity.value;
362 var rollover = document.f.issuesexpected1.value;
363 if(document.f.whenmorethantemp2){
364 rollover = document.f.whenmorethantemp2.value;
366 if(document.f.whenmorethantemp3){
367 rollover = document.f.whenmorethantemp3.value;
372 var errortext = _("<b>Warning irregularity detected<\/b><br \/>");
375 if(rollover < 730) expected =730;
382 if(rollover < 365) expected =365;
389 if(rollover < 156) expected =156;
396 if(rollover < 52) expected =52;
403 if(rollover < 26) expected =26;
410 if(rollover < 17) expected =17;
417 if(rollover < 12) expected =12;
424 if(rollover < 6) expected =6;
431 if(rollover < 4) expected =4;
438 if(rollover < 4) expected =4;
445 if(rollover < 2) expected =2;
452 if(rollover < 1) expected =1;
462 if(expected == 365 || expected==730){
463 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
464 errortext += _("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
465 for(var j=0;j<daynames.length;j++){
466 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
470 errortext +=expected+_(" issues expected ")+rollover+_(" were entered. <br \/>Please indicate which date(s) an issue is not expected<br \/>");
472 for(var i=rollover;i<expected;i++){
473 errortext +="<select name='irregular' id='irregular"+count+"' onchange='display_example(expected)'>\n";
474 errortext +=irregular_options(periodicity);
475 errortext +="<\/select>\n";
482 errortext +=expectedover+_(" issues expected ")+rollover+_(" were entered.<br \/> You seem to have indicated more issues per year than expected.");
485 if(error.length ==0){
486 error=_('No irregularities noticed');
488 display_example(expected);
489 document.getElementById("irregularity").innerHTML = error;
492 function irregular_options(periodicity){
495 <!-- TMPL_IF NAME="weekarrayjs" -->
496 var weeks = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
498 var months = new Array(_('January'),_('February'),_('March'),_('April'),_('May'),_('June'),_('July'),_('August'),_('September'),_('October'),_('November'),_('December'));
499 var seasons = new Array(_('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'));
501 if(periodicity == 1) {
506 if(periodicity == 2 || periodicity == 3 || periodicity == 4) {
508 <!-- TMPL_IF NAME="weekarrayjs" -->
510 count = <!-- TMPL_VAR NAME="weekno" -->;
516 if(periodicity == 5 || periodicity == 6 || periodicity == 7 || periodicity == 8 || periodicity == 9) {
517 if(periodicity == 8) {
518 is_season = 1; // setting up from edit page
523 if(is_hemisphere == 2){
534 for(var j=1;j<=expected;j++){
537 count = count-expected;
539 if(is_season && is_hemisphere == 1){
540 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j]+"<\/option>\n";
541 // alert("value: "+((count*3)-2)+" title: "+titles[j]);
542 } else if(is_season && is_hemisphere == 2){
543 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j-1]+"<\/option>\n";
544 // alert("value: "+((count*3)-2)+" title: "+titles[j-1]);
546 errortext +="<option value='"+count+"'>"+titles[j-1]+"<\/option>\n";
550 errortext +="<option value='"+j+"'>"+titles+" "+j+"<\/option>\n";
556 function irregular_order(){
557 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
558 var periodicity = document.f.periodicity.value;
559 var irregarray = irregular.split(',');
561 for(j=0;j<irregarray.length;j++){
562 document.getElementById("irregular"+irregarray[j]).checked = true;
565 for(i=0;i<irregarray.length;i++){
566 document.getElementById("irregular"+i).value = irregarray[i];
571 function display_example(expected){
572 var startfrom1 = parseInt(document.f.lastvalue1.value);
573 var startfrom2 = parseInt(document.f.lastvalue2.value);
574 var startfrom3 = parseInt(document.f.lastvalue3.value);
575 var every1 = parseInt(document.f.every1.value);
576 var every2 = parseInt(document.f.every2.value);
577 var every3 = parseInt(document.f.every3.value);
578 var numberpattern = document.f.numberingmethod.value;
579 var whenmorethan2 = parseInt(document.f.whenmorethan2.value);
580 var whenmorethan3 = parseInt(document.f.whenmorethan3.value);
581 var setto2 = parseInt(document.f.setto2.value);
582 var setto3 = parseInt(document.f.setto3.value);
583 var displaytext = _('Based on the information<br \/>entered the Numbering Pattern<br \/>will look like this<br \/>\n');
585 var count=startfrom3-1;
586 var count2=startfrom2;
587 for(var i=0;i<12;i++){
588 if(count>=whenmorethan3){
590 if(count2>=whenmorethan2){
599 displaytext += numberpattern.replace(/{Z}/,count)+'\n';
600 displaytext = displaytext.replace(/{Y}/,count2)+'<br \/>\n';
601 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
605 if(startfrom2>0 && !startfrom3){
606 var count=startfrom2-1;
607 for(var i=0;i<12;i++){
608 if(count>=whenmorethan2){
616 if(is_hemisphere == 2){
618 displaytext += numberpattern.replace(/{Y}/,text[count+12])+'\n';
620 displaytext += numberpattern.replace(/{Y}/,text[count+8])+'\n';
623 displaytext += numberpattern.replace(/{Y}/,text[count+10])+'\n';
626 displaytext += numberpattern.replace(/{Y}/,count)+'\n';
628 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
631 if(startfrom1>0 && !startfrom2 && !startfrom3){
632 var offset=eval(document.f.issuesexpected1.value);
636 for(var i=startfrom1;i<(startfrom1+offset);i+=every1){
637 displaytext += numberpattern.replace(/{X}/,i)+'<br \/>\n';
640 displaytext = "<div style='padding: 5px; background-color: #CCCCCC'>"+displaytext+"<\/div>";
641 document.getElementById("displayexample").innerHTML = displaytext;
644 function isArray(obj) {
645 if (obj.constructor.toString().indexOf("Array") == -1)
651 function moreoptionsupdate(fieldnames,rollover){
652 fieldname = fieldnames;
653 fld = fieldname.length;
655 fieldnametempnumber = fieldname.substr(fld);
656 //alert(fieldnametempnumber);
657 fieldnametemp = fieldname.slice(0,-1)+"temp"+fieldnametempnumber;
658 // alert(fieldnametemp);
659 eval("document.f."+fieldname+".value = document.f."+fieldnametemp+".value");
660 // alert (fieldname+" : "+eval("document.f."+fieldname+".value") +' '+fieldnametemp+' : ' +eval("document.f."+fieldnametemp+".value"));
662 eval("document.f.every"+(fieldnametempnumber-1)+".value = document.f."+fieldnametemp+".value");
667 function check_input(e){
668 var unicode=e.charCode? e.charCode : e.keyCode
669 if (unicode!=8 && unicode !=46 && unicode!=9 && unicode !=13){ // if key isn't backspace or delete
670 if (unicode<48||unicode>57) { // if not a number
671 alert(_("Needs to be entered in digit form -eg 10"));
672 return false // disable key press
677 function Create_biblio(f)
679 window.open('/cgi-bin/koha/cataloguing/addbiblio.pl?mode=popup','FindABibIndex','width=1024,height=768,toolbar=no,scrollbars=yes');
684 window.open('subscription-bib-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
687 function FindAcqui(f)
689 window.open('acqui-search.pl','FindASupplier','width=800,height=400,toolbar=no,scrollbars=yes');
692 function Find_ISSN(f)
694 window.open('issn-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
699 if (f.startdate.value.length != 0 && f.sublength.value > 0) {
700 if (f.irreg_check.value == 1) {
703 if(f.numbering_pattern.value == ''){
704 alert(_("need to choose a numbering pattern"));
706 alert(_("need to check for irregularity by clicking 'Irregularity?'"));
710 alert(_('field marked with * are mandatory'));
714 <!-- TMPL_IF name="mod" -->
715 window.onload = modify_num_pattern();
716 <!-- TMPL_IF name="hemisphere" -->
717 window.onload = hemispheres(<!-- TMPL_VAR NAME="hemisphere" -->);
720 <!-- TMPL_IF name="irregularity" -->
721 window.onload = irregularity_check();
722 window.onload = irregular_order();
728 <!-- TMPL_INCLUDE NAME="header.inc" -->
729 <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
732 <div id="doc3" class="yui-t2">
736 <div class="yui-b"><div class="yui-g">
740 <!-- TMPL_IF name="mod" -->
741 <h1>Modify a subscription</h1>
742 <form method="post" name="f">
743 <input type="hidden" name="op" value="modsubscription" />
744 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
746 <h1>Add a subscription (Serial Holdings Record)</h1>
747 <form method="post" action="/cgi-bin/koha/serials/subscription-add.pl" name="f">
748 <input type="hidden" name="op" value="addsubscription" />
750 <input type="hidden" name="user" value="<!-- TMPL_VAR name="loggedinusername" -->" />
751 <input type="hidden" name="irreg_check" value="0" />
752 <input type="hidden" name="issuesexpected1" value="0" />
754 <h2>Subscription information for subscription #<!--TMPL_VAR name="subscriptionid"--></h2>
758 <td><!-- TMPL_VAR name="loggedinusername" --></td>
761 <td><label>Supplier:</label></td>
762 <td><input type="text" name="aqbooksellerid" value="<!-- TMPL_VAR name="aqbooksellerid" -->" size="8" /> (<input type="text" name="aqbooksellername" value="<!-- TMPL_VAR name="aqbooksellername" -->" disabled="disabled" readonly="readonly" />) <a href="#" onclick="FindAcqui(f)">Search for a Supplier</a></td>
765 <td><label>Biblio</label></td>
767 <input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size="8" />
768 (<input type="text" name="title" value="<!-- TMPL_VAR name="bibliotitle" -->" disabled="disabled" readonly="readonly" />)
769 <a href="#" onclick="Plugin(f)">Search for Biblio</a> <!--TMPL_UNLESS Name="mod"--> |
770 <a href="#" onclick="Create_biblio(f)">Create Biblio</a><!--/TMPL_UNLESS-->
774 <td><label>Call Number</label></td>
775 <td><input type="text" name="callnumber" value="<!-- TMPL_VAR name="callnumber" -->" size="20" /></td>
780 <select name="branchcode">
781 <option value="">Any branch</option>
782 <!-- TMPL_LOOP name="branchloop" --><!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
784 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
787 </select> (select a branch)
791 <td><label>Notes</label></td>
792 <td><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></td>
795 <td><label>Management Notes</label></td>
796 <td><textarea name="internalnotes" cols="30" rows="2"><!-- TMPL_VAR name="internalnotes" --></textarea></td>
799 <td>Patron alert with </td>
801 <select name="letter">
802 <option value="">un-activated</option>
803 <!-- TMPL_LOOP name="letterloop" -->
804 <!-- TMPL_IF name="selected" -->
805 <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="lettername" --></option>
807 <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="lettername" --></option>
810 </select> (select a letter & patrons will be able to "follow" this subscription and recieve a mail on every new issue)
814 <td><b>Warning:</b></td>
817 <li>Remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
818 <li>You also must have selected a supplier if you want to ask for late issues</li>
823 <div id="subscription_form_planning">
827 <td>First Issue ETA:</td>
829 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="button2" style="cursor: pointer;" alt="" />
830 <input type="text" name="firstacquidate" value="<!-- TMPL_VAR name="startdate" -->" size="13" maxlength="10" id="acqui_date" />
831 <!-- both scripts for calendar must follow the input field -->
832 <script type="text/javascript">
834 inputField:"acqui_date",
835 ifFormat : "%d/%m/%Y",
840 <script type="text/javascript">
842 inputField : "acqui_date",
843 ifFormat : "%d/%m/%Y",
844 button : "acqui_date",
850 <div id="displayexample"></div>
854 <td>Frequency: (*)</td>
856 <select name="periodicity" size="1" onchange="javascript:document.getElementsByName('manualhist')[0].checked=(this.value==1);num_pattern;">
857 <option value="" selected="selected">-- please choose --</option>
858 <!-- TMPL_IF name="periodicity16" -->
859 <option value="16" selected="selected">Without Periodicity</option>
861 <option value="16">Without Periodicity</option>
863 <!-- TMPL_IF name="periodicity48" -->
864 <option value="48" selected="selected">Unknown</option>
866 <option value="48">Unknown</option>
868 <!-- TMPL_IF name="periodicity32" -->
869 <option value="32" selected="selected">Irregular</option>
871 <option value="32">Irregular</option>
874 <!-- TMPL_IF name="periodicity12" -->
875 <option value="12" selected="selected">2/day</option>
877 <option value="12">2/day</option>
879 <!-- TMPL_IF name="periodicity1" -->
880 <option value="1" selected="selected">1/day</option>
882 <option value="1">1/day</option>
884 <!-- TMPL_IF name="periodicity13" -->
885 <option value="13" selected="selected">3/week</option>
887 <option value="13">3/week</option>
889 <!-- TMPL_IF name="periodicity2" -->
890 <option value="2" selected="selected">1/week</option>
892 <option value="2">1/week</option>
894 <!-- TMPL_IF name="periodicity3" -->
895 <option value="3" selected="selected">1/2 weeks (2/month)</option>
897 <option value="3">1/2 weeks (2/months)</option>
899 <!-- TMPL_IF name="periodicity4" -->
900 <option value="4" selected="selected">1/3 weeks</option>
902 <option value="4">1/3 weeks</option>
904 <!-- TMPL_IF name="periodicity5" -->
905 <option value="5" selected="selected">1/month</option>
907 <option value="5">1/month</option>
909 <!-- TMPL_IF name="periodicity6" -->
910 <option value="6" selected="selected">1/2 months (6/year)</option>
912 <option value="6">1/2 months (6/year)</option>
914 <!-- TMPL_IF name="periodicity7" -->
915 <option value="7" selected="selected">1/3 months (1/quarter)</option>
917 <option value="7">1/3 months (1/quarter)</option>
919 <!-- periodicity8 is 1/quarter, exactly like periodicity7 but will use it for seasonal option -->
920 <!-- TMPL_IF name="periodicity8" -->
921 <option value="8" selected="selected">1/quarter (seasonal)</option>
923 <option value="8">1/quarter (seasonal)</option>
926 <!-- TMPL_IF name="periodicity9" -->
927 <option value="9" selected="selected">2/years</option>
929 <option value="9">2/year</option>
931 <!-- TMPL_IF name="periodicity10" -->
932 <option value="10" selected="selected">1/year</option>
934 <option value="10">1/year</option>
936 <!-- TMPL_IF name="periodicity11" -->
937 <option value="11" selected="selected">1/2 years</option>
939 <option value="11">1/2 years</option>
942 Manual History :<input type="checkbox" name="manualhist" value="1" />
946 <td>Numbering Pattern:</td>
948 <select name="numbering_pattern" size="1" id="numberpattern" onchange="num_pattern()">
949 <option value="" selected="selected">-- please choose --</option>
950 <!-- TMPL_IF name="numberpattern1" -->
951 <option value="1" selected="selected">Number</option>
953 <option value="1">Number</option>
955 <!-- TMPL_IF name="numberpattern2" -->
956 <option value="2" selected="selected">Volume, Number, Issue</option>
958 <option value="2">Volume, Number, Issue</option>
960 <!-- TMPL_IF name="numberpattern3" -->
961 <option value="3" selected="selected">Volume, Number</option>
963 <option value="3">Volume, Number</option>
965 <!-- TMPL_IF name="numberpattern4" -->
966 <option value="4" selected="selected">Volume, Issue</option>
968 <option value="4">Volume, Issue</option>
970 <!-- TMPL_IF name="numberpattern5" -->
971 <option value="5" selected="selected">Number, Issue</option>
973 <option value="5">Number, Issue</option>
975 <!-- TMPL_IF name="numberpattern6" -->
976 <option value="6" selected="selected">Seasonal only</option>
978 <option value="6">Seasonal only</option>
980 <!-- TMPL_IF name="numberpattern8" -->
981 <option value="8" selected="selected">Year/Number</option>
983 <option value="8">Year/Number</option>
985 <!-- TMPL_IF name="numberpattern7" -->
986 <option value="7" selected="selected">None of the above</option>
988 <option value="7">None of the above</option>
991 <div id="more_options"></div>
992 <div id="irregularity"></div>
996 <td>Begins On: (*)</td>
998 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="button1" style="cursor: pointer;" alt="" />
999 <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size="13" maxlength="10" id="beginning_date" />
1000 <!-- both scripts for calendar must follow the input field -->
1001 <script type="text/javascript">
1003 inputField : "beginning_date",
1004 ifFormat : "%d/%m/%Y",
1009 <script type="text/javascript">
1011 inputField : "beginning_date",
1012 ifFormat : "%d/%m/%Y",
1013 button : "beginning_date",
1020 <td>Subscription length</td>
1022 <select name="subtype">
1023 <!-- TMPL_LOOP NAME="subtype" -->
1024 <!-- TMPL_IF NAME="selected" -->
1025 <option value="<!-- TMPL_VAR NAME="name" -->" selected="selected">
1027 <option value="<!-- TMPL_VAR NAME="name" -->">
1029 <!-- TMPL_VAR NAME="name" -->
1033 <input type="text" name="sublength" value="<!-- TMPL_VAR name="sublength" -->" size="3" onkeypress="return check_input(event)" /> (*) (enter amount in numerals)
1037 <td>Numbering calculation</td>
1038 <td>Numbering formula: <input type="text" name="numberingmethod" id="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->" /></td>
1042 <div id="basetable" style="display: none;">
1043 <table class="small">
1053 <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->" />
1056 <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->" />
1059 <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->" />
1064 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->" /></td>
1065 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->" /></td>
1066 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->" /></td>
1069 <td>When more than</td>
1070 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->" /></td>
1071 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->" /></td>
1072 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->" /></td>
1074 <!-- TMPL_IF name="mod" -->
1076 <td>The loop is for instance</td>
1077 <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->" /></td>
1078 <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->" /></td>
1079 <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->" /></td>
1083 <td>Set back to</td>
1084 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->" /></td>
1085 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->" /></td>
1086 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->" /></td>
1090 <!-- TMPL_IF name="mod" -->
1096 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->" /></td>
1097 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->" /></td>
1098 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->" /></td>
1105 <!--TMPL_IF Name="history"-->
1106 <div id="subscription_form_history">
1110 <td>Starting date:</td>
1111 <td><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->" /> (the date of the 1st subscription)</td>
1114 <td>Ending date:</td>
1115 <td><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->" />(if empty : subscription still active)</td>
1118 <td>Recieved issues</td>
1119 <td><textarea name="recievedlist" cols="60" rows="5"><!-- TMPL_VAR name="recievedlist" --></textarea></td>
1122 <td>Missing issues</td>
1123 <td><textarea name="missinglist" cols="60" rows="5"><!-- TMPL_VAR name="missinglist" --></textarea></td>
1126 <td>Opac's notes</td>
1127 <td><textarea name="opacnote" cols="60" rows="5"><!-- TMPL_VAR name="opacnote" --></textarea></td>
1130 <td>Librarian notes</td>
1131 <td><textarea name="librariannote" cols="60" rows="5"><!-- TMPL_VAR name="librariannote" --></textarea></td>
1136 <!-- TMPL_IF name="mod" -->
1137 <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w" />
1139 <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w" />
1147 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
1148 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->