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