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