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