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