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