(bug #3339) fix rollover showed value
[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
7 // the english words used in display purposes
8 var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
9 "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
10
11
12 // to display the options section
13 function options(x,y,z){
14 var textbox = '';
15     // alert("X: "+x+"Y: "+y+"Z: "+z);
16     if(x){
17         document.f.xfield.value = x;
18         if(y){
19             document.f.yfield.value = y;
20             if(z){
21                 document.f.zfield.value = z;
22             }
23         }
24     }
25 }
26
27 function confirm_deletion() {
28     var is_confirmed = confirm(_("Are you sure you want to delete this subscription?"));
29     if (is_confirmed) {
30         window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
31     }
32 }
33 function popup(subscriptionid) {
34     newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
35 }
36
37 -->
38 </script>
39 </head>
40 <body>
41 <!-- TMPL_INCLUDE NAME="header.inc" -->
42 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
43
44 <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>
45
46 <div id="doc3" class="yui-t2">
47    
48    <div id="bd">
49         <div id="yui-main">
50         <div class="yui-b">
51         <!-- TMPL_INCLUDE NAME="serials-toolbar.inc" -->
52
53     <h1>Subscription for <!-- TMPL_VAR name="bibliotitle" --> </h1>
54     <!--TMPL_IF Name="abouttoexpire"--><div class="problem">Subscription is near its end. It should be renewed now.</div><!--/TMPL_IF-->
55     
56     <div id="subscription_info">
57         <h2>Subscription information</h2>
58                 <ul>
59                 <li><span class="label">Subscription ID: </span><!--TMPL_VAR name="subscriptionid"--></li>
60         <li><span class="label">Librarian identity:</span> <!-- TMPL_VAR name="librarian" --></li>
61         <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="aqbooksellerid"-->"><!-- TMPL_VAR name="aqbooksellername" -->&nbsp;</a></li>
62         <li><span class="label">Biblio:</span> <i>(<!-- TMPL_VAR name="bibnum" -->)</i> <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="bibnum" -->"><!-- TMPL_VAR name="bibliotitle" --></a></li>
63 <!-- TMPL_IF name="branchcode" --><li><span class="label">Library:</span> <!-- TMPL_VAR name="branchcode" -->&nbsp;</li><!-- /TMPL_IF -->
64         <!-- TMPL_IF name="serialsadditems" -->
65             <li>Serial receipt creates an item record.</li>
66         <!-- TMPL_ELSE -->
67             <li>Serial receipt does not create an item record.</li>
68         <!-- /TMPL_IF -->
69         <li><span class="label">Grace period:</span> <!-- TMPL_VAR name="graceperiod" -->&nbsp;</li>
70         <!-- TMPL_IF name="location" --><li><span class="label">Location:</span> <!-- TMPL_VAR name="location" -->&nbsp;</li><!-- /TMPL_IF -->
71         <!-- TMPL_IF name="callnumber" --><li><span class="label">Call Number:</span> <!-- TMPL_VAR name="callnumber" -->&nbsp;</li><!-- /TMPL_IF -->
72                 <!-- TMPL_IF NAME="staffdisplaycount" --><li><span class="label">Number of issues to display to staff</span>:&nbsp;<!-- TMPL_VAR NAME="staffdisplaycount" -->&nbsp;</li><!-- /TMPL_IF -->
73                 <!-- TMPL_IF NAME="opacdisplaycount" --><li><span class="label">Number of issues to display to the public</span>:&nbsp;<!-- TMPL_VAR NAME="opacdisplaycount" -->&nbsp;</li><!-- /TMPL_IF -->
74         <!-- TMPL_IF name="letter" --><li><span class="label">Patron alert with:</span> <!-- TMPL_VAR name="letter" -->&nbsp;</li><!-- /TMPL_IF -->
75         <!-- TMPL_IF name="notes" --><li><span class="label">Notes:</span> <!-- TMPL_VAR name="notes" --></li><!-- /TMPL_IF -->
76         <!-- TMPL_IF name="internalnotes" --><li><span class="label">Management Notes:</span> <!-- TMPL_VAR name="internalnotes" --></li><!-- /TMPL_IF -->
77      </ul>
78     </div>
79     <div id="subscription_planning">
80         <h2>Planning</h2>
81             <p><label>Beginning date:</label> <!-- TMPL_VAR name="startdate" -->
82             </p>
83             <p><label>Frequency (*):</label>
84                 <!--TMPL_IF name="periodicity16" -->
85                         Without regularity
86                 <!-- /TMPL_IF -->
87                 <!--TMPL_IF name="periodicity32" -->
88                         Irregular
89                 <!-- /TMPL_IF -->
90                 <!--TMPL_IF name="periodicity0" -->
91                         Unknown
92                 <!-- /TMPL_IF -->
93                 <!--TMPL_IF name="periodicity12" -->
94                         2/day
95                 <!-- /TMPL_IF -->
96                 <!--TMPL_IF name="periodicity1" -->
97                         1/day
98                 <!-- /TMPL_IF -->
99                 <!--TMPL_IF name="periodicity13" -->
100                         3/week
101                 <!-- /TMPL_IF -->
102                 <!--TMPL_IF name="periodicity2" -->
103                         1/week
104                 <!-- /TMPL_IF -->
105                 <!--TMPL_IF name="periodicity3" -->
106                         1/2 weeks
107                 <!-- /TMPL_IF -->
108                 <!--TMPL_IF name="periodicity4" -->
109                         1/3 weeks
110                 <!-- /TMPL_IF -->
111                 <!--TMPL_IF name="periodicity5" -->
112                         1/Month
113                 <!-- /TMPL_IF -->
114                 <!--TMPL_IF name="periodicity6" -->
115                         1/2 Months (6/year)
116                 <!-- /TMPL_IF -->
117                 <!--TMPL_IF name="periodicity7" -->
118                         1/quarter
119                 <!-- /TMPL_IF -->
120                 <!--TMPL_IF name="periodicity8" -->
121                         1/quarter
122                 <!-- /TMPL_IF -->
123                 <!--TMPL_IF name="periodicity9" -->
124                         2/year
125                 <!-- /TMPL_IF -->
126                 <!--TMPL_IF name="periodicity10" -->
127                         1/year
128                 <!-- /TMPL_IF -->
129                 <!--TMPL_IF name="periodicity11" -->
130                         1/2 years
131                 <!-- /TMPL_IF -->
132               Manual history :
133                 <!--TMPL_IF Name="manualhistory"-->
134                     <input type="checkbox" checked="checked" disabled="disabled" />
135                 <!-- TMPL_ELSE -->
136                     <input type="checkbox" disabled="disabled" />
137                 <!--/TMPL_IF-->
138             </p>
139             <p><label>Number pattern:</label>
140                 <!-- TMPL_IF name="numberpattern1" -->
141                     Number only
142                 <!-- /TMPL_IF -->
143                 <!-- TMPL_IF name="numberpattern2" -->
144                     Volume, Number, Issue
145                 <!-- /TMPL_IF -->
146                 <!-- TMPL_IF name="numberpattern3" -->
147                     Volume, Number
148                 <!-- /TMPL_IF -->
149                 <!-- TMPL_IF name="numberpattern4" -->
150                     Volume, Issue
151                 <!-- /TMPL_IF -->
152                 <!-- TMPL_IF name="numberpattern5" -->
153                     Number, Issue
154                 <!-- /TMPL_IF -->
155                 <!-- TMPL_IF name="numberpattern8" -->
156                     Year/Number
157                 <!-- /TMPL_IF -->
158                 <!-- TMPL_IF name="numberpattern6" -->
159                     Seasonal only
160                 <!-- /TMPL_IF -->
161                 <!-- TMPL_IF name="numberpattern7" -->
162                     None of the above
163                 <!-- /TMPL_IF -->
164             </p>
165             <table>
166             <tr><td><p>Starting with:</p></td>
167                 <td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
168             <!--TMPL_IF NAME="lastvalue2"-->
169                 <td align="center">&nbsp; 
170                     <!--TMPL_VAR NAME="lastvalue2"-->
171                 </td>
172             <!--/TMPL_IF-->
173             <!--TMPL_IF NAME="lastvalue3"-->
174                 <td align="center">&nbsp; 
175                     <!--TMPL_VAR NAME="lastvalue3"-->
176                 </td>
177             <!--/TMPL_IF-->
178             </tr>
179             <tr><td><p>Rollover:</p></td>
180                 <td align="center"><!--TMPL_VAR NAME="whenmorethan1"--></td>
181             <!--TMPL_IF NAME="whenmorethan2"-->
182                 <td align="center">&nbsp; 
183                     <!--TMPL_VAR NAME="whenmorethan2"-->
184                 </td>
185             <!--/TMPL_IF-->
186             <!--TMPL_IF NAME="whenmorethan3"-->
187                 <td align="center">&nbsp; 
188                     <!--TMPL_VAR NAME="whenmorethan3"-->
189                 </td>
190             <!--/TMPL_IF-->
191             </tr>
192             </table>
193             <!-- TMPL_IF NAME="irregular_issues" -->
194             <p><label>Irregularity:</label> <!-- TMPL_VAR name="irregular_issues" --> issues
195             </p>
196             <!-- /TMPL_IF -->
197             <p><label>First arrival:</label> <!--TMPL_VAR name="firstacquidate" -->
198             </p>
199         <!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
200         <!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
201         <!-- TMPL_IF name="monthlength" --><p><label>Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
202     </div>
203     <div id="subscription_numbering" style="display:none;">
204         <h3>Numbering calculation</h3>
205         <p><label>Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
206         <table>
207             <tr>
208                 <th>&nbsp;</th>
209                 <th>X</th>
210                 <th>Y</th>
211                 <th>Z</th>
212                 </tr>
213                 <tr>
214                     <td>Add</td>
215                     <td>
216                         <!-- TMPL_VAR name="add1" -->
217                     </td>
218                     <td>
219                         <!-- TMPL_VAR name="add2" -->
220                     </td>
221                     <td>
222                         <!-- TMPL_VAR name="add3" -->
223                     </td>
224                 </tr>
225                 <tr>
226                     <td>once every</td>
227                     <td><!-- TMPL_VAR name="every1" --></td>
228                     <td><!-- TMPL_VAR name="every2" --></td>
229                     <td><!-- TMPL_VAR name="every3" --></td>
230                 </tr>
231                 <tr>
232                     <td>When more than</td>
233                     <td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br />
234                         <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
235                     <td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br />
236                         <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
237                     <td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br />
238                         <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
239                 </tr>
240                 <tr>
241                     <td>Set back to</td>
242                     <td><!-- TMPL_VAR name="setto1" --></td>
243                     <td><!-- TMPL_VAR name="setto2" --></td>
244                     <td><!-- TMPL_VAR name="setto3" --></td>
245                 </tr>
246                 <tr>
247                     <td>
248                             Inner Counter
249                     </td>
250                     <td><!-- TMPL_VAR name="innerloop1" --></td>
251                     <td><!-- TMPL_VAR name="innerloop2" --></td>
252                     <td><!-- TMPL_VAR name="innerloop3" --></td>
253                 </tr>
254                 <tr>
255                     <td>
256                             Last value
257                     </td>
258                     <td><!-- TMPL_VAR name="lastvalue1" --></td>
259                     <td><!-- TMPL_VAR name="lastvalue2" --></td>
260                     <td><!-- TMPL_VAR name="lastvalue3" --></td>
261                 </tr>
262             </table>
263     </div>
264     <div id="subscription_issues">
265         <h2>Serial issues</h2>
266         <table>
267         <tr>
268             <th>Issue number</th>
269             <th>Planned date</th>
270             <th>Published date</th>
271             <th>Status</th>
272         </tr>
273         <!-- TMPL_LOOP name="serialslist" -->
274             <tr>
275                 <td>
276                     <!-- TMPL_VAR name="serialseq" -->
277                 </td>
278                 <td>
279                     <!-- TMPL_VAR name="planneddate" -->
280                 </td>
281                 <td>
282                     <!-- TMPL_VAR name="publisheddate" -->
283                 </td>
284                 <td>
285                         <!--TMPL_IF name="status1" -->
286                             Expected
287                         <!-- /TMPL_IF -->
288                         <!--TMPL_IF name="status2" -->
289                             Arrived
290                         <!-- /TMPL_IF -->
291                         <!--TMPL_IF name="status3" -->
292                             Late
293                         <!-- /TMPL_IF -->
294                         <!--TMPL_IF name="status4" -->
295                             Missing
296                         <!-- /TMPL_IF -->
297                 </td>
298             </tr>
299         <!-- /TMPL_LOOP -->
300         </table>
301     </div>
302     <div id="subscription_summary">
303         <h2>Subscription summary</h2>
304         <table cellpadding="0" cellspacing="0">
305             <tr>
306                 <td><label>Start date</label></td>
307                 <td> <!-- TMPL_VAR name="startdate" --> </td>
308             </tr>
309             <tr>
310                 <td><label>End date</label></td>
311                 <td> <!-- TMPL_VAR name="enddate" --></td>
312             </tr>
313             <tr>
314                 <td><label>History start date</label></td>
315                 <td> <!-- TMPL_VAR name="histstartdate" --> </td>
316             </tr>
317             <tr>
318                 <td><label>History end date</label></td>
319                 <td> <!-- TMPL_VAR name="histenddate" --></td>
320             </tr>
321             <tr><td><label>Received issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
322             <tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
323             <tr><td><label>Nonpublic note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
324             <tr><td><label>Public note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
325         </table>
326     </div>
327
328 </div>
329 </div>
330
331 <div class="yui-b">
332 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
333 </div>
334 </div>
335 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->