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