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