3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Serials › [% IF ( modify ) %][% bibliotitle |html %] › Modify subscription[% ELSE %]New subscription[% END %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 <style type="text/css">
8 fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
9 .yui-u li p label.widelabel {
10 width: 300px; /* not enough for IE7 apparently */
13 <script type="text/javascript">
16 var globalnumpatterndata;
18 var advancedpatternlocked;
19 var patternneedtobetested = 0;
20 [% IF ( irregularity ) %]patternneedtobetested=1[% END %]
22 function check_issues(){
23 if (globalfreqdata.unit.length >0) {
24 if (document.f.subtype.value == globalfreqdata.unit){
25 document.f.issuelengthcount.value=(document.f.sublength.value*globalfreqdata.issuesperunit)/globalfreqdata.unitsperissue;
26 } else if (document.f.subtype.value != "issues"){
27 alert(_("Frequency and subscription length provided doesn't combine well. Please consider entering an issue count rather than a time period."));
32 function addbiblioPopup(biblionumber) {
33 var destination = "/cgi-bin/koha/cataloguing/addbiblio.pl?mode=popup";
35 destination += "&biblionumber="+biblionumber;
37 window.open(destination,'AddBiblioPopup','width=1024,height=768,toolbar=no,scrollbars=yes');
42 window.open('subscription-bib-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
47 window.open('acqui-search.pl','FindASupplier','width=800,height=400,toolbar=no,scrollbars=yes');
52 window.open('issn-search.pl','FindABibIndex','width=800,height=400,toolbar=no,scrollbars=yes');
59 function Check_page1() {
60 if ( $("#aqbooksellerid").val().length == 0) {
61 input_box = confirm(_("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor"));
62 if (input_box==false) {
66 if ($("#biblionumber").val().length == 0) {
67 alert(_("You must choose or create a biblio"));
74 function Check_page2(){
75 [% UNLESS (more_than_one_serial) %]
76 if($("#acqui_date").val().length == 0){
77 alert(_("You must choose a first publication date"));
81 if($("#sublength").val().length == 0 && $("input[name='enddate']").val().length == 0){
82 alert(_("You must choose a subscription length or an end date."));
85 if(advancedpatternlocked == 0){
86 alert(_("You have modified the advanced prediction pattern. Please save your work or cancel modifications."));
89 if(patternneedtobetested){
90 [% IF (irregularity) %]
91 alert(_("Warning! Present pattern has planned irregularities. Click on 'Test prediction pattern' to check if it's still valid"));
92 [% ELSE %]alert(_("Please click on 'Test prediction pattern' before saving subscription."));[% END %]
99 function frequencyload(){
100 $.getJSON("subscription-frequency.pl",{"frequency_id":document.f.frequency.value,ajax:'true'},
102 globalfreqdata=freqdata;
103 if ( globalfreqdata.unit && globalfreqdata.unit.length == 0 ) {
104 var option = $("#subtype option[value='issues']");
105 $(option).attr('selected', 'selected');
106 $("#subtype option[value!='issues']").attr('disabled', 'disabled')
108 $("#subtype option").attr('disabled', false)
114 function numberpatternload(){
115 $.getJSON("subscription-numberpattern.pl",{"numberpattern_id":document.f.numbering_pattern.value,ajax:'true'},
116 function(numpatterndata){
117 globalnumpatterndata=numpatterndata;
118 if (globalnumpatterndata==undefined){
121 displaymoreoptions();
122 restoreAdvancedPattern();
127 function displaymoreoptions() {
128 if(globalnumpatterndata == undefined){
129 $("#moreoptionst").hide();
133 var X = 0, Y = 0, Z = 0;
134 var numberingmethod = globalnumpatterndata.numberingmethod;
135 if(numberingmethod.match(/{X}/)) X = 1;
136 if(numberingmethod.match(/{Y}/)) Y = 1;
137 if(numberingmethod.match(/{Z}/)) Z = 1;
140 $("#moreoptionst").show();
142 $("#moreoptionst").hide();
146 if(globalnumpatterndata.label1) {
147 $("#headerX").html(globalnumpatterndata.label1);
149 $("#headerX").html("X");
151 $("#headerX").show();
152 $("#beginsX").show();
155 $("#headerX").hide();
156 $("#beginsX").hide();
158 $("#lastvaluetemp1").val('');
159 $("#innerlooptemp1").val('');
162 if(globalnumpatterndata.label2) {
163 $("#headerY").html(globalnumpatterndata.label2);
165 $("#headerY").html("Y");
167 $("#headerY").show();
168 $("#beginsY").show();
171 $("#headerY").hide();
172 $("#beginsY").hide();
174 $("#lastvaluetemp2").val('');
175 $("#innerlooptemp2").val('');
178 if(globalnumpatterndata.label3) {
179 $("#headerZ").html(globalnumpatterndata.label3);
181 $("#headerZ").html("Z");
183 $("#headerZ").show();
184 $("#beginsZ").show();
187 $("#headerZ").hide();
188 $("#beginsZ").hide();
190 $("#lastvaluetemp3").val('');
191 $("#innerlooptemp3").val('');
195 function toggleAdvancedPattern() {
196 $("#advancedpredictionpattern").toggle();
199 function modifyAdvancedPattern() {
200 $("#patternname").attr("readonly", false).val('');
201 $("#numberingmethod").attr("readonly", false);
203 $("#advancedpredictionpatternt input").each(function() {
204 $(this).attr("readonly", false);
206 $("#advancedpredictionpatternt select").each(function() {
207 $(this).attr("disabled", false);
210 $("#restoreadvancedpatternbutton").show();
211 $("#saveadvancedpatternbutton").show();
212 $("#modifyadvancedpatternbutton").hide();
214 advancedpatternlocked = 0;
217 function restoreAdvancedPattern() {
218 $("#patternname").attr("readonly", true).val(globalnumpatterndata.label);
219 $("#numberingmethod").attr("readonly", true).val(globalnumpatterndata.numberingmethod);
221 $("#advancedpredictionpatternt input").each(function() {
222 $(this).attr("readonly", true);
223 var id = $(this).attr('id');
224 if(id.match(/lastvalue/) || id.match(/innerloop/)) {
225 var tempid = id.replace(/(\d)/, "temp$1");
226 $(this).val($("#"+tempid).val());
228 $(this).val(globalnumpatterndata[id]);
231 $("#advancedpredictionpatternt select").each(function() {
232 $(this).attr("disabled", true);
233 var id = $(this).attr('id');
234 $(this).val(globalnumpatterndata[id]);
237 $("#restoreadvancedpatternbutton").hide();
238 $("#saveadvancedpatternbutton").hide();
239 $("#modifyadvancedpatternbutton").show();
241 advancedpatternlocked = 1;
244 function testPredictionPattern() {
245 var frequencyid = $("#frequency").val();
249 if(frequencyid == undefined || frequencyid == ""){
250 error_msg += _("- Frequency is not defined") + "\n";
253 acquidate = $("#acqui_date").val();
254 if(acquidate == undefined || acquidate == ""){
255 error_msg += _("- First publication date is not defined") + "\n";
258 [% IF (more_than_one_serial) %]
259 var nextacquidate = $("#nextacquidate").val();
260 if(nextacquidate == undefined || nextacquidate == ""){
261 error_msg += _("- Next issue publication date is not defined") + "\n";
267 alert(_("Cannot test prediction pattern for the following reason(s): %s").format(error_msg));
271 var custompattern = 0;
272 if(advancedpatternlocked == 0) {
277 'custompattern': custompattern,
278 [% IF (subscriptionid) %]
279 'subscriptionid': [% subscriptionid %],
281 [% IF (more_than_one_serial) %]
282 'nextacquidate': nextacquidate,
284 'firstacquidate': acquidate
287 'to', 'subtype', 'sublength', 'frequency', 'numberingmethod',
288 'lastvalue1', 'lastvalue2', 'lastvalue3', 'add1', 'add2', 'add3',
289 'every1', 'every2', 'every3', 'innerloop1', 'innerloop2', 'innerloop3',
290 'setto1', 'setto2', 'setto3', 'numbering1', 'numbering2', 'numbering3',
291 'whenmorethan1', 'whenmorethan2', 'whenmorethan3', 'locale'
293 for(i in ajaxParams) {
294 var param = ajaxParams[i];
295 var value = $("#"+param).val();
297 ajaxData[param] = value;
301 url:"/cgi-bin/koha/serials/showpredictionpattern.pl",
303 success: function(data) {
304 $("#displayexample").html(data);
305 patternneedtobetested = 0;
310 function saveAdvancedPattern() {
311 if ($("#patternname").val().length == 0) {
312 alert(_("Please enter a name for this pattern"));
316 // Check if patternname already exists, and modify pattern
317 // instead of creating it if so
319 $("#numberpattern option").each(function(){
320 if($(this).text() == $("#patternname").val()){
327 var msg = _("This pattern name already exists. Do you want to modify it?")
328 + "\n" + _("Warning: it will modify the pattern for all subscriptions that are using it.");
329 cnfrm = confirm(msg);
335 'patternname', 'numberingmethod', 'label1', 'label2', 'label3',
336 'add1', 'add2', 'add3', 'every1', 'every2', 'every3',
337 'setto1', 'setto2', 'setto3', 'numbering1', 'numbering2', 'numbering3',
338 'whenmorethan1', 'whenmorethan2', 'whenmorethan3', 'locale'
340 for(i in ajaxParams) {
341 var param = ajaxParams[i];
342 var value = $("#"+param).val();
344 ajaxData[param] = value;
348 "/cgi-bin/koha/serials/create-numberpattern.pl",
351 if (data.numberpatternid) {
353 $("#numberpattern").append("<option value=\""+data.numberpatternid+"\">"+$("#patternname").val()+"</option>");
355 $("#numberpattern").val(data.numberpatternid);
358 alert(_("Something went wrong. Unable to create a new numbering pattern."));
365 function show_page_1() {
368 $("#page_number").text("1/2");
371 function show_page_2() {
374 $("#page_number").text("2/2");
375 displaymoreoptions();
379 $(document).ready(function() {
380 $("#aqbooksellerid").on('keypress', function(e) {
381 if (e.keyCode == 13) {
386 $("#biblionumber").on('keypress', function(e) {
387 if (e.keyCode == 13) {
392 $("select#frequency").change(function(){
393 patternneedtobetested = 1;
394 $("input[name='enddate']").val('');
397 $("select#numberpattern").change(function(){
398 patternneedtobetested = 1;
401 $("#subtype").change(function(){
402 $("input[name='enddate']").val('');
404 $("#sublength").change(function(){
405 $("input[name='enddate']").val('');
407 $("#lastvaluetemp1").keyup(function(){
408 $("#lastvalue1").val($(this).val());
410 $("#lastvaluetemp2").keyup(function(){
411 $("#lastvalue2").val($(this).val());
413 $("#lastvaluetemp3").keyup(function(){
414 $("#lastvalue3").val($(this).val());
416 $("#lastvalue1").keyup(function(){
417 $("#lastvaluetemp1").val($(this).val());
419 $("#lastvalue2").keyup(function(){
420 $("#lastvaluetemp2").val($(this).val());
422 $("#lastvalue3").keyup(function(){
423 $("#lastvaluetemp3").val($(this).val());
426 $("#innerlooptemp1").keyup(function(){
427 $("#innerloop1").val($(this).val());
429 $("#innerlooptemp2").keyup(function(){
430 $("#innerloop2").val($(this).val());
432 $("#innerlooptemp3").keyup(function(){
433 $("#innerloop3").val($(this).val());
435 $("#innerloop1").keyup(function(){
436 $("#innerlooptemp1").val($(this).val());
438 $("#innerloop2").keyup(function(){
439 $("#innerlooptemp2").val($(this).val());
441 $("#innerloop3").keyup(function(){
442 $("#innerlooptemp3").val($(this).val());
445 if($("#frequency").val() != ""){
448 if($("#numberpattern").val() != ""){
453 [% FOREACH field IN dont_export_field_loop %]
454 node = $("#[% field.fieldid %]");
455 if ( $(node).is('input') || $(node).is('textarea') ) {
457 } else if ( $(node).is('select') ) {
458 $(node).find("option:first").attr('selected','selected');
467 <body id="ser_subscription-add" class="ser">
468 [% INCLUDE 'header.inc' %]
469 [% INCLUDE 'serials-search.inc' %]
471 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › [% IF ( modify ) %]<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid %]"><i>[% bibliotitle |html %]</i></a> › Modify subscription[% ELSE %]New subscription[% END %]</div>
473 <div id="doc3" class="yui-t7">
476 <h1>[% IF ( modify ) %] Modify subscription for <i>[% bibliotitle |html %]</i>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h1>
477 <form method="post" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated" onsubmit="return Check_page2();" >
479 <input type="hidden" name="op" value="modsubscription" />
480 <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
482 <input type="hidden" name="op" value="addsubscription" />
484 <input type="hidden" name="user" value="[% loggedinusername %]" />
485 <input type="hidden" name="irreg_check" value="0" />
488 <div class="yui-u first">
489 <fieldset id="subscription_add_information" class="rows">
490 <legend>Subscription details</legend>
492 [% IF ( subscriptionid ) %]
493 <li><span class="label">Subscription #</span> [% subscriptionid %]</li>
496 <label for="aqbooksellerid">Vendor: </label>
497 <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername %]" disabled="disabled" readonly="readonly" />) <a href="#" onclick="FindAcqui(f)">Search for a vendor</a>
500 <label for="biblionumber" class="required" title="Subscriptions must be associated with a bibliographic record">Record:</label>
501 <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum %]" size="8" />
502 (<input type="text" name="title" value="[% bibliotitle %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
503 <div class="inputnote"> <a href="#" onclick="Plugin(f)">Search for record</a>
504 [% IF ( CAN_user_editcatalogue ) %]
506 | <a href="#" onclick="addbiblioPopup([% bibnum %]); return false;">Edit record</a>
508 | <a href="#" onclick="addbiblioPopup(); return false;">Create record</a>
514 [% IF ( serialsadditems ) %]
515 <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1" checked="checked" /><label class="widelabel" for="serialsadditems-yes">create an item record when receiving this serial</label></p>
516 <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" /><label class="widelabel" for="serialsadditems-no">do not create an item record when receiving this serial </label></p>
518 <p><input type="radio" id="serialsadditems-yes" name="serialsadditems" value="1"/><label class="widelabel" for="serialsadditems-yes">create an item record when receiving this serial</label></p>
519 <p><input type="radio" id="serialsadditems-no" name="serialsadditems" value="0" checked="checked" /><label class="widelabel" for="serialsadditems-no">do not create an item record when receiving this serial</label></p>
523 <p>When there is an irregular issue:</p>
524 [% IF (skip_serialseq) %]
526 <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" checked="checked" />
527 <label for="skip_serialseq_yes">Skip issue number</label>
530 <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" />
531 <label for="skip_serialseq_no">Keep issue number</label>
535 <input type="radio" id="skip_serialseq_yes" name="skip_serialseq" value="1" />
536 <label for="skip_serialseq_yes">Skip issue number</label>
539 <input type="radio" id="skip_serialseq_no" name="skip_serialseq" value="0" checked="checked" />
540 <label for="skip_serialseq_no">Keep issue number</label>
545 <label for="manualhistory">Manual history</label>
546 [% IF (manualhistory) %]
547 <input type="checkbox" id="manualhistory" name="manualhist" checked="checked" />
549 <input type="checkbox" id="manualhistory" name="manualhist" />
553 <label for="callnumber">Call number</label>
554 <input type="text" name="callnumber" id="callnumber" value="[% callnumber %]" size="20" />
557 <label for="branchcode">Library:</label>
558 <select name="branchcode" id="branchcode" style="width: 20em;">
559 [% UNLESS ( Independentbranches ) %]
560 <option value="">None</option>
562 [% FOREACH branchloo IN branchloop %]
563 [% IF ( branchloo.selected ) %]
564 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
566 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
569 </select> (select a library)
572 <label for="notes">Public note:</label>
573 <textarea name="notes" id="notes" cols="30" rows="2">[% notes %]</textarea>
576 <label for="internalnotes">Nonpublic note:</label>
577 <textarea name="internalnotes" id="internalnotes" cols="30" rows="2">[% internalnotes %]</textarea>
580 [% IF ( letterloop ) %]
581 <label for="letter">Patron notification: </label>
582 <select name="letter" id="letter">
583 <option value="">None</option>
584 [% FOREACH letterloo IN letterloop %]
585 [% IF ( letterloo.selected ) %]
586 <option value="[% letterloo.value %]" selected="selected">[% letterloo.lettername %]</option>
588 <option value="[% letterloo.value %]">[% letterloo.lettername %]</option>
592 <div class="hint">Selecting a notice will allow patrons to subscribe to notifications when a new issue is received.</div>
594 <span class="label">Patron notification: </span>
595 <div class="hint">To notify patrons of new serial issues, you must <a href="/cgi-bin/koha/tools/letter.pl">define a notice</a>.</div>
599 <label for="location">Location:</label>
600 <select name="location" id="location">
601 <option value="">None</option>
602 [% FOREACH locations_loo IN locations_loop %]
603 [% IF ( locations_loo.selected ) %]
604 <option value="[% locations_loo.authorised_value %]" selected="selected">[% locations_loo.lib %]</option>
606 <option value="[% locations_loo.authorised_value %]">[% locations_loo.lib %]</option>
612 <label for="graceperiod">Grace period:</label>
613 <input type="text" name="graceperiod" id="graceperiod" value="[% graceperiod %]" size="5"/> day(s)
616 <label class="widelabel" for="staffdisplaycount">Number of issues to display to staff: </label>
617 <input type="text" name="staffdisplaycount" id="staffdisplaycount" value="[% staffdisplaycount %]" size="4"/>
620 <label class="widelabel" for="opacdisplaycount">Number of issues to display to the public: </label>
621 <input type="text" name="opacdisplaycount" id="opacdisplaycount" value="[% opacdisplaycount %]" size="4"/>
625 <fieldset class="action">
626 <input type="button" value="Next >>" onclick="if ( Check_page1() ) show_page_2();" style="float:right;" />
632 <div class="yui-u first">
633 <div id="subscription_form_planning">
634 <fieldset class="rows">
635 <legend>Serials planning</legend>
638 <label for="firstacquidate" class="required">First issue publication date:</label>
639 [% UNLESS (more_than_one_serial) %]
640 <input type="text" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]" class="datepicker required" required="required" />
642 [% firstacquidate | $KohaDates %]
643 <input type="hidden" size="10" id="acqui_date" name="firstacquidate" value="[% firstacquidate | $KohaDates %]"/>
646 [% IF (more_than_one_serial) %]
648 <label for="nextacquidate">Next issue publication date:</label>
649 <input type="text" size="10" id="nextacquidate" name="nextacquidate" value="[% nextacquidate | $KohaDates %]" class="datepicker" />
653 <label for="frequency" class="required">Frequency:</label>
654 <select name="frequency" size="1" id="frequency" class="required" required="required">
655 <option value="">-- please choose --</option>
656 [% FOREACH frequency IN frequencies %]
657 [% IF (frequency.selected) %]
658 <option value="[% frequency.id %]" selected="selected">
660 <option value="[% frequency.id %]">
662 [% frequency.label %]
668 <label for="subtype">Subscription length:</label>
669 <select name="subtype" id="subtype">
670 [% FOREACH st IN subtypes %]
672 [% CASE 'numberlength' %]
673 [% IF st == subtype %]
674 <option value="issues" selected="selected">
676 <option value="issues">
679 [% CASE 'weeklength' %]
680 [% IF st == subtype %]
681 <option value="weeks" selected="selected">
683 <option value="weeks">
686 [% CASE 'monthlength' %]
687 [% IF st == subtype %]
688 <option value="months" selected="selected">
690 <option value="months">
698 <input type="text" name="sublength" id="sublength" value="[% sublength %]" size="3" /> (enter amount in numerals)
699 <input type="hidden" name="issuelengthcount">
702 <label for="startdate" class="required"> Subscription start date:</label>
703 <input type="text" size="10" id="from" name="startdate" value="[% startdate | $KohaDates %]" class="datepickerfrom required" required="required" />
706 <label for="enddate">Subscription end date:</label>
707 <input type="text" size="10" id="to" name="enddate" value="[% enddate | $KohaDates %]" class="datepickerto" />
710 <label for="numberpattern" class="required">Numbering pattern:</label>
711 <select name="numbering_pattern" size="1" id="numberpattern" class="required" required="required">
712 <option value="">-- please choose --</option>
713 [% FOREACH numberpattern IN numberpatterns %]
714 [% IF (numberpattern.selected) %]
715 <option value="[% numberpattern.id %]" selected="selected">
717 <option value="[% numberpattern.id %]">
719 [% numberpattern.label %]
725 <label for="locale">Locale</label>
726 <select id="locale" name="locale">
727 <option value=""></option>
728 [% FOREACH l IN locales %]
729 [% IF l.language == locale %]
730 <option value="[% l.language %]" selected="selected">[% l.description %]</option>
732 <option value="[% l.language %]">[% l.description %]</option>
736 <span class="hint">If empty, English is used</span>
738 <li id="more_options">
739 <table id="moreoptionst">
743 <th id="headerX"> </th>
744 <th id="headerY"> </th>
745 <th id="headerZ"> </th>
751 [% IF (more_than_one_serial) %]
757 <td id="beginsX"><input type="text" id="lastvaluetemp1" name="lastvaluetemp1" value="[% lastvalue1 %]" /></td>
758 <td id="beginsY"><input type="text" id="lastvaluetemp2" name="lastvaluetemp2" value="[% lastvalue2 %]" /></td>
759 <td id="beginsZ"><input type="text" id="lastvaluetemp3" name="lastvaluetemp3" value="[% lastvalue3 %]" /></td>
762 <td>Inner counter</td>
763 <td id="innerX"><input type="text" id="innerlooptemp1" name="innerlooptemp1" value="[% innerloop1 %]" /></td>
764 <td id="innerY"><input type="text" id="innerlooptemp2" name="innerlooptemp2" value="[% innerloop2 %]" /></td>
765 <td id="innerZ"><input type="text" id="innerlooptemp3" name="innerlooptemp3" value="[% innerloop3 %]" /></td>
770 <li><a style="cursor:pointer" onclick="toggleAdvancedPattern();">Show/Hide advanced pattern</a></li>
771 <div id="advancedpredictionpattern" style="display:none">
773 <label for="patternname" class="required">Pattern name:</label>
774 <input id="patternname" name="patternname" type="text" readonly="readonly" class="required" required="required" />
777 <label for="numberingmethod">Numbering formula:</label>
778 <input readonly="readonly" type="text" name="numberingmethod" id="numberingmethod" size="50" value="[% numberingmethod %]" />
780 <table id="advancedpredictionpatternt">
783 <th colspan="4">Advanced prediction pattern</td>
795 <td><input type="text" readonly="readonly" id="label1" name="label1" /></td>
796 <td><input type="text" readonly="readonly" id="label2" name="label2" /></td>
797 <td><input type="text" readonly="readonly" id="label3" name="label3" /></td>
801 <td><input type="text" readonly="readonly" id="lastvalue1" name="lastvalue1" /></td>
802 <td><input type="text" readonly="readonly" id="lastvalue2" name="lastvalue2" /></td>
803 <td><input type="text" readonly="readonly" id="lastvalue3" name="lastvalue3" /></td>
807 <td><input type="text" readonly="readonly" id="add1" name="add1" /></td>
808 <td><input type="text" readonly="readonly" id="add2" name="add2" /></td>
809 <td><input type="text" readonly="readonly" id="add3" name="add3" /></td>
813 <td><input type="text" readonly="readonly" id="every1" name="every1" /></td>
814 <td><input type="text" readonly="readonly" id="every2" name="every2" /></td>
815 <td><input type="text" readonly="readonly" id="every3" name="every3" /></td>
819 <td><input type="text" readonly="readonly" id="setto1" name="setto1" /></td>
820 <td><input type="text" readonly="readonly" id="setto2" name="setto2" /></td>
821 <td><input type="text" readonly="readonly" id="setto3" name="setto3" /></td>
824 <td>When more than</td>
825 <td><input type="text" readonly="readonly" id="whenmorethan1" name="whenmorethan1" /></td>
826 <td><input type="text" readonly="readonly" id="whenmorethan2" name="whenmorethan2" /></td>
827 <td><input type="text" readonly="readonly" id="whenmorethan3" name="whenmorethan3" /></td>
830 <td>Inner counter</td>
831 <td><input type="text" readonly="readonly" id="innerloop1" name="innerloop1" /></td>
832 <td><input type="text" readonly="readonly" id="innerloop2" name="innerloop2" /></td>
833 <td><input type="text" readonly="readonly" id="innerloop3" name="innerloop3" /></td>
836 [% BLOCK numbering_select %]
837 <select disabled="disabled" id="[% name %]" name="[% name %]" />
838 <option value=""></option>
839 <option value="dayname">Name of day</option>
840 <option value="monthname">Name of month</option>
841 <option value="season">Name of season</option>
845 <td>[% PROCESS numbering_select name="numbering1" %]</td>
846 <td>[% PROCESS numbering_select name="numbering2" %]</td>
847 <td>[% PROCESS numbering_select name="numbering3" %]</td>
851 <input id="modifyadvancedpatternbutton" type="button" value="Modify pattern" onclick="modifyAdvancedPattern();" />
852 <input id="restoreadvancedpatternbutton" type="button" value="Cancel modifications" onclick="restoreAdvancedPattern();" style="display:none" />
853 <input id="saveadvancedpatternbutton" type="button" value="Save as new pattern" onclick="saveAdvancedPattern();" style="display:none" />
858 [% IF additional_fields_for_subscription %]
859 <div id="subscription_additional_fields">
860 <fieldset class="rows">
861 <legend>Additional fields</legend>
863 [% FOR field IN additional_fields_for_subscription %]
865 <label for="additional_field_[% field.id %]"> [% field.name %]: </label>
866 [% IF field.authorised_value_choices %]
867 <select name="additional_field_[% field.id %]" id="additional_field_[% field.id %]">
868 [% FOREACH av IN field.authorised_value_choices %]
869 [% IF av.authorised_value == additional_fields.${field.name} %]
870 <option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option>
872 <option value="[% av.authorised_value %]">[% av.lib %]</option>
875 </select> (Authorised values for [% field.authorised_value_category %])
877 [% IF field.marcfield %]
878 <input type="text" value="[% additional_fields.${field.name} %]" id="additional_field_[% field.id %]" name="additional_field_[% field.id %]" readonly="readonly" />
879 This value will be filled with the [% field.marcfield %] subfield of the selected biblio.
881 <input type="text" value="[% additional_fields.${field.name} %]" id="additional_field_[% field.id %]" name="additional_field_[% field.id %]" />
891 <fieldset class="action">
892 <input type="button" value="<< Previous" onclick="show_page_1();" style="float:left;"/>
893 <input id="testpatternbutton" type="button" value="Test prediction pattern" onclick="testPredictionPattern();" />
894 <input type="submit" value="Save subscription" style="float:right;" accesskey="w" />
899 <li id="displayexample"></li>
907 [% INCLUDE 'intranet-bottom.inc' %]