1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Subscription edit<!--
2 TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-serials.inc" -->
6 <script language="Javascript" type="text/javascript">
8 // the english words used in display purposes
9 var text = new Array('Number','Volume','Issue','Month','Week','Starting with:','Rollover at:','Choose Hemisphere:','Northern','Southern',
10 'Autumn','Winter','Spring','Summer','Fall','Season','Year');
12 // common pre defined number patterns
13 function num_pattern() {
14 var patternchoice = '<!--TMPL_VAR NAME='numberpattern'-->';
15 switch(patternchoice){
17 options(text[1],text[0],text[2]);
22 options(text[1],text[0]);
27 options(text[1],text[2]);
32 options(text[0],text[2]);
38 var sYear = d.getFullYear();
39 // options_seasons(text[15],sYear);
56 function display_table(n) {
58 document.getElementById("basetable").style.display = 'block';
60 document.getElementById("basetable").style.display = 'none';
64 // to dispaly the options section
65 function options(x,y,z){
67 // alert("X: "+x+"Y: "+y+"Z: "+z);
69 document.f.xfield.value = x;
71 document.f.yfield.value = y;
73 document.f.zfield.value = z;
79 function irregularity(){
80 var periodicity = '<!-- TMPL_VAR NAME="periodicity"-->';
83 var names = new Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
86 <!-- TMPL_IF NAME="weekarrayjs" -->
87 var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
91 <!-- TMPL_IF NAME="weekarrayjs" -->
92 var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
96 <!-- TMPL_IF NAME="weekarrayjs" -->
97 var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->);
101 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
104 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
107 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
110 var names = new Array('Autumn','Winter','Spring','Summer','Fall');
113 var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
122 <!-- TMPL_IF NAME="irregularity" -->
123 var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
124 var irregarray = irregular.split('|');
125 var irregtext = '<p>';
126 for(var i=0;i<irregarray.length;i++){
127 irregtext += names[i]+' ';
130 document.getElementById("irreg").innerHTML = irregtext;
138 <h1>Subscription Details for biblio : <!-- TMPL_VAR name="biblionumber" --></h1>
139 <form class="inline" method="get" action="subscription-add.pl">
140 <input type="hidden" name="op" value="mod" />
141 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
142 <input type="submit" class="submit" title="Modify subscription" value="Edit" /></form>
144 <form class="inline" method="get" action="serials-receive.pl">
145 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
146 <input type="submit" class="submit" value="Receive Issues" /></form>
148 <form class="inline" method="get" action="serial-issues.pl">
149 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
150 <input type="submit" class="submit" title="All issues on this title" value="Issue History" /></form>
152 <form class="inline" method="get" action="/cgi-bin/koha/serials/serials-home.pl">
153 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
154 <input type="submit" class="submit" title="all subscriptions on <!-- TMPL_VAR name="bibliotitle" -->" value="Subscriptions" /></form>
156 <form class="inline" method="get" action="/cgi-bin/koha/catalogue/MARCdetail.pl">
157 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
158 <input type="submit" class="submit" title="go to <!-- TMPL_VAR name="bibliotitle" -->" value="View Biblio Record" /></form>
160 <form class="inline"><input type="submit" class="cancel" value="Delete Subscription" onclick="confirm_deletion(); return false;" /></form>
161 <!-- TMPL_IF NAME="routing" -->
162 <form class="inline" method="get" action="/cgi-bin/koha/serials/routing.pl">
163 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
164 <input type="submit" class="submit" value="Edit Routing List"/></form>
166 <form class="inline" method="get" action="/cgi-bin/koha/serials/routing.pl">
167 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
168 <input type="hidden" name="op" value="new" />
169 <input type="submit" class="submit" value="Create Routing List"/></form>
173 <tr valign="top"><td>
176 <h2>Subscription information</h2>
177 <p><label class="label100">Librarian identity:</label> <!-- TMPL_VAR name="librarian" --></p><br />
179 <p><label class="label100">Supplier:</label> <!-- TMPL_VAR name="aqbooksellername" --> </p>
181 <p><label class="label100">Cost:</label> <!-- TMPL_VAR name="cost" --> </p>
183 <p><label class="label100">Budget:</label> <!-- TMPL_VAR name="bookfundid" --> </p>
185 <p><label class="label100">Biblio:</label> <i>(<!-- TMPL_VAR name="biblionumber" -->)</i> <!-- TMPL_VAR name="bibliotitle" --></p><br />
186 <p><label class="label100">Call Number:</label> <!-- TMPL_VAR name="callnumber" --> </p>
188 <p><label class="label100">Notes:</label> <!-- TMPL_VAR name="notes" --></p>
194 <p><label class="label100">Beginning date:</label> <!-- TMPL_VAR name="publisheddate" -->
196 <p><label class="label100">Frequency (*):</label>
197 <!--TMPL_IF name="periodicity1" -->
200 <!--TMPL_IF name="periodicity2" -->
203 <!--TMPL_IF name="periodicity3" -->
206 <!--TMPL_IF name="periodicity4" -->
209 <!--TMPL_IF name="periodicity5" -->
212 <!--TMPL_IF name="periodicity6" -->
215 <!--TMPL_IF name="periodicity7" -->
218 <!--TMPL_IF name="periodicity8" -->
221 <!--TMPL_IF name="periodicity9" -->
224 <!--TMPL_IF name="periodicity10" -->
227 <!--TMPL_IF name="periodicity11" -->
231 <p><label class="label100">Number Pattern:</label>
232 <!-- TMPL_IF name="numberpattern1" -->
235 <!-- TMPL_IF name="numberpattern2" -->
236 Volume, Number, Issue
238 <!-- TMPL_IF name="numberpattern3" -->
241 <!-- TMPL_IF name="numberpattern4" -->
244 <!-- TMPL_IF name="numberpattern5" -->
247 <!-- TMPL_IF name="numberpattern6" -->
250 <!-- TMPL_IF name="numberpattern7" -->
254 <table cellpadding="0" cellspacing="0">
256 <td align="right"><input type="text" name="xfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
257 <!--TMPL_IF NAME="lastvalue2"-->
258 <td align="right"><input type="text" name="yfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
260 <!--TMPL_IF NAME="lastvalue3"-->
261 <td align="right"><input type="text" name="zfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
264 <tr><td><p><label class="label100">Starting with:</label></p></td>
265 <td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
266 <!--TMPL_IF NAME="lastvalue2"-->
267 <td align="center">
268 <!--TMPL_VAR NAME="lastvalue2"-->
271 <!--TMPL_IF NAME="lastvalue3"-->
272 <td align="center">
273 <!--TMPL_VAR NAME="lastvalue3"-->
277 <tr><td><p><label class="label100">Rollover:</label></p></td>
278 <td align="center"> </td>
279 <!--TMPL_IF NAME="whenmorethan2"-->
280 <td align="center">
281 <!--TMPL_VAR NAME="whenmorethan2"-->
284 <!--TMPL_IF NAME="whenmorethan3"-->
285 <td align="center">
286 <!--TMPL_VAR NAME="whenmorethan3"-->
291 <!-- TMPL_IF NAME="irregularity" -->
292 <p><label class="label100">Irregularity:</label>
293 <div id="irreg"></div>
296 <p><label class="label100">Begins on:</label>
297 <!--TMPL_VAR name="startdate" -->
302 <h2>Subscription length</h2>
303 <!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
304 <!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
305 <!-- TMPL_IF name="monthlength" --><p><label class="label100">Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
309 <h2>Numbering calculation</h2>
310 <p><label class="label100">Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
312 <div class="bloc25" id="basetable">
313 <table cellpadding="0" cellspacing="0" border="0" class="collapse">
315 <th class="cell-header"> </th>
316 <th class="cell-header">X</th>
317 <th class="cell-header">Y</th>
318 <th class="cell-header">Z</th>
321 <td class="cell">Add</td>
323 <!-- TMPL_VAR name="add1" -->
326 <!-- TMPL_VAR name="add2" -->
329 <!-- TMPL_VAR name="add3" -->
333 <td class="cell">once every</td>
334 <td class="cell"><!-- TMPL_VAR name="every1" --></td>
335 <td class="cell"><!-- TMPL_VAR name="every2" --></td>
336 <td class="cell"><!-- TMPL_VAR name="every3" --></td>
339 <td class="cell">When more than</td>
340 <td class="cell"><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br/>
341 <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
342 <td class="cell"><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br/>
343 <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
344 <td class="cell"><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br/>
345 <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
348 <td class="cell">Set back to</td>
349 <td class="cell"><!-- TMPL_VAR name="setto1" --></td>
350 <td class="cell"><!-- TMPL_VAR name="setto2" --></td>
351 <td class="cell"><!-- TMPL_VAR name="setto3" --></td>
357 <td class="cell"><!-- TMPL_VAR name="lastvalue1" --></td>
358 <td class="cell"><!-- TMPL_VAR name="lastvalue2" --></td>
359 <td class="cell"><!-- TMPL_VAR name="lastvalue3" --></td>
366 <table cellpadding="0" cellspacing="0" border="0" class="collapse">
368 <th class="cell-header">Issue number</th>
369 <th class="cell-header">Planned date</th>
370 <th class="cell-header">Status</th>
372 <!-- TMPL_LOOP name="serialslist" -->
375 <!-- TMPL_VAR name="serialseq" -->
378 <!-- TMPL_VAR name="planneddate" -->
381 <!--TMPL_IF name="status1" -->
384 <!--TMPL_IF name="status2" -->
387 <!--TMPL_IF name="status3" -->
390 <!--TMPL_IF name="status4" -->
402 <script type="text/javascript">
403 function _(s) { return s } // dummy function for gettext
404 function confirm_deletion() {
405 <!-- TMPL_IF name="totalissues" -->
406 var is_confirmed = confirm(_('You already made <!-- TMPL_VAR name="totalissues"--> receipts. Do you confirm deletion?'));
408 var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
411 window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
414 window.onload = num_pattern();
417 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->