Changing pattern Number to Number only.
[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. 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     <div id="subscription_info">
158         <h2>Subscription information</h2>
159         <p><label>Librarian identity:</label> <!-- TMPL_VAR name="librarian" --></p>
160         <p><label>Supplier:</label> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- 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     </div>
169     <div id="subscription_planning">
170         <h2>Planning</h2>
171             <p><label>Beginnning date:</label> <!-- TMPL_VAR name="startdate" -->
172             </p>
173             <p><label>Frequency (*):</label>
174                 <!--TMPL_IF name="periodicity1" -->
175                         1/day
176                 <!-- /TMPL_IF -->
177                 <!--TMPL_IF name="periodicity2" -->
178                         1/week
179                 <!-- /TMPL_IF -->
180                 <!--TMPL_IF name="periodicity3" -->
181                         1/2 weeks
182                 <!-- /TMPL_IF -->
183                 <!--TMPL_IF name="periodicity4" -->
184                         1/3 weeks
185                 <!-- /TMPL_IF -->
186                 <!--TMPL_IF name="periodicity5" -->
187                         1/Month
188                 <!-- /TMPL_IF -->
189                 <!--TMPL_IF name="periodicity6" -->
190                         1/2 Months (6/year)
191                 <!-- /TMPL_IF -->
192                 <!--TMPL_IF name="periodicity7" -->
193                         1/quarter
194                 <!-- /TMPL_IF -->
195                 <!--TMPL_IF name="periodicity8" -->
196                         1/quarter
197                 <!-- /TMPL_IF -->
198                 <!--TMPL_IF name="periodicity9" -->
199                         2/year
200                 <!-- /TMPL_IF -->
201                 <!--TMPL_IF name="periodicity10" -->
202                         1/year
203                 <!-- /TMPL_IF -->
204                 <!--TMPL_IF name="periodicity11" -->
205                         1/2 years
206                 <!-- /TMPL_IF -->
207               Manual history :
208                 <!--TMPL_IF Name="manualhistory"-->
209                     <input type="checkbox" checked disabled>
210                 <!-- TMPL_ELSE -->
211                     <input type="checkbox" disabled>
212                 <!--/TMPL_IF-->
213             </p>
214             <p><label>Number Pattern:</label>
215                 <!-- TMPL_IF name="numberpattern1" -->
216                     Number only
217                 <!-- /TMPL_IF -->
218                 <!-- TMPL_IF name="numberpattern2" -->
219                     Volume, Number, Issue
220                 <!-- /TMPL_IF -->
221                 <!-- TMPL_IF name="numberpattern3" -->
222                     Volume, Number
223                 <!-- /TMPL_IF -->
224                 <!-- TMPL_IF name="numberpattern4" -->
225                     Volume, Issue
226                 <!-- /TMPL_IF -->
227                 <!-- TMPL_IF name="numberpattern5" -->
228                     Number, Issue
229                 <!-- /TMPL_IF -->
230                 <!-- TMPL_IF name="numberpattern6" -->
231                     Seasonal only
232                 <!-- /TMPL_IF -->
233                 <!-- TMPL_IF name="numberpattern7" -->
234                     None of the above
235                 <!-- /TMPL_IF -->
236             </p>
237             <table>
238             <tr><td><p>Starting with:</p></td>
239                 <td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
240             <!--TMPL_IF NAME="lastvalue2"-->
241                 <td align="center">&nbsp; 
242                     <!--TMPL_VAR NAME="lastvalue2"-->
243                 </td>
244             <!--/TMPL_IF-->
245             <!--TMPL_IF NAME="lastvalue3"-->
246                 <td align="center">&nbsp; 
247                     <!--TMPL_VAR NAME="lastvalue3"-->
248                 </td>
249             <!--/TMPL_IF-->
250             </tr>
251             <tr><td><p>Rollover:</p></td>
252                 <td align="center">&nbsp;</td>
253             <!--TMPL_IF NAME="whenmorethan2"-->
254                 <td align="center">&nbsp; 
255                     <!--TMPL_VAR NAME="whenmorethan2"-->
256                 </td>
257             <!--/TMPL_IF-->
258             <!--TMPL_IF NAME="whenmorethan3"-->
259                 <td align="center">&nbsp; 
260                     <!--TMPL_VAR NAME="whenmorethan3"-->
261                 </td>
262             <!--/TMPL_IF-->
263             </tr>
264             </table>
265             <!-- TMPL_IF NAME="irregularity" -->
266             <p><label>Irregularity:</label>
267                 <div id="irreg"></div>
268             </p>
269             <!-- /TMPL_IF -->
270             <p><label>Begins on:</label>
271                 <!--TMPL_VAR name="startdate" -->
272             </p>
273         <!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
274         <!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
275         <!-- TMPL_IF name="monthlength" --><p><label>Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
276     </div>
277     <div id="subscription_numbering">
278         <h2>Numbering calculation</h2>
279         <p><label>Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
280         <table>
281             <tr>
282                 <th>&nbsp;</th>
283                 <th>X</th>
284                 <th>Y</th>
285                 <th>Z</th>
286                 </tr>
287                 <tr>
288                     <td>Add</td>
289                     <td>
290                         <!-- TMPL_VAR name="add1" -->
291                     </td>
292                     <td>
293                         <!-- TMPL_VAR name="add2" -->
294                     </td>
295                     <td>
296                         <!-- TMPL_VAR name="add3" -->
297                     </td>
298                 </tr>
299                 <tr>
300                     <td>once every</td>
301                     <td><!-- TMPL_VAR name="every1" --></td>
302                     <td><!-- TMPL_VAR name="every2" --></td>
303                     <td><!-- TMPL_VAR name="every3" --></td>
304                 </tr>
305                 <tr>
306                     <td>When more than</td>
307                     <td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br/>
308                         <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
309                     <td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br/>
310                         <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
311                     <td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br/>
312                         <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
313                 </tr>
314                 <tr>
315                     <td>Set back to</td>
316                     <td><!-- TMPL_VAR name="setto1" --></td>
317                     <td><!-- TMPL_VAR name="setto2" --></td>
318                     <td><!-- TMPL_VAR name="setto3" --></td>
319                 </tr>
320                 <tr>
321                     <td>
322                             Last value
323                     </td>
324                     <td><!-- TMPL_VAR name="lastvalue1" --></td>
325                     <td><!-- TMPL_VAR name="lastvalue2" --></td>
326                     <td><!-- TMPL_VAR name="lastvalue3" --></td>
327                 </tr>
328             </table>
329     </div>
330     <div id="subscription_issues">
331         <h2>Serial issues</h2>
332         <table>
333         <tr>
334             <th>Issue number</th>
335             <th>Planned date</th>
336             <th>Status</th>
337         </tr>
338         <!-- TMPL_LOOP name="serialslist" -->
339             <tr>
340                 <td>
341                     <!-- TMPL_VAR name="serialseq" -->
342                 </td>
343                 <td>
344                     <!-- TMPL_VAR name="planneddate" -->
345                 </td>
346                 <td>
347                         <!--TMPL_IF name="status1" -->
348                             Waited
349                         <!-- /TMPL_IF -->
350                         <!--TMPL_IF name="status2" -->
351                             Arrived
352                         <!-- /TMPL_IF -->
353                         <!--TMPL_IF name="status3" -->
354                             Late
355                         <!-- /TMPL_IF -->
356                         <!--TMPL_IF name="status4" -->
357                             Missing
358                         <!-- /TMPL_IF -->
359                 </td>
360             </tr>
361         <!-- /TMPL_LOOP -->
362         </table>
363     </div>
364     <div id="subscription_summary">
365         <h2>Subscription summary</h2>
366         <table cellpadding="0" cellspacing="0">
367         <tr>
368             <td><label>Start Date :</label></td>
369             <td> <!-- TMPL_VAR name="histstartdate" --> </td>
370         </tr>
371         <tr>
372             <td><label>End Date :</label></td>
373             <td> <!-- TMPL_VAR name="enddate" --></td>
374         </tr>
375                 <tr><td><label>Recieved issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
376                 <tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
377                 <tr><td><label>Librarian's note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
378                 <tr><td><label>Opac's note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
379         </table>
380     </div>
381 </div>
382 <script type="text/javascript">
383 function _(s) { return s } // dummy function for gettext
384 function confirm_deletion() {
385     var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
386     if (is_confirmed) {
387         window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
388     }
389 }
390 function popup(link) {
391     newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
392 }
393
394 // window.onload = num_pattern();
395 </script>
396 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->