Enabling AutoComplete on resident circ search form. Putting dependent YUI files into...
[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 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
5 <script type="text/javascript" language="javascript">
6 <!--
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         <!-- TMPL_INCLUDE NAME="serials-toolbar.inc" -->
108
109     <h1>Subscription #<!--TMPL_VAR name="subscriptionid"--></h1>
110     <!--TMPL_IF Name="abouttoexpire"--><div class="problem">Subscription is near its end. It should be renewed now.</div><!--/TMPL_IF-->
111     
112     <div id="subscription_info">
113         <h2>Subscription information</h2>
114         <p><label>Librarian identity:</label> <!-- TMPL_VAR name="librarian" --></p>
115         <p><label>Supplier:</label> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="aqbooksellerid"-->"><!-- TMPL_VAR name="aqbooksellername" -->&nbsp;</a></p>
116         <p><label>Biblio:</label> <i>(<!-- TMPL_VAR name="bibnum" -->)</i> <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="bibnum" -->"><!-- TMPL_VAR name="bibliotitle" --></a></p><br />
117 <!-- TMPL_IF name="branchcode" --><p><label>Branch :</label> <!-- TMPL_VAR name="branchcode" -->&nbsp;</p><!-- /TMPL_IF -->
118         <!-- TMPL_IF name="callnumber" --><p><label>Call Number:</label> <!-- TMPL_VAR name="callnumber" -->&nbsp;</p><!-- /TMPL_IF -->
119         <!-- TMPL_IF name="letter" --><p><label>Patron alert with:</label> <!-- TMPL_VAR name="letter" -->&nbsp;</p><!-- /TMPL_IF -->
120         <!-- TMPL_IF name="notes" --><p><label>Notes:</label> <!-- TMPL_VAR name="notes" --></p><!-- /TMPL_IF -->
121         <!-- TMPL_IF name="internalnotes" --><p><label>Management Notes:</label> <!-- TMPL_VAR name="internalnotes" --></p><!-- /TMPL_IF -->
122         
123     </div>
124     <div id="subscription_planning">
125         <h2>Planning</h2>
126             <p><label>Beginnning date:</label> <!-- TMPL_VAR name="startdate" -->
127             </p>
128             <p><label>Frequency (*):</label>
129                 <!--TMPL_IF name="periodicity16" -->
130                         Without regularity
131                 <!-- /TMPL_IF -->
132                 <!--TMPL_IF name="periodicity32" -->
133                         Irregular
134                 <!-- /TMPL_IF -->
135                 <!--TMPL_IF name="periodicity0" -->
136                         Unknown
137                 <!-- /TMPL_IF -->
138                 <!--TMPL_IF name="periodicity12" -->
139                         2/day
140                 <!-- /TMPL_IF -->
141                 <!--TMPL_IF name="periodicity1" -->
142                         1/day
143                 <!-- /TMPL_IF -->
144                 <!--TMPL_IF name="periodicity13" -->
145                         3/week
146                 <!-- /TMPL_IF -->
147                 <!--TMPL_IF name="periodicity2" -->
148                         1/week
149                 <!-- /TMPL_IF -->
150                 <!--TMPL_IF name="periodicity3" -->
151                         1/2 weeks
152                 <!-- /TMPL_IF -->
153                 <!--TMPL_IF name="periodicity4" -->
154                         1/3 weeks
155                 <!-- /TMPL_IF -->
156                 <!--TMPL_IF name="periodicity5" -->
157                         1/Month
158                 <!-- /TMPL_IF -->
159                 <!--TMPL_IF name="periodicity6" -->
160                         1/2 Months (6/year)
161                 <!-- /TMPL_IF -->
162                 <!--TMPL_IF name="periodicity7" -->
163                         1/quarter
164                 <!-- /TMPL_IF -->
165                 <!--TMPL_IF name="periodicity8" -->
166                         1/quarter
167                 <!-- /TMPL_IF -->
168                 <!--TMPL_IF name="periodicity9" -->
169                         2/year
170                 <!-- /TMPL_IF -->
171                 <!--TMPL_IF name="periodicity10" -->
172                         1/year
173                 <!-- /TMPL_IF -->
174                 <!--TMPL_IF name="periodicity11" -->
175                         1/2 years
176                 <!-- /TMPL_IF -->
177               Manual history :
178                 <!--TMPL_IF Name="manualhistory"-->
179                     <input type="checkbox" checked="checked" disabled="disabled" />
180                 <!-- TMPL_ELSE -->
181                     <input type="checkbox" disabled="disabled" />
182                 <!--/TMPL_IF-->
183             </p>
184             <p><label>Number Pattern:</label>
185                 <!-- TMPL_IF name="numberpattern1" -->
186                     Number only
187                 <!-- /TMPL_IF -->
188                 <!-- TMPL_IF name="numberpattern2" -->
189                     Volume, Number, Issue
190                 <!-- /TMPL_IF -->
191                 <!-- TMPL_IF name="numberpattern3" -->
192                     Volume, Number
193                 <!-- /TMPL_IF -->
194                 <!-- TMPL_IF name="numberpattern4" -->
195                     Volume, Issue
196                 <!-- /TMPL_IF -->
197                 <!-- TMPL_IF name="numberpattern5" -->
198                     Number, Issue
199                 <!-- /TMPL_IF -->
200                 <!-- TMPL_IF name="numberpattern8" -->
201                     Year/Number
202                 <!-- /TMPL_IF -->
203                 <!-- TMPL_IF name="numberpattern6" -->
204                     Seasonal only
205                 <!-- /TMPL_IF -->
206                 <!-- TMPL_IF name="numberpattern7" -->
207                     None of the above
208                 <!-- /TMPL_IF -->
209             </p>
210             <table>
211             <tr><td><p>Starting with:</p></td>
212                 <td align="center"><!--TMPL_VAR NAME="lastvalue1"--></td>
213             <!--TMPL_IF NAME="lastvalue2"-->
214                 <td align="center">&nbsp; 
215                     <!--TMPL_VAR NAME="lastvalue2"-->
216                 </td>
217             <!--/TMPL_IF-->
218             <!--TMPL_IF NAME="lastvalue3"-->
219                 <td align="center">&nbsp; 
220                     <!--TMPL_VAR NAME="lastvalue3"-->
221                 </td>
222             <!--/TMPL_IF-->
223             </tr>
224             <tr><td><p>Rollover:</p></td>
225                 <td align="center">&nbsp;</td>
226             <!--TMPL_IF NAME="whenmorethan2"-->
227                 <td align="center">&nbsp; 
228                     <!--TMPL_VAR NAME="whenmorethan2"-->
229                 </td>
230             <!--/TMPL_IF-->
231             <!--TMPL_IF NAME="whenmorethan3"-->
232                 <td align="center">&nbsp; 
233                     <!--TMPL_VAR NAME="whenmorethan3"-->
234                 </td>
235             <!--/TMPL_IF-->
236             </tr>
237             </table>
238             <!-- TMPL_IF NAME="irregularity" -->
239             <p><label>Irregularity:</label>
240                 <div id="irreg"></div>
241             </p>
242             <!-- /TMPL_IF -->
243             <p><label>First arrival:</label>
244                 <!--TMPL_VAR name="firstacquidate" -->
245             </p>
246         <!-- TMPL_IF name="numberlength" --><p><label>Number of issues:</label> <!-- TMPL_VAR name="numberlength" --></p><!-- /TMPL_IF -->
247         <!-- TMPL_IF name="weeklength" --><p><label>Number of weeks:</label> <!-- TMPL_VAR name="weeklength" --></p><!-- /TMPL_IF -->
248         <!-- TMPL_IF name="monthlength" --><p><label>Number of months:</label> <!-- TMPL_VAR name="monthlength" --></p><!-- /TMPL_IF -->
249     </div>
250     <div id="subscription_numbering">
251         <h2>Numbering calculation</h2>
252         <p><label>Numbering formula:</label> <!-- TMPL_VAR name="numberingmethod" --></p>
253         <table>
254             <tr>
255                 <th>&nbsp;</th>
256                 <th>X</th>
257                 <th>Y</th>
258                 <th>Z</th>
259                 </tr>
260                 <tr>
261                     <td>Add</td>
262                     <td>
263                         <!-- TMPL_VAR name="add1" -->
264                     </td>
265                     <td>
266                         <!-- TMPL_VAR name="add2" -->
267                     </td>
268                     <td>
269                         <!-- TMPL_VAR name="add3" -->
270                     </td>
271                 </tr>
272                 <tr>
273                     <td>once every</td>
274                     <td><!-- TMPL_VAR name="every1" --></td>
275                     <td><!-- TMPL_VAR name="every2" --></td>
276                     <td><!-- TMPL_VAR name="every3" --></td>
277                 </tr>
278                 <tr>
279                     <td>When more than</td>
280                     <td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br />
281                         <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
282                     <td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br />
283                         <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
284                     <td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br />
285                         <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
286                 </tr>
287                 <tr>
288                     <td>Set back to</td>
289                     <td><!-- TMPL_VAR name="setto1" --></td>
290                     <td><!-- TMPL_VAR name="setto2" --></td>
291                     <td><!-- TMPL_VAR name="setto3" --></td>
292                 </tr>
293                 <tr>
294                     <td>
295                             Inner Counter
296                     </td>
297                     <td><!-- TMPL_VAR name="innerloop1" --></td>
298                     <td><!-- TMPL_VAR name="innerloop2" --></td>
299                     <td><!-- TMPL_VAR name="innerloop3" --></td>
300                 </tr>
301                 <tr>
302                     <td>
303                             Last value
304                     </td>
305                     <td><!-- TMPL_VAR name="lastvalue1" --></td>
306                     <td><!-- TMPL_VAR name="lastvalue2" --></td>
307                     <td><!-- TMPL_VAR name="lastvalue3" --></td>
308                 </tr>
309             </table>
310     </div>
311     <div id="subscription_issues">
312         <h2>Serial issues</h2>
313         <table>
314         <tr>
315             <th>Issue number</th>
316             <th>Planned date</th>
317             <th>Published date</th>
318             <th>Status</th>
319         </tr>
320         <!-- TMPL_LOOP name="serialslist" -->
321             <tr>
322                 <td>
323                     <!-- TMPL_VAR name="serialseq" -->
324                 </td>
325                 <td>
326                     <!-- TMPL_VAR name="planneddate" -->
327                 </td>
328                 <td>
329                     <!-- TMPL_VAR name="publisheddate" -->
330                 </td>
331                 <td>
332                         <!--TMPL_IF name="status1" -->
333                             Waited
334                         <!-- /TMPL_IF -->
335                         <!--TMPL_IF name="status2" -->
336                             Arrived
337                         <!-- /TMPL_IF -->
338                         <!--TMPL_IF name="status3" -->
339                             Late
340                         <!-- /TMPL_IF -->
341                         <!--TMPL_IF name="status4" -->
342                             Missing
343                         <!-- /TMPL_IF -->
344                 </td>
345             </tr>
346         <!-- /TMPL_LOOP -->
347         </table>
348     </div>
349     <div id="subscription_summary">
350         <h2>Subscription summary</h2>
351         <table cellpadding="0" cellspacing="0">
352         <tr>
353             <td><label>Start Date :</label></td>
354             <td> <!-- TMPL_VAR name="histstartdate" --> </td>
355         </tr>
356         <tr>
357             <td><label>End Date :</label></td>
358             <td> <!-- TMPL_VAR name="enddate" --></td>
359         </tr>
360                 <tr><td><label>Recieved issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
361                 <tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
362                 <tr><td><label>Librarian's note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
363                 <tr><td><label>Opac's note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
364         </table>
365     </div>
366
367 </div>
368 </div>
369
370 <div class="yui-b">
371 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
372 </div>
373 </div>
374 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->