1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Serials</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
6 <script type="text/javascript">
8 function _(s) { return s } // dummy function for gettext
10 // the english words used in display purposes
11 var text = new Array(_('Number'),_('Volume'),_('Issue'),_('Month'),_('Week'),_('Starting with:'),_('Rollover at:'),_('Choose Hemisphere:'),_('Northern'),_('Southern'),
12 _('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'),_('Season'),_('Year'));
14 var is_hemisphere = 1;
16 // common pre defined number patterns
17 function num_pattern() {
18 var patternchoice = document.getElementById("numberpattern").value;
19 switch(patternchoice){
21 document.f.add1.value=1;
22 document.f.add2.value=1;
23 document.f.add3.value=1;
24 document.f.every1.value=12;
25 document.f.every2.value=1;
26 document.f.every3.value=1;
27 document.f.whenmorethan1.value=9999999;
28 document.f.whenmorethan2.value=12;
29 document.f.whenmorethan3.value=4;
30 document.f.setto1.value=0;
31 document.f.setto2.value=1;
32 document.f.setto3.value=1;
33 document.f.lastvalue1.value=1;
34 document.f.lastvalue2.value=1;
35 document.f.lastvalue3.value=1;
36 document.f.numberingmethod.value=_('Vol {X}, No {Y}, Issue {Z}');
37 moreoptions(text[1],text[0],text[2]);
38 display_table(0); // toggle info box on (1) or off (0)
41 document.f.add1.value=1;
42 document.f.add2.value=1;
43 document.f.add3.value='';
44 document.f.every1.value=12;
45 document.f.every2.value=1;
46 document.f.every3.value='';
47 document.f.whenmorethan1.value=9999999;
48 document.f.whenmorethan2.value=12;
49 document.f.whenmorethan3.value='';
50 document.f.setto1.value=0;
51 document.f.setto2.value=1;
52 document.f.setto3.value='';
53 document.f.lastvalue1.value=1;
54 document.f.lastvalue2.value=1;
55 document.f.lastvalue3.value='';
56 document.f.numberingmethod.value=_('Vol {X}, No {Y}');
57 moreoptions(text[1],text[0]);
61 document.f.add1.value=1;
62 document.f.add2.value=1;
63 document.f.add3.value='';
64 document.f.every1.value=12;
65 document.f.every2.value=1;
66 document.f.every3.value='';
67 document.f.whenmorethan1.value=9999999;
68 document.f.whenmorethan2.value=12;
69 document.f.whenmorethan3.value='';
70 document.f.setto1.value=0;
71 document.f.setto2.value=1;
72 document.f.setto3.value='';
73 document.f.lastvalue1.value=1;
74 document.f.lastvalue2.value=1;
75 document.f.lastvalue3.value='';
76 document.f.numberingmethod.value=_('Vol {X}, Issue {Y}');
77 moreoptions(text[1],text[2]);
81 document.f.add1.value=1;
82 document.f.add2.value=1;
83 document.f.add3.value='';
84 document.f.every1.value=12;
85 document.f.every2.value=1;
86 document.f.every3.value='';
87 document.f.whenmorethan1.value=9999999;
88 document.f.whenmorethan2.value=12;
89 document.f.whenmorethan3.value='';
90 document.f.setto1.value=0;
91 document.f.setto2.value=1;
92 document.f.setto3.value='';
93 document.f.lastvalue1.value=1;
94 document.f.lastvalue2.value=1;
95 document.f.lastvalue3.value='';
96 document.f.numberingmethod.value=_('No {X}, Issue {Y}');
97 moreoptions(text[0],text[2]);
102 var sYear = d.getFullYear();
103 document.f.add1.value=1;
104 document.f.add2.value='1';
105 document.f.add3.value='';
106 document.f.every1.value=4;
107 document.f.every2.value='1';
108 document.f.every3.value='';
109 document.f.whenmorethan1.value=9999999;
110 document.f.whenmorethan2.value='4';
111 document.f.whenmorethan3.value='';
112 document.f.setto1.value=0;
113 document.f.setto2.value='1';
114 document.f.setto3.value='';
115 document.f.lastvalue1.value=sYear;
116 document.f.lastvalue2.value='1';
117 document.f.lastvalue3.value='';
118 document.f.periodicity.value='8';
119 document.f.numberingmethod.value=_('{Y} {X}');
120 moreoptions_seasons(text[15],sYear);
126 document.getElementById("more_options").innerHTML = '';
127 document.f.irreg_check.value=1;
131 var sYear = d.getFullYear();
132 document.f.add1.value=1;
133 document.f.add2.value=1;
134 document.f.add3.value='';
135 document.f.every1.value=12;
136 document.f.every2.value=1;
137 document.f.every3.value='';
138 document.f.whenmorethan1.value=9999999;
139 document.f.whenmorethan2.value=12;
140 document.f.whenmorethan3.value='';
141 document.f.setto1.value=0;
142 document.f.setto2.value=1;
143 document.f.setto3.value='';
144 document.f.lastvalue1.value=sYear;
145 document.f.lastvalue2.value='1';
146 document.f.lastvalue3.value='';
147 document.f.periodicity.value=1;
148 document.f.numberingmethod.value=_('{X}/{Y}');
149 moreoptions(text[16],text[0]);
153 document.f.add1.value=1;
154 document.f.add2.value='';
155 document.f.add3.value='';
156 document.f.every1.value=1;
157 document.f.every2.value='';
158 document.f.every3.value='';
159 document.f.whenmorethan1.value=9999999;
160 document.f.whenmorethan2.value='';
161 document.f.whenmorethan3.value='';
162 document.f.setto1.value=0;
163 document.f.setto2.value='';
164 document.f.setto3.value='';
165 document.f.lastvalue1.value=1;
166 document.f.lastvalue2.value='';
167 document.f.lastvalue3.value='';
168 document.f.numberingmethod.value='{X}';
169 moreoptions_daily_check(text[0]);
170 document.f.irreg_check.value=1;
176 function display_table(n) {
178 document.getElementById("basetable").style.display = 'block';
180 document.getElementById("basetable").style.display = 'none';
184 function modify_num_pattern() {
185 document.getElementById("numberpattern").value = '<!-- TMPL_VAR NAME="numberpattern" -->';
188 document.f.add1.value='<!-- TMPL_VAR NAME="add1" -->';
189 document.f.add2.value='<!-- TMPL_VAR NAME="add2" -->';
190 document.f.add3.value='<!-- TMPL_VAR NAME="add3" -->';
191 document.f.every1.value='<!-- TMPL_VAR NAME="every1" -->';
192 document.f.every2.value='<!-- TMPL_VAR NAME="every2" -->';
193 document.f.every3.value='<!-- TMPL_VAR NAME="every3" -->';
194 document.f.whenmorethan1.value='<!-- TMPL_VAR NAME="whenmorethan1" -->';
195 document.f.whenmorethan2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
196 document.f.whenmorethan3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
197 document.f.setto1.value='<!-- TMPL_VAR NAME="setto1" -->';
198 document.f.setto2.value='<!-- TMPL_VAR NAME="setto2" -->';
199 document.f.setto3.value='<!-- TMPL_VAR NAME="setto3" -->';
200 document.f.lastvalue1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
201 document.f.lastvalue2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
202 document.f.lastvalue3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
203 document.f.numberingmethod.value='<!-- TMPL_VAR NAME="numberingmethod" -->';
207 <!-- TMPL_IF NAME="add2" -->
208 if(<!-- TMPL_VAR NAME="add2" --> > 0){
212 <!-- TMPL_IF NAME="add3" -->
213 if(<!-- TMPL_VAR NAME="add3" --> > 0){
218 document.f.lastvaluetemp1.value='<!-- TMPL_VAR NAME="lastvalue1" -->';
220 document.f.lastvaluetemp2.value='<!-- TMPL_VAR NAME="lastvalue2" -->';
221 document.f.whenmorethantemp2.value='<!-- TMPL_VAR NAME="whenmorethan2" -->';
224 document.f.lastvaluetemp3.value='<!-- TMPL_VAR NAME="lastvalue3" -->';
225 document.f.whenmorethantemp3.value='<!-- TMPL_VAR NAME="whenmorethan3" -->';
229 // a pre check with more options to see if 'number' and '1/day' are chosen
230 function moreoptions_daily_check(x) {
231 var periodicity = document.f.periodicity.value;
233 if(periodicity == 1){
234 document.getElementById("irregularity").innerHTML = '';
235 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
236 errortext =_("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
237 for(var j=0;j<daynames.length;j++){
238 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
240 var error = errortext;
242 document.getElementById("irregularity").innerHTML = error;
244 document.getElementById("irregularity").innerHTML = '';
245 document.getElementById("more_options").innerHTML = '';
250 // to dispaly the more options section
251 function moreoptions(x,y,z){
252 document.getElementById("irregularity").innerHTML = '';
253 document.getElementById("more_options").innerHTML = '';
255 // alert("X: "+x+"Y: "+y+"Z: "+z);
257 textbox +="<table>\n<tr><td> <\/td><td>"+x+"<\/td>";
259 textbox +="<td>"+y+"<\/td>";
261 textbox +="<td>"+z+"<\/td>";
264 textbox +="<\/tr>\n";
265 textbox +="<tr><td>"+text[5]+"<\/td><td><input type='text' name='lastvaluetemp1' size='4' onkeyup='moreoptionsupdate(\"lastvalue1\")'><\/td>\n";
267 textbox +="<td><input type='text' name='lastvaluetemp2' size='4' onkeyup='moreoptionsupdate(\"lastvalue2\")'><\/td>\n";
269 textbox +="<td><input type='text' name='lastvaluetemp3' size='4' onkeyup='moreoptionsupdate(\"lastvalue3\")'><\/td>\n";
272 textbox +="<\/tr>\n";
274 textbox +="<tr><td>"+text[6]+"<\/td>";
275 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
276 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
278 textbox +="<td><input type='text' name='whenmorethantemp3' size='4' onkeyup='moreoptionsupdate(\"whenmorethan3\",1)'><\/td>\n";
282 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>";
284 textbox +="<\/table>\n";
286 document.getElementById("more_options").innerHTML = textbox;
289 function hemispheres(chosen){
290 var selbox = document.getElementById("season1");
292 var selboxselected = selbox.options[selbox.selectedIndex].value;
293 selbox.options.length = 0;
296 selbox.options[selbox.options.length] = new Option(text[11],'1');
297 selbox.options[selbox.options.length] = new Option(text[12],'2');
298 selbox.options[selbox.options.length] = new Option(text[13],'3');
299 selbox.options[selbox.options.length] = new Option(text[14],'4');
301 selbox.options[selboxselected-1].selected = true;
305 selbox.options[selbox.options.length] = new Option(text[13],'1');
306 selbox.options[selbox.options.length] = new Option(text[10],'2');
307 selbox.options[selbox.options.length] = new Option(text[11],'3');
308 selbox.options[selbox.options.length] = new Option(text[12],'4');
310 selbox.options[selboxselected-1].selected = true;
315 // to dispaly the more options section for seasons
316 function moreoptions_seasons(x,y){
317 document.getElementById("irregularity").innerHTML = '';
318 document.getElementById("more_options").innerHTML = '';
320 // alert("X: "+x+"Year: "+y);
322 var hemi_select = parseInt('<!-- TMPL_VAR NAME="hemisphere" -->');
323 textbox +="<table>\n<tr><td>"+ text[7] +"<\/td><td colspan='2'><select name='hemisphere' onchange='hemispheres(this.options[this.selectedIndex].value)'>";
324 for(var i = 1; i <= 2; i++){
325 textbox +="<option value='"+i+"'";
326 if(i == hemi_select){
327 textbox += " selected "
329 textbox +=">"+text[i+7]+"<\/option>";
331 textbox +="<\/select><\/td><\/tr>\n";
332 textbox +="<tr><td> <\/td><td>"+x+"<\/td>";
333 textbox +="<td>"+text[16]+"<\/td>";
334 textbox +="<\/tr>\n";
335 textbox +="<tr><td>"+text[5]+"<\/td><td><select name='lastvaluetemp2' id='season1' onchange='moreoptionsupdate(\"lastvalue2\")'>";
336 for(var j = 1; j <= 4; j++){
337 textbox +="<option value='"+j+"'>"+text[j+10]+"<\/option>";
339 textbox +="<\/select><\/td><td><select name='lastvaluetemp1' onchange='moreoptionsupdate(\"lastvalue1\")'>";
340 for(var k = parseInt(y); k <= parseInt(y)+15; k++){
341 textbox +="<option value='"+k+"'>"+k+"<\/option>";
343 textbox +="<\/select><\/td><\/tr>\n";
344 textbox +="<tr><td>"+text[6]+"<\/td>";
345 textbox +="<td><a href='javascript:irregularity_check()'>"+_('Irregularity?')+"<\/a><\/td>\n";
346 textbox +="<td><input type='text' name='whenmorethantemp2' size='4' onkeyup='moreoptionsupdate(\"whenmorethan2\",1)'><\/td>\n";
347 textbox +="<\/tr><\/table>\n";
349 document.getElementById("more_options").innerHTML = textbox;
352 function irregularity_check(){
353 document.f.irreg_check.value = 1; // Irregularity button now pushed
354 var periodicity = document.f.periodicity.value;
355 var rollover = document.f.issuesexpected1.value;
356 if(document.f.whenmorethantemp2){
357 rollover = document.f.whenmorethantemp2.value;
359 if(document.f.whenmorethantemp3){
360 rollover = document.f.whenmorethantemp3.value;
365 var errortext = _("<b>Warning irregularity detected<\/b><br \/>");
368 if(rollover < 730) expected =730;
375 if(rollover < 365) expected =365;
382 if(rollover < 156) expected =156;
389 if(rollover < 52) expected =52;
396 if(rollover < 26) expected =26;
403 if(rollover < 17) expected =17;
410 if(rollover < 12) expected =12;
417 if(rollover < 6) expected =6;
424 if(rollover < 4) expected =4;
431 if(rollover < 4) expected =4;
438 if(rollover < 2) expected =2;
445 if(rollover < 1) expected =1;
455 if(expected == 365 || expected==730){
456 var daynames = new Array(_('Monday'),_('Tuesday'),_('Wednesday'),_('Thursday'),_('Friday'),_('Saturday'),_('Sunday'));
457 errortext += _("Please indicate which days of the week you <b>DO NOT<\/b> expect to receive issues.<br \/>");
458 for(var j=0;j<daynames.length;j++){
459 errortext +="<input type='checkbox' name='irregular' id='irregular"+(j+1)+"' value='"+(j+1)+"' />"+daynames[j]+" ";
463 errortext +=expected+_(" issues expected ")+rollover+_(" were entered. <br \/>Please indicate which date(s) an issue is not expected<br \/>");
465 for(var i=rollover;i<expected;i++){
466 errortext +="<select name='irregular' id='irregular"+count+"' onchange='display_example(expected)'>\n";
467 errortext +=irregular_options(periodicity);
468 errortext +="<\/select>\n";
475 errortext +=expectedover+_(" issues expected ")+rollover+_(" were entered.<br \/> You seem to have indicated more issues per year than expected.");
478 if(error.length ==0){
479 error=_('No irregularities noticed');
481 display_example(expected);
482 document.getElementById("irregularity").innerHTML = error;
485 function irregular_options(periodicity){
488 <!-- TMPL_IF NAME="weekarrayjs" -->
489 var weeks = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
491 var months = new Array(_('January'),_('February'),_('March'),_('April'),_('May'),_('June'),_('July'),_('August'),_('September'),_('October'),_('November'),_('December'));
492 var seasons = new Array(_('Autumn'),_('Winter'),_('Spring'),_('Summer'),_('Fall'));
494 if(periodicity == 1) {
499 if(periodicity == 2 || periodicity == 3 || periodicity == 4) {
501 <!-- TMPL_IF NAME="weekarrayjs" -->
503 count = <!-- TMPL_VAR NAME="weekno" -->;
509 if(periodicity == 5 || periodicity == 6 || periodicity == 7 || periodicity == 8 || periodicity == 9) {
510 if(periodicity == 8) {
511 is_season = 1; // setting up from edit page
516 if(is_hemisphere == 2){
527 for(var j=1;j<=expected;j++){
530 count = count-expected;
532 if(is_season && is_hemisphere == 1){
533 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j]+"<\/option>\n";
534 // alert("value: "+((count*3)-2)+" title: "+titles[j]);
535 } else if(is_season && is_hemisphere == 2){
536 errortext +="<option value='"+((count*3)-2)+"'>"+titles[j-1]+"<\/option>\n";
537 // alert("value: "+((count*3)-2)+" title: "+titles[j-1]);
539 errortext +="<option value='"+count+"'>"+titles[j-1]+"<\/option>\n";
543 errortext +="<option value='"+j+"'>"+titles+" "+j+"<\/option>\n";
549 function irregular_order(){
550 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
551 var periodicity = document.f.periodicity.value;
552 var irregarray = irregular.split(',');
554 for(j=0;j<irregarray.length;j++){
555 document.getElementById("irregular"+irregarray[j]).checked = true;
558 for(i=0;i<irregarray.length;i++){
559 document.getElementById("irregular"+i).value = irregarray[i];
564 function display_example(expected){
565 var startfrom1 = parseInt(document.f.lastvalue1.value);
566 var startfrom2 = parseInt(document.f.lastvalue2.value);
567 var startfrom3 = parseInt(document.f.lastvalue3.value);
568 var every1 = parseInt(document.f.every1.value);
569 var every2 = parseInt(document.f.every2.value);
570 var every3 = parseInt(document.f.every3.value);
571 var numberpattern = document.f.numberingmethod.value;
572 var whenmorethan2 = parseInt(document.f.whenmorethan2.value);
573 var whenmorethan3 = parseInt(document.f.whenmorethan3.value);
574 var setto2 = parseInt(document.f.setto2.value);
575 var setto3 = parseInt(document.f.setto3.value);
576 var displaytext = _('Based on the information<br \/>entered the Numbering Pattern<br \/>will look like this<br \/>\n');
578 var count=startfrom3-1;
579 var count2=startfrom2;
580 for(var i=0;i<12;i++){
581 if(count>=whenmorethan3){
583 if(count2>=whenmorethan2){
592 displaytext += numberpattern.replace(/{Z}/,count)+'\n';
593 displaytext = displaytext.replace(/{Y}/,count2)+'<br \/>\n';
594 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
598 if(startfrom2>0 && !startfrom3){
599 var count=startfrom2-1;
600 for(var i=0;i<12;i++){
601 if(count>=whenmorethan2){
609 if(is_hemisphere == 2){
611 displaytext += numberpattern.replace(/{Y}/,text[count+12])+'\n';
613 displaytext += numberpattern.replace(/{Y}/,text[count+8])+'\n';
616 displaytext += numberpattern.replace(/{Y}/,text[count+10])+'\n';
619 displaytext += numberpattern.replace(/{Y}/,count)+'\n';
621 displaytext = displaytext.replace(/{X}/,startfrom1)+'<br \/>\n';
624 if(startfrom1>0 && !startfrom2 && !startfrom3){
625 var offset=eval(document.f.issuesexpected1.value);
629 for(var i=startfrom1;i<(startfrom1+offset);i+=every1){
630 displaytext += numberpattern.replace(/{X}/,i)+'<br \/>\n';
633 displaytext = "<div style='padding: 5px; background-color: #CCCCCC'>"+displaytext+"<\/div>";
634 document.getElementById("displayexample").innerHTML = displaytext;
637 function isArray(obj) {
638 if (obj.constructor.toString().indexOf("Array") == -1)
644 function moreoptionsupdate(fieldnames,rollover){
645 fieldname = fieldnames;
646 fld = fieldname.length;
648 fieldnametempnumber = fieldname.substr(fld);
649 //alert(fieldnametempnumber);
650 fieldnametemp = fieldname.slice(0,-1)+"temp"+fieldnametempnumber;
651 // alert(fieldnametemp);
652 eval("document.f."+fieldname+".value = document.f."+fieldnametemp+".value");
653 // alert (fieldname+" : "+eval("document.f."+fieldname+".value") +' '+fieldnametemp+' : ' +eval("document.f."+fieldnametemp+".value"));
655 eval("document.f.every"+(fieldnametempnumber-1)+".value = document.f."+fieldnametemp+".value");
660 function check_input(e){
661 var unicode=e.charCode? e.charCode : e.keyCode
662 if (unicode!=8 && unicode !=46 && unicode!=9 && unicode !=13){ // if key isn't backspace or delete
663 if (unicode<48||unicode>57) { // if not a number
664 alert(_("Needs to be entered in digit form -eg 10"));
665 return false // disable key press
670 function Create_biblio(f)
672 window.open('/cgi-bin/koha/cataloguing/addbiblio.pl?mode=popup','FindABibIndex','width=1024,height=768,toolbar=no,scrollbars=yes');
677 window.open('subscription-bib-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
680 function FindAcqui(f)
682 window.open('acqui-search.pl','FindASupplier','width=800,height=400,toolbar=no,scrollbars=yes');
685 function Find_ISSN(f)
687 window.open('issn-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
692 if (f.startdate.value.length != 0 && f.sublength.value > 0) {
693 if (f.irreg_check.value == 1) {
696 if(f.numbering_pattern.value == ''){
697 alert(_("need to choose a numbering pattern"));
699 alert(_("need to check for irregularity by clicking 'Irregularity?'"));
703 alert(_('field marked with * are mandatory'));
707 <!-- TMPL_IF name="mod" -->
708 window.onload = modify_num_pattern();
709 <!-- TMPL_IF name="hemisphere" -->
710 window.onload = hemispheres(<!-- TMPL_VAR NAME="hemisphere" -->);
713 <!-- TMPL_IF name="irregularity" -->
714 window.onload = irregularity_check();
715 window.onload = irregular_order();
721 <!-- TMPL_INCLUDE NAME="header.inc" -->
722 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
725 <div id="doc3" class="yui-t2">
733 <!-- TMPL_IF name="mod" -->
734 <h1>Modify a subscription</h1>
735 <form method="post" name="f" action="/cgi-bin/koha/serials/subscription-add.pl">
736 <input type="hidden" name="op" value="modsubscription" />
737 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
739 <h1>Add a subscription (Serial Holdings Record)</h1>
740 <form method="post" action="/cgi-bin/koha/serials/subscription-add.pl" name="f">
741 <input type="hidden" name="op" value="addsubscription" />
743 <input type="hidden" name="user" value="<!-- TMPL_VAR name="loggedinusername" -->" />
744 <input type="hidden" name="irreg_check" value="0" />
745 <input type="hidden" name="issuesexpected1" value="0" />
747 <h2>Subscription information for subscription #<!--TMPL_VAR name="subscriptionid"--></h2>
751 <td><!-- TMPL_VAR name="loggedinusername" --></td>
754 <td><label>Supplier:</label></td>
755 <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>
758 <td><label>Biblio</label></td>
760 <input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size="8" />
761 (<input type="text" name="title" value="<!-- TMPL_VAR name="bibliotitle" -->" disabled="disabled" readonly="readonly" />)
762 <a href="#" onclick="Plugin(f)">Search for Biblio</a> <!--TMPL_UNLESS Name="mod"--> |
763 <a href="#" onclick="Create_biblio(f)">Create Biblio</a><!--/TMPL_UNLESS-->
767 <td><label>Call Number</label></td>
768 <td><input type="text" name="callnumber" value="<!-- TMPL_VAR name="callnumber" -->" size="20" /></td>
773 <select name="branchcode">
774 <option value="">Any branch</option>
775 <!-- TMPL_LOOP name="branchloop" --><!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
777 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
780 </select> (select a branch)
784 <td><label>Notes</label></td>
785 <td><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></td>
788 <td><label>Management Notes</label></td>
789 <td><textarea name="internalnotes" cols="30" rows="2"><!-- TMPL_VAR name="internalnotes" --></textarea></td>
792 <td>Patron alert with </td>
794 <select name="letter">
795 <option value="">un-activated</option>
796 <!-- TMPL_LOOP name="letterloop" -->
797 <!-- TMPL_IF name="selected" -->
798 <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="lettername" --></option>
800 <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="lettername" --></option>
803 </select> (select a letter & patrons will be able to "follow" this subscription and recieve a mail on every new issue)
807 <td><b>Warning:</b></td>
810 <li>Remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
811 <li>You also must have selected a supplier if you want to ask for late issues</li>
816 <div id="subscription_form_planning">
820 <td>First Issue ETA:</td>
822 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="button2" style="cursor: pointer;" alt="" />
823 <input type="text" name="firstacquidate" value="<!-- TMPL_VAR name="startdate" -->" size="13" maxlength="10" id="acqui_date" />
824 <!-- both scripts for calendar must follow the input field -->
825 <script type="text/javascript">
827 inputField:"acqui_date",
828 ifFormat : "%d/%m/%Y",
833 <script type="text/javascript">
835 inputField : "acqui_date",
836 ifFormat : "%d/%m/%Y",
837 button : "acqui_date",
843 <div id="displayexample"></div>
847 <td>Frequency: (*)</td>
849 <select name="periodicity" size="1" onchange="javascript:document.getElementsByName('manualhist')[0].checked=(this.value==1);num_pattern;">
850 <option value="" selected="selected">-- please choose --</option>
851 <!-- TMPL_IF name="periodicity16" -->
852 <option value="16" selected="selected">Without Periodicity</option>
854 <option value="16">Without Periodicity</option>
856 <!-- TMPL_IF name="periodicity48" -->
857 <option value="48" selected="selected">Unknown</option>
859 <option value="48">Unknown</option>
861 <!-- TMPL_IF name="periodicity32" -->
862 <option value="32" selected="selected">Irregular</option>
864 <option value="32">Irregular</option>
867 <!-- TMPL_IF name="periodicity12" -->
868 <option value="12" selected="selected">2/day</option>
870 <option value="12">2/day</option>
872 <!-- TMPL_IF name="periodicity1" -->
873 <option value="1" selected="selected">1/day</option>
875 <option value="1">1/day</option>
877 <!-- TMPL_IF name="periodicity13" -->
878 <option value="13" selected="selected">3/week</option>
880 <option value="13">3/week</option>
882 <!-- TMPL_IF name="periodicity2" -->
883 <option value="2" selected="selected">1/week</option>
885 <option value="2">1/week</option>
887 <!-- TMPL_IF name="periodicity3" -->
888 <option value="3" selected="selected">1/2 weeks (2/month)</option>
890 <option value="3">1/2 weeks (2/months)</option>
892 <!-- TMPL_IF name="periodicity4" -->
893 <option value="4" selected="selected">1/3 weeks</option>
895 <option value="4">1/3 weeks</option>
897 <!-- TMPL_IF name="periodicity5" -->
898 <option value="5" selected="selected">1/month</option>
900 <option value="5">1/month</option>
902 <!-- TMPL_IF name="periodicity6" -->
903 <option value="6" selected="selected">1/2 months (6/year)</option>
905 <option value="6">1/2 months (6/year)</option>
907 <!-- TMPL_IF name="periodicity7" -->
908 <option value="7" selected="selected">1/3 months (1/quarter)</option>
910 <option value="7">1/3 months (1/quarter)</option>
912 <!-- periodicity8 is 1/quarter, exactly like periodicity7 but will use it for seasonal option -->
913 <!-- TMPL_IF name="periodicity8" -->
914 <option value="8" selected="selected">1/quarter (seasonal)</option>
916 <option value="8">1/quarter (seasonal)</option>
919 <!-- TMPL_IF name="periodicity9" -->
920 <option value="9" selected="selected">2/years</option>
922 <option value="9">2/year</option>
924 <!-- TMPL_IF name="periodicity10" -->
925 <option value="10" selected="selected">1/year</option>
927 <option value="10">1/year</option>
929 <!-- TMPL_IF name="periodicity11" -->
930 <option value="11" selected="selected">1/2 years</option>
932 <option value="11">1/2 years</option>
935 Manual History :<input type="checkbox" name="manualhist" value="1" />
939 <td>Numbering Pattern:</td>
941 <select name="numbering_pattern" size="1" id="numberpattern" onchange="num_pattern()">
942 <option value="" selected="selected">-- please choose --</option>
943 <!-- TMPL_IF name="numberpattern1" -->
944 <option value="1" selected="selected">Number</option>
946 <option value="1">Number</option>
948 <!-- TMPL_IF name="numberpattern2" -->
949 <option value="2" selected="selected">Volume, Number, Issue</option>
951 <option value="2">Volume, Number, Issue</option>
953 <!-- TMPL_IF name="numberpattern3" -->
954 <option value="3" selected="selected">Volume, Number</option>
956 <option value="3">Volume, Number</option>
958 <!-- TMPL_IF name="numberpattern4" -->
959 <option value="4" selected="selected">Volume, Issue</option>
961 <option value="4">Volume, Issue</option>
963 <!-- TMPL_IF name="numberpattern5" -->
964 <option value="5" selected="selected">Number, Issue</option>
966 <option value="5">Number, Issue</option>
968 <!-- TMPL_IF name="numberpattern6" -->
969 <option value="6" selected="selected">Seasonal only</option>
971 <option value="6">Seasonal only</option>
973 <!-- TMPL_IF name="numberpattern8" -->
974 <option value="8" selected="selected">Year/Number</option>
976 <option value="8">Year/Number</option>
978 <!-- TMPL_IF name="numberpattern7" -->
979 <option value="7" selected="selected">None of the above</option>
981 <option value="7">None of the above</option>
984 <div id="more_options"></div>
985 <div id="irregularity"></div>
989 <td>Begins On: (*)</td>
991 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="button1" style="cursor: pointer;" alt="" />
992 <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size="13" maxlength="10" id="beginning_date" />
993 <!-- both scripts for calendar must follow the input field -->
994 <script type="text/javascript">
996 inputField : "beginning_date",
997 ifFormat : "%d/%m/%Y",
1002 <script type="text/javascript">
1004 inputField : "beginning_date",
1005 ifFormat : "%d/%m/%Y",
1006 button : "beginning_date",
1013 <td>Subscription length</td>
1015 <select name="subtype">
1016 <!-- TMPL_LOOP NAME="subtype" -->
1017 <!-- TMPL_IF NAME="selected" -->
1018 <option value="<!-- TMPL_VAR NAME="name" -->" selected="selected">
1020 <option value="<!-- TMPL_VAR NAME="name" -->">
1022 <!-- TMPL_VAR NAME="name" -->
1026 <input type="text" name="sublength" value="<!-- TMPL_VAR name="sublength" -->" size="3" onkeypress="return check_input(event)" /> (*) (enter amount in numerals)
1030 <td>Numbering calculation</td>
1031 <td>Numbering formula: <input type="text" name="numberingmethod" id="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->" /></td>
1035 <div id="basetable" style="display: none;">
1036 <table class="small">
1046 <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->" />
1049 <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->" />
1052 <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->" />
1057 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->" /></td>
1058 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->" /></td>
1059 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->" /></td>
1062 <td>When more than</td>
1063 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->" /></td>
1064 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->" /></td>
1065 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->" /></td>
1067 <!-- TMPL_IF name="mod" -->
1069 <td>The loop is for instance</td>
1070 <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->" /></td>
1071 <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->" /></td>
1072 <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->" /></td>
1076 <td>Set back to</td>
1077 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->" /></td>
1078 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->" /></td>
1079 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->" /></td>
1083 <!-- TMPL_IF name="mod" -->
1089 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->" /></td>
1090 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->" /></td>
1091 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->" /></td>
1098 <!--TMPL_IF Name="history"-->
1099 <div id="subscription_form_history">
1103 <td>Starting date:</td>
1104 <td><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->" /> (the date of the 1st subscription)</td>
1107 <td>Ending date:</td>
1108 <td><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->" />(if empty : subscription still active)</td>
1111 <td>Recieved issues</td>
1112 <td><textarea name="recievedlist" cols="60" rows="5"><!-- TMPL_VAR name="recievedlist" --></textarea></td>
1115 <td>Missing issues</td>
1116 <td><textarea name="missinglist" cols="60" rows="5"><!-- TMPL_VAR name="missinglist" --></textarea></td>
1119 <td>Opac's notes</td>
1120 <td><textarea name="opacnote" cols="60" rows="5"><!-- TMPL_VAR name="opacnote" --></textarea></td>
1123 <td>Librarian notes</td>
1124 <td><textarea name="librariannote" cols="60" rows="5"><!-- TMPL_VAR name="librariannote" --></textarea></td>
1129 <!-- TMPL_IF name="mod" -->
1130 <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w" />
1132 <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w" />
1140 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
1143 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->