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">
21 // the english words used in display purposes
22 var text = new Array(_('Number'),_('Volume'),_('Issue'),_('Month'),_('Week'),_('Starting with:'),_('Rollover at:'),_('Choose Hemisphere:'),_('Northern'),_('Southern'),
23 _('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'),_('Season'),_('Year'));
25 var is_hemisphere = 1;
27 // common pre defined number patterns
28 function num_pattern() {
29 var patternchoice = document.getElementById("numberpattern").value;
30 switch(patternchoice){
32 document.f.add1.value=1;
33 document.f.add2.value=1;
34 document.f.add3.value=1;
35 document.f.every1.value=12;
36 document.f.every2.value=1;
37 document.f.every3.value=1;
38 document.f.whenmorethan1.value=9999999;
39 document.f.whenmorethan2.value=12;
40 document.f.whenmorethan3.value=4;
41 document.f.setto1.value=0;
42 document.f.setto2.value=1;
43 document.f.setto3.value=1;
44 document.f.lastvalue1.value=1;
45 document.f.lastvalue2.value=1;
46 document.f.lastvalue3.value=1;
47 document.f.numberingmethod.value=_('Vol {X}, No {Y}, Issue {Z}');
48 moreoptions(text[1],text[0],text[2]);
49 display_table(0); // toggle info box on (1) or off (0)
52 document.f.add1.value=1;
53 document.f.add2.value=1;
54 document.f.add3.value='';
55 document.f.every1.value=12;
56 document.f.every2.value=1;
57 document.f.every3.value='';
58 document.f.whenmorethan1.value=9999999;
59 document.f.whenmorethan2.value=12;
60 document.f.whenmorethan3.value='';
61 document.f.setto1.value=0;
62 document.f.setto2.value=1;
63 document.f.setto3.value='';
64 document.f.lastvalue1.value=1;
65 document.f.lastvalue2.value=1;
66 document.f.lastvalue3.value='';
67 document.f.numberingmethod.value=_('Vol {X}, No {Y}');
68 moreoptions(text[1],text[0]);
72 document.f.add1.value=1;
73 document.f.add2.value=1;
74 document.f.add3.value='';
75 document.f.every1.value=12;
76 document.f.every2.value=1;
77 document.f.every3.value='';
78 document.f.whenmorethan1.value=9999999;
79 document.f.whenmorethan2.value=12;
80 document.f.whenmorethan3.value='';
81 document.f.setto1.value=0;
82 document.f.setto2.value=1;
83 document.f.setto3.value='';
84 document.f.lastvalue1.value=1;
85 document.f.lastvalue2.value=1;
86 document.f.lastvalue3.value='';
87 document.f.numberingmethod.value=_('Vol {X}, Issue {Y}');
88 moreoptions(text[1],text[2]);
92 document.f.add1.value=1;
93 document.f.add2.value=1;
94 document.f.add3.value='';
95 document.f.every1.value=12;
96 document.f.every2.value=1;
97 document.f.every3.value='';
98 document.f.whenmorethan1.value=9999999;
99 document.f.whenmorethan2.value=12;
100 document.f.whenmorethan3.value='';
101 document.f.setto1.value=0;
102 document.f.setto2.value=1;
103 document.f.setto3.value='';
104 document.f.lastvalue1.value=1;
105 document.f.lastvalue2.value=1;
106 document.f.lastvalue3.value='';
107 document.f.numberingmethod.value=_('No {X}, Issue {Y}');
108 moreoptions(text[0],text[2]);
113 var sYear = d.getFullYear();
114 document.f.add1.value=1;
115 document.f.add2.value='1';
116 document.f.add3.value='';
117 document.f.every1.value=4;
118 document.f.every2.value='1';
119 document.f.every3.value='';
120 document.f.whenmorethan1.value=9999999;
121 document.f.whenmorethan2.value='4';
122 document.f.whenmorethan3.value='';
123 document.f.setto1.value=0;
124 document.f.setto2.value='1';
125 document.f.setto3.value='';
126 document.f.lastvalue1.value=sYear;
127 document.f.lastvalue2.value='1';
128 document.f.lastvalue3.value='';
129 document.f.periodicity.value='8';
130 document.f.numberingmethod.value=_('{Y} {X}');
131 moreoptions_seasons(text[15],sYear);
137 document.getElementById("more_options").innerHTML = '';
138 document.f.irreg_check.value=1;
142 var sYear = d.getFullYear();
143 document.f.add1.value=1;
144 document.f.add2.value=1;
145 document.f.add3.value='';
146 document.f.every1.value=12;
147 document.f.every2.value=1;
148 document.f.every3.value='';
149 document.f.whenmorethan1.value=9999999;
150 document.f.whenmorethan2.value=12;
151 document.f.whenmorethan3.value='';
152 document.f.setto1.value=0;
153 document.f.setto2.value=1;
154 document.f.setto3.value='';
155 document.f.lastvalue1.value=sYear;
156 document.f.lastvalue2.value='1';
157 document.f.lastvalue3.value='';
158 document.f.periodicity.value=1;
159 document.f.numberingmethod.value=_('{X}/{Y}');
163 document.f.add1.value=1;
164 document.f.add2.value='';
165 document.f.add3.value='';
166 document.f.every1.value=1;
167 document.f.every2.value='';
168 document.f.every3.value='';
169 document.f.whenmorethan1.value=9999999;
170 document.f.whenmorethan2.value='';
171 document.f.whenmorethan3.value='';
172 document.f.setto1.value=0;
173 document.f.setto2.value='';
174 document.f.setto3.value='';
175 document.f.lastvalue1.value=1;
176 document.f.lastvalue2.value='';
177 document.f.lastvalue3.value='';
178 document.f.numberingmethod.value='{X}';
179 moreoptions_daily_check(text[0]);
180 document.f.irreg_check.value=1;
186 function display_table(n) {
188 document.getElementById("basetable").style.display = 'block';
190 document.getElementById("basetable").style.display = 'none';
194 function modify_num_pattern() {
195 document.getElementById("numberpattern").value = '<!-- TMPL_VAR NAME="numberpattern" -->';
198 document.f.add1.value='<!-- TMPL_VAR NAME="add1" -->';
199 document.f.add2.value='<!-- TMPL_VAR NAME="add2" -->';
200 document.f.add3.value='<!-- TMPL_VAR NAME="add3" -->';
201 document.f.every1.value='<!-- TMPL_VAR NAME="every1" -->';
202 document.f.every2.value='<!-- TMPL_VAR NAME="every2" -->';
203 document.f.every3.value='<!-- TMPL_VAR NAME="every3" -->';
204 document.f.whenmorethan1.value='<!-- TMPL_VAR NAME="whenmorethan1" -->';
205 document.f.whenmorethan2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
206 document.f.whenmorethan3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
207 document.f.setto1.value='<!-- TMPL_VAR NAME="setto1" -->';
208 document.f.setto2.value='<!-- TMPL_VAR NAME="setto2" -->';
209 document.f.setto3.value='<!-- TMPL_VAR NAME="setto3" -->';
210 document.f.lastvalue1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
211 document.f.lastvalue2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
212 document.f.lastvalue3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
213 document.f.numberingmethod.value='<!-- TMPL_VAR NAME="numberingmethod" -->';
217 <!-- TMPL_IF NAME="add2" -->
218 if(<!-- TMPL_VAR NAME="add2" --> > 0){
222 <!-- TMPL_IF NAME="add3" -->
223 if(<!-- TMPL_VAR NAME="add3" --> > 0){
228 document.f.lastvaluetemp1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
230 document.f.lastvaluetemp2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
231 document.f.whenmorethantemp2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
234 document.f.lastvaluetemp3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
235 document.f.whenmorethantemp3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
239 // a pre check with more options to see if 'number' and '1/day' are chosen
240 function moreoptions_daily_check(x) {
241 var periodicity = document.f.periodicity.value;
243 if(periodicity == 1){
244 document.getElementById("irregularity").innerHTML = '';
245 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
246 errortext =_("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
247 for(var j=0;j<daynames.length;j++){
248 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
250 var error = errortext;
252 document.getElementById("irregularity").innerHTML = error;
254 document.getElementById("irregularity").innerHTML = '';
255 document.getElementById("more_options").innerHTML = '';
260 // to dispaly the more options section
261 function moreoptions(x,y,z){
262 document.getElementById("irregularity").innerHTML = '';
263 document.getElementById("more_options").innerHTML = '';
265 // alert("X: "+x+"Y: "+y+"Z: "+z);
267 textbox +="<table>\n<tr><td> <\/td><td>"+x+"<\/td>";
269 textbox +="<td>"+y+"<\/td>";
271 textbox +="<td>"+z+"<\/td>";
274 textbox +="<\/tr>\n";
275 textbox +="<tr><td>"+text[5]+"<\/td><td><input type='text' name='lastvaluetemp1' size='4' onkeyup='moreoptionsupdate(\"lastvalue1\")'><\/td>\n";
277 textbox +="<td><input type='text' name='lastvaluetemp2' size='4' onkeyup='moreoptionsupdate(\"lastvalue2\")'><\/td>\n";
279 textbox +="<td><input type='text' name='lastvaluetemp3' size='4' onkeyup='moreoptionsupdate(\"lastvalue3\")'><\/td>\n";
282 textbox +="<\/tr>\n";
284 textbox +="<tr><td>"+text[6]+"<\/td>";
285 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
286 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
288 textbox +="<td><input type='text' name='whenmorethantemp3' size='4' onkeyup='moreoptionsupdate(\"whenmorethan3\",1)'><\/td>\n";
292 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>";
294 textbox +="<\/table>\n";
296 document.getElementById("more_options").innerHTML = textbox;
299 function hemispheres(chosen){
300 var selbox = document.getElementById("season1");
302 var selboxselected = selbox.options[selbox.selectedIndex].value;
303 selbox.options.length = 0;
306 selbox.options[selbox.options.length] = new Option(text[11],'1');
307 selbox.options[selbox.options.length] = new Option(text[12],'2');
308 selbox.options[selbox.options.length] = new Option(text[13],'3');
309 selbox.options[selbox.options.length] = new Option(text[14],'4');
311 selbox.options[selboxselected-1].selected = true;
315 selbox.options[selbox.options.length] = new Option(text[13],'1');
316 selbox.options[selbox.options.length] = new Option(text[10],'2');
317 selbox.options[selbox.options.length] = new Option(text[11],'3');
318 selbox.options[selbox.options.length] = new Option(text[12],'4');
320 selbox.options[selboxselected-1].selected = true;
325 // to dispaly the more options section for seasons
326 function moreoptions_seasons(x,y){
327 document.getElementById("irregularity").innerHTML = '';
328 document.getElementById("more_options").innerHTML = '';
330 // alert("X: "+x+"Year: "+y);
332 var hemi_select = parseInt('<!-- TMPL_VAR NAME="hemisphere" -->');
333 textbox +="<table>\n<tr><td>"+ text[7] +"<\/td><td colspan='2'><select name='hemisphere' onchange='hemispheres(this.options[this.selectedIndex].value)'>";
334 for(var i = 1; i <= 2; i++){
335 textbox +="<option value='"+i+"'";
336 if(i == hemi_select){
337 textbox += " selected "
339 textbox +=">"+text[i+7]+"<\/option>";
341 textbox +="<\/select><\/td><\/tr>\n";
342 textbox +="<tr><td> <\/td><td>"+x+"<\/td>";
343 textbox +="<td>"+text[16]+"<\/td>";
344 textbox +="<\/tr>\n";
345 textbox +="<tr><td>"+text[5]+"<\/td><td><select name='lastvaluetemp2' id='season1' onchange='moreoptionsupdate(\"lastvalue2\")'>";
346 for(var j = 1; j <= 4; j++){
347 textbox +="<option value='"+j+"'>"+text[j+10]+"<\/option>";
349 textbox +="<\/select><\/td><td><select name='lastvaluetemp1' onchange='moreoptionsupdate(\"lastvalue1\")'>";
350 for(var k = parseInt(y); k <= parseInt(y)+15; k++){
351 textbox +="<option value='"+k+"'>"+k+"<\/option>";
353 textbox +="<\/select><\/td><\/tr>\n";
354 textbox +="<tr><td>"+text[6]+"<\/td>";
355 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
356 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
357 textbox +="<\/tr><\/table>\n";
359 document.getElementById("more_options").innerHTML = textbox;
362 function irregularity_check(){
363 document.f.irreg_check.value = 1; // Irregularity button now pushed
364 var periodicity = document.f.periodicity.value;
365 var rollover = document.f.issuesexpected1.value;
366 if(document.f.whenmorethantemp2){
367 rollover = document.f.whenmorethantemp2.value;
369 if(document.f.whenmorethantemp3){
370 rollover = document.f.whenmorethantemp3.value;
375 var errortext = _("<b>Warning irregularity detected<\/b><br \/>");
378 if(rollover < 730) expected =730;
385 if(rollover < 365) expected =365;
392 if(rollover < 156) expected =156;
399 if(rollover < 52) expected =52;
406 if(rollover < 26) expected =26;
413 if(rollover < 17) expected =17;
420 if(rollover < 12) expected =12;
427 if(rollover < 6) expected =6;
434 if(rollover < 4) expected =4;
441 if(rollover < 4) expected =4;
448 if(rollover < 2) expected =2;
455 if(rollover < 1) expected =1;
465 if(expected == 365 || expected==730){
466 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
467 errortext += _("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
468 for(var j=0;j<daynames.length;j++){
469 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
473 errortext +=expected+_(" issues expected ")+rollover+_(" were entered. <br \/>Please indicate which date(s) an issue is not expected<br \/>");
475 for(var i=rollover;i<expected;i++){
476 errortext +="<select name='irregular' id='irregular"+count+"' onchange='display_example(expected)'>\n";
477 errortext +=irregular_options(periodicity);
478 errortext +="<\/select>\n";
485 errortext +=expectedover+_(" issues expected ")+rollover+_(" were entered.<br \/> You seem to have indicated more issues per year than expected.");
488 if(error.length ==0){
489 error=_('No irregularities noticed');
491 display_example(expected);
492 document.getElementById("irregularity").innerHTML = error;
495 function irregular_options(periodicity){
498 <!-- TMPL_IF NAME="weekarrayjs" -->
499 var weeks = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
501 var months = new Array(_('January'),_('February'),_('March'),_('April'),_('May'),_('June'),_('July'),_('August'),_('September'),_('October'),_('November'),_('December'));
502 var seasons = new Array(_('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'));
504 if(periodicity == 1) {
509 if(periodicity == 2 || periodicity == 3 || periodicity == 4) {
511 <!-- TMPL_IF NAME="weekarrayjs" -->
513 count = <!-- TMPL_VAR NAME="weekno" -->;
519 if(periodicity == 5 || periodicity == 6 || periodicity == 7 || periodicity == 8 || periodicity == 9) {
520 if(periodicity == 8) {
521 is_season = 1; // setting up from edit page
526 if(is_hemisphere == 2){
537 for(var j=1;j<=expected;j++){
540 count = count-expected;
542 if(is_season && is_hemisphere == 1){
543 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j]+"<\/option>\n";
544 // alert("value: "+((count*3)-2)+" title: "+titles[j]);
545 } else if(is_season && is_hemisphere == 2){
546 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j-1]+"<\/option>\n";
547 // alert("value: "+((count*3)-2)+" title: "+titles[j-1]);
549 errortext +="<option value='"+count+"'>"+titles[j-1]+"<\/option>\n";
553 errortext +="<option value='"+j+"'>"+titles+" "+j+"<\/option>\n";
559 function irregular_order(){
560 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
561 var periodicity = document.f.periodicity.value;
562 var irregarray = irregular.split(',');
564 for(j=0;j<irregarray.length;j++){
565 document.getElementById("irregular"+irregarray[j]).checked = true;
568 for(i=0;i<irregarray.length;i++){
569 document.getElementById("irregular"+i).value = irregarray[i];
574 function display_example(expected){
575 var startfrom1 = parseInt(document.f.lastvalue1.value);
576 var startfrom2 = parseInt(document.f.lastvalue2.value);
577 var startfrom3 = parseInt(document.f.lastvalue3.value);
578 var every1 = parseInt(document.f.every1.value);
579 var every2 = parseInt(document.f.every2.value);
580 var every3 = parseInt(document.f.every3.value);
581 var numberpattern = document.f.numberingmethod.value;
582 var whenmorethan2 = parseInt(document.f.whenmorethan2.value);
583 var whenmorethan3 = parseInt(document.f.whenmorethan3.value);
584 var setto2 = parseInt(document.f.setto2.value);
585 var setto3 = parseInt(document.f.setto3.value);
586 var displaytext = _('Based on the information<br \/>entered the Numbering Pattern<br \/>will look like this<br \/>\n');
588 var count=startfrom3-1;
589 var count2=startfrom2;
590 for(var i=0;i<12;i++){
591 if(count>=whenmorethan3){
593 if(count2>=whenmorethan2){
602 displaytext += numberpattern.replace(/{Z}/,count)+'\n';
603 displaytext = displaytext.replace(/{Y}/,count2)+'<br \/>\n';
604 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
608 if(startfrom2>0 && !startfrom3){
609 var count=startfrom2-1;
610 for(var i=0;i<12;i++){
611 if(count>=whenmorethan2){
619 if(is_hemisphere == 2){
621 displaytext += numberpattern.replace(/{Y}/,text[count+12])+'\n';
623 displaytext += numberpattern.replace(/{Y}/,text[count+8])+'\n';
626 displaytext += numberpattern.replace(/{Y}/,text[count+10])+'\n';
629 displaytext += numberpattern.replace(/{Y}/,count)+'\n';
631 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
634 if(startfrom1>0 && !startfrom2 && !startfrom3){
635 var offset=eval(document.f.issuesexpected1.value);
639 for(var i=startfrom1;i<(startfrom1+offset);i+=every1){
640 displaytext += numberpattern.replace(/{X}/,i)+'<br \/>\n';
643 displaytext = "<div style='padding: 5px; background-color: #CCCCCC'>"+displaytext+"<\/div>";
644 document.getElementById("displayexample").innerHTML = displaytext;
647 function isArray(obj) {
648 if (obj.constructor.toString().indexOf("Array") == -1)
654 function moreoptionsupdate(fieldnames,rollover){
655 fieldname = fieldnames;
656 fld = fieldname.length;
658 fieldnametempnumber = fieldname.substr(fld);
659 //alert(fieldnametempnumber);
660 fieldnametemp = fieldname.slice(0,-1)+"temp"+fieldnametempnumber;
661 // alert(fieldnametemp);
662 eval("document.f."+fieldname+".value = document.f."+fieldnametemp+".value");
663 // alert (fieldname+" : "+eval("document.f."+fieldname+".value") +' '+fieldnametemp+' : ' +eval("document.f."+fieldnametemp+".value"));
665 eval("document.f.every"+(fieldnametempnumber-1)+".value = document.f."+fieldnametemp+".value");
670 function check_input(e){
671 var unicode=e.charCode? e.charCode : e.keyCode
672 if (unicode!=8 && unicode !=46 && unicode!=9 && unicode !=13){ // if key isn't backspace or delete
673 if (unicode<48||unicode>57) { // if not a number
674 alert(_("Needs to be entered in digit form -eg 10"));
675 return false // disable key press
683 <!-- TMPL_IF name="mod" -->
684 <h1>Modify a subscription</h1>
685 <form method="post" name="f">
686 <input type="hidden" name="op" value="modsubscription">
687 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
689 <h1>Add a subscription (Serial Holdings Record)</h1>
690 <form method="post" name="f">
691 <input type="hidden" name="op" value="addsubscription">
693 <input type="hidden" name="user" value="<!-- TMPL_VAR name="loggedinusername" -->">
694 <input type="hidden" name="irreg_check" value="0">
695 <input type="hidden" name="issuesexpected1" value="0">
698 <div id="subscription_form">
699 <h2>Subscription information for subscription #<!--TMPL_VAR name="subscriptionid"--></h2>
703 <td><!-- TMPL_VAR name="loggedinusername" --></td>
706 <td><label>Supplier:</label></td>
707 <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>
710 <td><label>Biblio</label></td>
712 <input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size="8">
713 (<input type="text" name="title" value="<!-- TMPL_VAR name="bibliotitle" -->" disabled="disabled" readonly="readonly" />)
714 <a href="#" onClick="Plugin(f)">Search for Biblio</a> <!--TMPL_UNLESS Name="mod"--> |
715 <a href="#" onClick="Create_biblio(f)">Create Biblio</a><!--/TMPL_UNLESS-->
719 <td><label>Call Number</label></td>
720 <td><input type="text" name="callnumber" value="<!-- TMPL_VAR name="callnumber" -->" size="20"></td>
725 <select name="branchcode">
726 <option value="">Any branch</option>
727 <!-- TMPL_LOOP name="branchloop" --><!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
729 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
732 </select> (select a branch)
736 <td><label>Notes</label></td>
737 <td><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></td>
740 <td><label>Management Notes</label></td>
741 <td><textarea name="internalnotes" cols="30" rows="2"><!-- TMPL_VAR name="internalnotes" --></textarea></td>
744 <td>Patron alert with </td>
746 <select name="letter">
747 <option value="">un-activated</option>
748 <!-- TMPL_LOOP name="letterloop" -->
749 <!-- TMPL_IF name="selected" -->
750 <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="lettername" --></option>
752 <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="lettername" --></option>
755 </select> (select a letter & patrons will be able to "follow" this subscription and recieve a mail on every new issue)
759 <td><b>Warning:</b></td>
762 <li>Remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
763 <li>You also must have selected a supplier if you want to ask for late issues</li>
769 <div id="subscription_form_planning">
773 <td>First Issue ETA:</td>
775 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="button2" style="cursor: pointer;" />
776 <input type="text" name="firstacquidate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10 id="acqui_date" style="border-width: 0px;" />
777 <!-- both scripts for calendar must follow the input field -->
778 <script type="text/javascript">
780 inputField:"acqui_date",
781 ifFormat : "%d/%m/%Y",
786 <script type="text/javascript">
788 inputField : "acqui_date",
789 ifFormat : "%d/%m/%Y",
790 button : "acqui_date",
796 <div id="displayexample"></div>
800 <td>Frequency: (*)</td>
802 <select name="periodicity" size="1" onchange="javascript:document.getElementsByName('manualhist')[0].checked=(this.value==1);num_pattern;">
803 <option value="" selected>-- please choose --</option>
804 <!-- TMPL_IF name="periodicity16" -->
805 <option value="16" selected>Without Periodicity</option>
807 <option value="16">Without Periodicity</option>
809 <!-- TMPL_IF name="periodicity48" -->
810 <option value="48" selected>Unknown</option>
812 <option value="48">Unknown</option>
814 <!-- TMPL_IF name="periodicity32" -->
815 <option value="32" selected>Irregular</option>
817 <option value="32">Irregular</option>
820 <!-- TMPL_IF name="periodicity12" -->
821 <option value="12" selected>2/day</option>
823 <option value="12">2/day</option>
825 <!-- TMPL_IF name="periodicity1" -->
826 <option value="1" selected>1/day</option>
828 <option value="1">1/day</option>
830 <!-- TMPL_IF name="periodicity13" -->
831 <option value="13" selected>3/week</option>
833 <option value="13">3/week</option>
835 <!-- TMPL_IF name="periodicity2" -->
836 <option value="2" selected>1/week</option>
838 <option value="2">1/week</option>
840 <!-- TMPL_IF name="periodicity3" -->
841 <option value="3" selected>1/2 weeks (2/month)</option>
843 <option value="3">1/2 weeks (2/months)</option>
845 <!-- TMPL_IF name="periodicity4" -->
846 <option value="4" selected>1/3 weeks</option>
848 <option value="4">1/3 weeks</option>
850 <!-- TMPL_IF name="periodicity5" -->
851 <option value="5" selected>1/month</option>
853 <option value="5">1/month</option>
855 <!-- TMPL_IF name="periodicity6" -->
856 <option value="6" selected>1/2 months (6/year)</option>
858 <option value="6">1/2 months (6/year)</option>
860 <!-- TMPL_IF name="periodicity7" -->
861 <option value="7" selected>1/3 months (1/quarter)</option>
863 <option value="7">1/3 months (1/quarter)</option>
865 <!-- periodicity8 is 1/quarter, exactly like periodicity7 but will use it for seasonal option -->
866 <!-- TMPL_IF name="periodicity8" -->
867 <option value="8" selected>1/quarter (seasonal)</option>
869 <option value="8">1/quarter (seasonal)</option>
872 <!-- TMPL_IF name="periodicity9" -->
873 <option value="9" selected>2/years</option>
875 <option value="9">2/year</option>
877 <!-- TMPL_IF name="periodicity10" -->
878 <option value="10" selected>1/year</option>
880 <option value="10">1/year</option>
882 <!-- TMPL_IF name="periodicity11" -->
883 <option value="11" selected>1/2 years</option>
885 <option value="11">1/2 years</option>
888 Manual History :<input type="checkbox" name="manualhist" value="1" />
892 <td>Numbering Pattern:</td>
894 <select name="numbering_pattern" size="1" id="numberpattern" onchange="num_pattern()">
895 <option value="" selected>-- please choose --</option>
896 <!-- TMPL_IF name="numberpattern1" -->
897 <option value="1" selected>Number</option>
899 <option value="1">Number</option>
901 <!-- TMPL_IF name="numberpattern2" -->
902 <option value="2" selected>Volume, Number, Issue</option>
904 <option value="2">Volume, Number, Issue</option>
906 <!-- TMPL_IF name="numberpattern3" -->
907 <option value="3" selected>Volume, Number</option>
909 <option value="3">Volume, Number</option>
911 <!-- TMPL_IF name="numberpattern4" -->
912 <option value="4" selected>Volume, Issue</option>
914 <option value="4">Volume, Issue</option>
916 <!-- TMPL_IF name="numberpattern5" -->
917 <option value="5" selected>Number, Issue</option>
919 <option value="5">Number, Issue</option>
921 <!-- TMPL_IF name="numberpattern6" -->
922 <option value="6" selected>Seasonal only</option>
924 <option value="6">Seasonal only</option>
926 <!-- TMPL_IF name="numberpattern8" -->
927 <option value="8" selected>Year/Number</option>
929 <option value="8">Year/Number</option>
931 <!-- TMPL_IF name="numberpattern7" -->
932 <option value="7" selected>None of the above</option>
934 <option value="7">None of the above</option>
937 <div id="more_options"></div>
938 <div id="irregularity"></div>
942 <td>Begins On: (*)</td>
944 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="button1" style="cursor: pointer;" />
945 <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10 id="beginning_date" style="border-width: 0px;">
946 <!-- both scripts for calendar must follow the input field -->
947 <script type="text/javascript">
949 inputField : "beginning_date",
950 ifFormat : "%d/%m/%Y",
955 <script type="text/javascript">
957 inputField : "beginning_date",
958 ifFormat : "%d/%m/%Y",
959 button : "beginning_date",
966 <td>Subscription length</td>
968 <select name="subtype">
969 <!-- TMPL_LOOP NAME="subtype" -->
970 <!-- TMPL_IF NAME="selected" -->
971 <option value="<!-- TMPL_VAR NAME="name" -->" selected="SELECTED">
973 <option value="<!-- TMPL_VAR NAME="name" -->">
975 <!-- TMPL_VAR NAME="name" -->
979 <input type="text" name="sublength" value="<!-- TMPL_VAR name="sublength" -->" size="3" onkeypress="return check_input(event)"> (*) (enter amount in numerals)
983 <td>Numbering calculation</td>
984 <td>Numbering formula: <input type="text" name="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->"></td>
988 <div id="basetable" style="display: none;">
989 <table class="small">
999 <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->">
1002 <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->">
1005 <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->">
1010 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->"></td>
1011 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->"></td>
1012 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->"></td>
1015 <td>When more than</td>
1016 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->"></td>
1017 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->"></td>
1018 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->"></td>
1020 <!-- TMPL_IF name="mod" -->
1022 <td>The loop is for instance</td>
1023 <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->"></td>
1024 <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->"></td>
1025 <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->"></td>
1029 <td>Set back to</td>
1030 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->"></td>
1031 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->"></td>
1032 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->"></td>
1036 <!-- TMPL_IF name="mod" -->
1042 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->"></td>
1043 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->"></td>
1044 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->"></td>
1051 <!--TMPL_IF Name="history"-->
1052 <div id="subscription_form_history">
1056 <td>Starting date:</td>
1057 <td><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->"> (the date of the 1st subscription)</td>
1060 <td>Ending date:</td>
1061 <td><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->">(if empty : subscription still active)</td>
1064 <td>Recieved issues</td>
1065 <td><textarea name="recievedlist" cols="60" rows="5"><!-- TMPL_VAR name="recievedlist" --></textarea></td>
1068 <td>Missing issues</td>
1069 <td><textarea name="missinglist" cols="60" rows="5"><!-- TMPL_VAR name="missinglist" --></textarea></td>
1072 <td>Opac's notes</td>
1073 <td><textarea name="opacnote" cols="60" rows="5"><!-- TMPL_VAR name="opacnote" --></textarea></td>
1076 <td>Librarian notes</td>
1077 <td><textarea name="librariannote" cols="60" rows="5"><!-- TMPL_VAR name="librariannote" --></textarea></td>
1082 <!-- TMPL_IF name="mod" -->
1083 <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w">
1085 <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w">
1091 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
1093 <script language="JavaScript" type="text/javascript">
1094 function Create_biblio(f)
1096 window.open('/cgi-bin/koha/cataloguing/addbiblio.pl?mode=popup','FindABibIndex','width=1024,height=768,toolbar=no,scrollbars=yes');
1101 window.open('subscription-bib-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
1104 function FindAcqui(f)
1106 window.open('acqui-search.pl','FindASupplier','width=800,height=400,toolbar=no,scrollbars=yes');
1109 function Find_ISSN(f)
1111 window.open('issn-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
1116 if (f.startdate.value.length != 0 && f.sublength.value > 0) {
1117 if (f.irreg_check.value == 1) {
1118 document.f.submit();
1120 if(f.numbering_pattern.value == ''){
1121 alert(_("need to choose a numbering pattern"));
1123 alert(_("need to check for irregularity by clicking 'Irregularity?'"));
1127 alert(_('field marked with * are mandatory'));
1132 <!-- TMPL_IF name="mod" -->
1133 <script type="text/javascript">
1134 window.onload = modify_num_pattern();
1135 <!-- TMPL_IF name="hemisphere" -->
1136 window.onload = hemispheres(<!-- TMPL_VAR NAME="hemisphere" -->);
1140 <!-- TMPL_IF name="irregularity" -->
1141 <script type="text/javascript">
1142 window.onload = irregularity_check();
1143 window.onload = irregular_order();