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