This is a minor change, but affects all templates:
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / serials / subscription-detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Serials Detail for Subscription #<!-- TMPL_VAR name="subscriptionid" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
7
8 <script type="text/javascript" language="javascript">
9 <!--
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');
13
14 // common pre defined number patterns
15 // function num_pattern() {
16 // var patternchoice = '<!--TMPL_VAR NAME='numberpattern'-->';
17 //     switch(patternchoice){
18 //     case "2":
19 //         options(text[1],text[0],text[2]);
20 //         irregularity();
21 //         display_table(0);
22 //         break;
23 //     case "3":
24 //         options(text[1],text[0]);
25 //         irregularity();
26 //         display_table(0);
27 //         break;
28 //     case "4":
29 //         options(text[1],text[2]);
30 //         irregularity();
31 //         display_table(0);
32 //         break;
33 //     case "5":
34 //         options(text[0],text[2]);
35 //         irregularity();
36 //         display_table(0);
37 //         break;
38 //     case "6":
39 //         var d = new Date();
40 //         var sYear = d.getFullYear();
41 //         // options_seasons(text[15],sYear);
42 //         irregularity();
43 //         is_season = 1;
44 //         display_table(0);
45 //         break;
46 //     case "7":
47 //         display_table(1);
48 //         irregularity();
49 //         break;
50 //     default:
51 //         options(text[0]);
52 //         irregularity();
53 //         display_table(0);
54 //         break;
55 //     }
56 // }
57 // 
58 // function display_table(n) {
59 //     if(n==1){
60 //         document.getElementById("basetable").style.display = 'block';
61 //     } else {
62 //         document.getElementById("basetable").style.display = 'none';
63 //     }
64 // }
65
66 // to dispaly the options section
67 function options(x,y,z){
68 var textbox = '';
69     // alert("X: "+x+"Y: "+y+"Z: "+z);
70     if(x){
71         document.f.xfield.value = x;
72         if(y){
73             document.f.yfield.value = y;
74             if(z){
75                 document.f.zfield.value = z;
76             }
77         }
78     }
79 }
80
81 function irregularity(){
82     var periodicity = '<!-- TMPL_VAR NAME="periodicity"-->';
83     switch(periodicity){
84     case "1":
85         var names = new Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
86         break;
87     case "2":
88         <!-- TMPL_IF NAME="weekarrayjs" -->
89         var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->); 
90         <!-- /TMPL_IF -->
91         break;
92     case "3":
93         <!-- TMPL_IF NAME="weekarrayjs" -->
94         var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->); 
95         <!-- /TMPL_IF -->
96         break;
97     case "4":
98         <!-- TMPL_IF NAME="weekarrayjs" -->
99         var names = new Array(<!-- TMPL_VAR NAME="weekarrayjs" -->); 
100         <!-- /TMPL_IF -->
101         break;
102     case "5":
103         var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
104         break;
105     case "6":
106         var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
107         break;
108     case "7":
109         var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
110         break;
111     case "8":
112         var names = new Array('Autumn','Winter','Spring','Summer','Fall');
113         break;
114     case "9":
115         var names = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
116         break;
117     case "10":
118         expected =1;
119         break;
120     default:
121         break;
122     }
123
124     <!-- TMPL_IF NAME="irregularity" -->
125     var irregular = '<!-- TMPL_VAR NAME="irregularity" -->';
126     var irregarray = irregular.split('|');
127     var irregtext = '<p>';
128     for(var i=0;i<irregarray.length;i++){
129         irregtext += names[i]+' &nbsp;';
130     }
131     irregtext += '</p>';
132     document.getElementById("irreg").innerHTML = irregtext;
133     <!-- /TMPL_IF -->
134 }
135
136 -->
137 </script>
138     <h1>Subscription #<!--TMPL_VAR name="subscriptionid"--></h1>
139     <!--TMPL_IF Name="abouttoexpire"--><div class="problem">Subscription is by its end.<br />It should be renewed now.</div><!--/TMPL_IF-->
140     <div id="action">
141         <a href="subscription-add.pl?op=mod&amp;subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Edit</a>
142         <a href="subscription-add.pl?op=dup&amp;subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Duplicate </a>
143         <a href="subscription-renew.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Renew</a>
144         <a href="serials-edit.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&amp;serstatus=1">Receive</a>
145         <a href="serials-collection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Serial Collection</a>
146         <!-- TMPL_IF NAME="routing" -->
147         <a href="routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit Routing List</a>
148         <!-- TMPL_ELSE -->
149         <a href="routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&op=new">Create Routing List</a>
150         <!-- /TMPL_IF -->
151         <!-- TMPL_UNLESS name="totalissues" -->
152             <a href="javascript:confirm_deletion()">
153                 delete
154             </a>
155         <!-- /TMPL_UNLESS -->
156     </div>
157     <br />
158     <fieldset>
159         <legend>Subscription information</legend>
160         <p><label>Librarian identity:</label> <!-- TMPL_VAR name="librarian" --></p>
161         <p><label>Supplier:</label> <a href="/cgi-bin/koha/acqui/supplier.pl?id=<!-- TMPL_VAR name="aqbooksellerid"-->"><!-- TMPL_VAR name="aqbooksellername" -->&nbsp;</a></p>
162         <p><label>Biblio:</label> <i>(<!-- TMPL_VAR name="biblionumber" -->)</i> <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR name="bibliotitle" --></a></p><br />
163 <!-- TMPL_IF name="branchcode" --><p><label>Branch :</label> <!-- TMPL_VAR name="branchcode" -->&nbsp;</p><!-- /TMPL_IF -->
164         <!-- TMPL_IF name="callnumber" --><p><label>Call Number:</label> <!-- TMPL_VAR name="callnumber" -->&nbsp;</p><!-- /TMPL_IF -->
165         <!-- TMPL_IF name="letter" --><p><label>Patron alert with:</label> <!-- TMPL_VAR name="letter" -->&nbsp;</p><!-- /TMPL_IF -->
166         <!-- TMPL_IF name="notes" --><p><label>Notes:</label> <!-- TMPL_VAR name="notes" --></p><!-- /TMPL_IF -->
167         <!-- TMPL_IF name="internalnotes" --><p><label>Management Notes:</label> <!-- TMPL_VAR name="internalnotes" --></p><!-- /TMPL_IF -->
168         
169     </fieldset>
170     <form name="f">
171     <fieldset>
172         <legend>Planning</legend>
173             <p><label>Beginnning date:</label> <!-- TMPL_VAR name="startdate" -->
174             </p>
175             <p><label>Frequency (*):</label>
176                 <!--TMPL_IF name="periodicity1" -->
177                         1/day
178                 <!-- /TMPL_IF -->
179                 <!--TMPL_IF name="periodicity2" -->
180                         1/week
181                 <!-- /TMPL_IF -->
182                 <!--TMPL_IF name="periodicity3" -->
183                         1/2 weeks
184                 <!-- /TMPL_IF -->
185                 <!--TMPL_IF name="periodicity4" -->
186                         1/3 weeks
187                 <!-- /TMPL_IF -->
188                 <!--TMPL_IF name="periodicity5" -->
189                         1/Month
190                 <!-- /TMPL_IF -->
191                 <!--TMPL_IF name="periodicity6" -->
192                         1/2 Months (6/year)
193                 <!-- /TMPL_IF -->
194                 <!--TMPL_IF name="periodicity7" -->
195                         1/quarter
196                 <!-- /TMPL_IF -->
197                 <!--TMPL_IF name="periodicity8" -->
198                         1/quarter
199                 <!-- /TMPL_IF -->
200                 <!--TMPL_IF name="periodicity9" -->
201                         2/year
202                 <!-- /TMPL_IF -->
203                 <!--TMPL_IF name="periodicity10" -->
204                         1/year
205                 <!-- /TMPL_IF -->
206                 <!--TMPL_IF name="periodicity11" -->
207                         1/2 years
208                 <!-- /TMPL_IF -->
209               Manual history : <input type="checkbox" <!--TMPL_IF Name="manualhistory"-->checked<!--/TMPL_IF--> disabled>
210             </p>
211             <p><label>Number Pattern:</label>
212                 <!-- TMPL_IF name="numberpattern1" -->
213                     Number
214                 <!-- /TMPL_IF -->
215                 <!-- TMPL_IF name="numberpattern2" -->
216                     Volume, Number, Issue
217                 <!-- /TMPL_IF -->
218                 <!-- TMPL_IF name="numberpattern3" -->
219                     Volume, Number
220                 <!-- /TMPL_IF -->
221                 <!-- TMPL_IF name="numberpattern4" -->
222                     Volume, Issue
223                 <!-- /TMPL_IF -->
224                 <!-- TMPL_IF name="numberpattern5" -->
225                     Number, Issue
226                 <!-- /TMPL_IF -->
227                 <!-- TMPL_IF name="numberpattern6" -->
228                     Seasonal only
229                 <!-- /TMPL_IF -->
230                 <!-- TMPL_IF name="numberpattern7" -->
231                     None of the above
232                 <!-- /TMPL_IF -->
233             </p>
234             <table cellpadding="0" cellspacing="0">
235             <tr><td>&nbsp;</td>
236                 <td align="right"><input type="text" name="xfield" style="border:0px solid #FFFFFF; text-align:center;" /></td>
237             <!--TMPL_IF NAME="lastvalue2"-->
238                 <td align="right"><input type="text" name="yfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
239             <!--/TMPL_IF-->
240             <!--TMPL_IF NAME="lastvalue3"-->
241                 <td align="right"><input type="text" name="zfield" style="border:0px solid #FFFFFF; text-align:center;"></td>
242             <!--/TMPL_IF-->
243             </tr>
244             <tr><td><p><label>Starting with:</label></p></td>
245                 <td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
246             <!--TMPL_IF NAME="lastvalue2"-->
247                 <td align="center">&nbsp; 
248                     <!--TMPL_VAR NAME="lastvalue2"-->
249                 </td>
250             <!--/TMPL_IF-->
251             <!--TMPL_IF NAME="lastvalue3"-->
252                 <td align="center">&nbsp; 
253                     <!--TMPL_VAR NAME="lastvalue3"-->
254                 </td>
255             <!--/TMPL_IF-->
256             </tr>
257             <tr><td><p><label>Rollover:</label></p></td>
258                 <td align="center">&nbsp;</td>
259             <!--TMPL_IF NAME="whenmorethan2"-->
260                 <td align="center">&nbsp; 
261                     <!--TMPL_VAR NAME="whenmorethan2"-->
262                 </td>
263             <!--/TMPL_IF-->
264             <!--TMPL_IF NAME="whenmorethan3"-->
265                 <td align="center">&nbsp; 
266                     <!--TMPL_VAR NAME="whenmorethan3"-->
267                 </td>
268             <!--/TMPL_IF-->
269             </tr>
270             </table>
271             <!-- TMPL_IF NAME="irregularity" -->
272             <p><label>Irregularity:</label>
273                 <div id="irreg"></div>
274             </p>
275             <!-- /TMPL_IF -->
276             <p><label>Begins on:</label>
277                 <!--TMPL_VAR name="startdate" -->
278             </p>
279             </form>
280         <!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
281         <!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
282         <!-- TMPL_IF name="monthlength" --><p><label>Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
283     </fieldset>
284     <h2>Numbering calculation</h2>
285     <p><label>Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
286     <table>
287         <tr>
288             <th>&nbsp;</th>
289             <th>X</th>
290             <th>Y</th>
291             <th>Z</th>
292             </tr>
293             <tr>
294                 <td>Add</td>
295                 <td>
296                     <!-- TMPL_VAR name="add1" -->
297                 </td>
298                 <td>
299                     <!-- TMPL_VAR name="add2" -->
300                 </td>
301                 <td>
302                     <!-- TMPL_VAR name="add3" -->
303                 </td>
304             </tr>
305             <tr>
306                 <td>once every</td>
307                 <td><!-- TMPL_VAR name="every1" --></td>
308                 <td><!-- TMPL_VAR name="every2" --></td>
309                 <td><!-- TMPL_VAR name="every3" --></td>
310             </tr>
311             <tr>
312                 <td>When more than</td>
313                 <td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br/>
314                     <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
315                 <td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br/>
316                     <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
317                 <td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br/>
318                     <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
319             </tr>
320             <tr>
321                 <td>Set back to</td>
322                 <td><!-- TMPL_VAR name="setto1" --></td>
323                 <td><!-- TMPL_VAR name="setto2" --></td>
324                 <td><!-- TMPL_VAR name="setto3" --></td>
325             </tr>
326             <tr>
327                 <td>
328                         Last value
329                 </td>
330                 <td><!-- TMPL_VAR name="lastvalue1" --></td>
331                 <td><!-- TMPL_VAR name="lastvalue2" --></td>
332                 <td><!-- TMPL_VAR name="lastvalue3" --></td>
333             </tr>
334         </table>
335 </fieldset>
336 <fieldset>
337     <legend>Serial issues</legend>
338     <table cellpadding="0" cellspacing="0">
339     <tr>
340         <th>Issue number</th>
341         <th>Planned date</th>
342         <th>Status</th>
343     </tr>
344     <!-- TMPL_LOOP name="serialslist" -->
345         <tr>
346             <td>
347                 <!-- TMPL_VAR name="serialseq" -->
348             </td>
349             <td>
350                 <!-- TMPL_VAR name="planneddate" -->
351             </td>
352             <td>
353                     <!--TMPL_IF name="status1" -->
354                         Waited
355                     <!-- /TMPL_IF -->
356                     <!--TMPL_IF name="status2" -->
357                         Arrived
358                     <!-- /TMPL_IF -->
359                     <!--TMPL_IF name="status3" -->
360                         Late
361                     <!-- /TMPL_IF -->
362                     <!--TMPL_IF name="status4" -->
363                         Missing
364                     <!-- /TMPL_IF -->
365             </td>
366         </tr>
367     <!-- /TMPL_LOOP -->
368     </table>
369         <h3>Subscription summary</h3>
370       <table cellpadding="0" cellspacing="0">
371         <tr>
372           <td><label>Start Date :</label></td>
373           <td> <!-- TMPL_VAR name="histstartdate" --> </td>
374         </tr>
375         <tr>
376           <td><label>End Date :</label></td>
377           <td> <!-- TMPL_VAR name="enddate" --></td>
378         </tr>
379                 <tr><td><label>Recieved issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
380                 <tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
381                 <tr><td><label>Librarian's note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
382                 <tr><td><label>Opac's note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
383       </table>
384 </fieldset>
385 </div>
386 <script type="text/javascript">
387 function _(s) { return s } // dummy function for gettext
388 function confirm_deletion() {
389     var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
390     if (is_confirmed) {
391         window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
392     }
393 }
394 function popup(link) {
395     newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
396 }
397
398 // window.onload = num_pattern();
399 </script>
400 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->