Merge branch 'new/bug_4330' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-detail.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Serials &rsaquo; Details for Subscription #[% subscriptionid %]</title>
3 [% INCLUDE '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 confirm_deletion() {
28     var is_confirmed = confirm(_("Are you sure you want to delete this subscription?"));
29     if (is_confirmed) {
30         window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=del";
31     }
32 }
33 function popup(subscriptionid) {
34     newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
35 }
36
37 -->
38 </script>
39 </head>
40 <body>
41 [% INCLUDE 'header.inc' %]
42 [% INCLUDE 'serials-search.inc' %]
43
44 <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 #[% subscriptionid %]</div>
45
46 <div id="doc3" class="yui-t2">
47    
48    <div id="bd">
49         <div id="yui-main">
50         <div class="yui-b">
51         [% INCLUDE 'serials-toolbar.inc' %]
52
53     <h1>Subscription for [% bibliotitle %] </h1>
54     [% IF ( abouttoexpire ) %]<div class="problem">Subscription is near its end. It should be renewed now.</div>[% END %]
55     [% IF ( NEEDSCONFIRMATION ) %]
56     <div id="circ_needsconfirmation" class="dialog alert">
57                         <h3>Please Confirm Subscription deletion</h3>
58
59                         <ul>
60                         [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] 
61                         [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
62                         [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
63                         </ul>
64                         <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
65                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
66                         <input type="hidden" name="issueconfirmed" value="1" />
67                         <input type="hidden" name="op" value="del" />
68                         <input type="submit" class="approve" value="Yes, Delete (Y)" accesskey="y" />
69                         </form>
70                         <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
71                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
72                         <input type="submit" class="deny" value="No, Don't Delete (N)" accesskey="n" />
73                         </form>
74
75         </div>
76         [% END %] <!-- NEEDSCONFIRMATION -->
77
78  
79     <div id="subscription_info">
80         <h2>Subscription information</h2>
81                 <ul>
82                 <li><span class="label">Subscription ID: </span>[% subscriptionid %]</li>
83         <li><span class="label">Librarian identity:</span> [% librarian %]</li>
84         <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% aqbooksellerid %]">[% aqbooksellername %]&nbsp;</a></li>
85         <li><span class="label">Biblio:</span> <i>([% bibnum %])</i> <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a></li>
86 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% branchcode %]&nbsp;</li>[% END %]
87         [% IF ( serialsadditems ) %]
88             <li>Serial receipt creates an item record.</li>
89         [% ELSE %]
90             <li>Serial receipt does not create an item record.</li>
91         [% END %]
92         <li><span class="label">Grace period:</span> [% graceperiod %]&nbsp;</li>
93         [% IF ( location ) %]<li><span class="label">Location:</span> [% location %]&nbsp;</li>[% END %]
94         [% IF ( callnumber ) %]<li><span class="label">Call Number:</span> [% callnumber %]&nbsp;</li>[% END %]
95                 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff</span>:&nbsp;[% staffdisplaycount %]&nbsp;</li>[% END %]
96                 [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display to the public</span>:&nbsp;[% opacdisplaycount %]&nbsp;</li>[% END %]
97         [% IF ( letter ) %]<li><span class="label">Patron alert with:</span> [% letter %]&nbsp;</li>[% END %]
98         [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
99      </ul>
100     </div>
101     <div id="subscription_planning">
102         <h2>Planning</h2>
103             <p><label>Beginning date:</label> [% startdate %]
104             </p>
105             <p><label>Frequency (*):</label>
106                 [% IF ( periodicity16 ) %]
107                         Without regularity
108                 [% END %]
109                 [% IF ( periodicity32 ) %]
110                         Irregular
111                 [% END %]
112                 [% IF ( periodicity0 ) %]
113                         Unknown
114                 [% END %]
115                 [% IF ( periodicity12 ) %]
116                         2/day
117                 [% END %]
118                 [% IF ( periodicity1 ) %]
119                         1/day
120                 [% END %]
121                 [% IF ( periodicity13 ) %]
122                         3/week
123                 [% END %]
124                 [% IF ( periodicity2 ) %]
125                         1/week
126                 [% END %]
127                 [% IF ( periodicity3 ) %]
128                         1/2 weeks
129                 [% END %]
130                 [% IF ( periodicity4 ) %]
131                         1/3 weeks
132                 [% END %]
133                 [% IF ( periodicity5 ) %]
134                         1/Month
135                 [% END %]
136                 [% IF ( periodicity6 ) %]
137                         1/2 Months (6/year)
138                 [% END %]
139                 [% IF ( periodicity7 ) %]
140                         1/quarter
141                 [% END %]
142                 [% IF ( periodicity8 ) %]
143                         1/quarter
144                 [% END %]
145                 [% IF ( periodicity9 ) %]
146                         2/year
147                 [% END %]
148                 [% IF ( periodicity10 ) %]
149                         1/year
150                 [% END %]
151                 [% IF ( periodicity11 ) %]
152                         1/2 years
153                 [% END %]
154               Manual history :
155                 [% IF ( manualhistory ) %]
156                     <input type="checkbox" checked="checked" disabled="disabled" />
157                 [% ELSE %]
158                     <input type="checkbox" disabled="disabled" />
159                 [% END %]
160             </p>
161             <p><label>Number pattern:</label>
162                 [% IF ( numberpattern1 ) %]
163                     Number only
164                 [% END %]
165                 [% IF ( numberpattern2 ) %]
166                     Volume, Number, Issue
167                 [% END %]
168                 [% IF ( numberpattern3 ) %]
169                     Volume, Number
170                 [% END %]
171                 [% IF ( numberpattern4 ) %]
172                     Volume, Issue
173                 [% END %]
174                 [% IF ( numberpattern5 ) %]
175                     Number, Issue
176                 [% END %]
177                 [% IF ( numberpattern8 ) %]
178                     Year/Number
179                 [% END %]
180                 [% IF ( numberpattern6 ) %]
181                     Seasonal only
182                 [% END %]
183                 [% IF ( numberpattern7 ) %]
184                     None of the above
185                 [% END %]
186             </p>
187             <table>
188             <tr><td><p>Starting with:</p></td>
189                 <td align="center">[% lastvalue1 %]</td>
190             [% IF ( lastvalue2 ) %]
191                 <td align="center">&nbsp; 
192                     [% lastvalue2 %]
193                 </td>
194             [% END %]
195             [% IF ( lastvalue3 ) %]
196                 <td align="center">&nbsp; 
197                     [% lastvalue3 %]
198                 </td>
199             [% END %]
200             </tr>
201             <tr><td><p>Rollover:</p></td>
202                 <td align="center">[% whenmorethan1 %]</td>
203             [% IF ( whenmorethan2 ) %]
204                 <td align="center">&nbsp; 
205                     [% whenmorethan2 %]
206                 </td>
207             [% END %]
208             [% IF ( whenmorethan3 ) %]
209                 <td align="center">&nbsp; 
210                     [% whenmorethan3 %]
211                 </td>
212             [% END %]
213             </tr>
214             </table>
215             [% IF ( irregular_issues ) %]
216             <p><label>Irregularity:</label> [% irregular_issues %] issues
217             </p>
218             [% END %]
219             <p><label>First arrival:</label> [% firstacquidate %]
220             </p>
221         [% IF ( numberlength ) %]<p><label>Number of issues:</label> [% numberlength %]</p>[% END %]
222         [% IF ( weeklength ) %]<p><label>Number of weeks:</label> [% weeklength %]</p>[% END %]
223         [% IF ( monthlength ) %]<p><label>Number of months:</label> [% monthlength %]</p>[% END %]
224     </div>
225     <div id="subscription_numbering" style="display:none;">
226         <h3>Numbering calculation</h3>
227         <p><label>Numbering formula:</label> [% numberingmethod %]</p>
228         <table>
229             <tr>
230                 <th>&nbsp;</th>
231                 <th>X</th>
232                 <th>Y</th>
233                 <th>Z</th>
234                 </tr>
235                 <tr>
236                     <td>Add</td>
237                     <td>
238                         [% add1 %]
239                     </td>
240                     <td>
241                         [% add2 %]
242                     </td>
243                     <td>
244                         [% add3 %]
245                     </td>
246                 </tr>
247                 <tr>
248                     <td>once every</td>
249                     <td>[% every1 %]</td>
250                     <td>[% every2 %]</td>
251                     <td>[% every3 %]</td>
252                 </tr>
253                 <tr>
254                     <td>When more than</td>
255                     <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
256                         <i>(is [% innerloop1 %])</i>[% END %]</td>
257                     <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
258                         <i>(is [% innerloop2 %])</i>[% END %]</td>
259                     <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
260                         <i>(is [% innerloop3 %])</i>[% END %]</td>
261                 </tr>
262                 <tr>
263                     <td>Set back to</td>
264                     <td>[% setto1 %]</td>
265                     <td>[% setto2 %]</td>
266                     <td>[% setto3 %]</td>
267                 </tr>
268                 <tr>
269                     <td>
270                             Inner Counter
271                     </td>
272                     <td>[% innerloop1 %]</td>
273                     <td>[% innerloop2 %]</td>
274                     <td>[% innerloop3 %]</td>
275                 </tr>
276                 <tr>
277                     <td>
278                             Last value
279                     </td>
280                     <td>[% lastvalue1 %]</td>
281                     <td>[% lastvalue2 %]</td>
282                     <td>[% lastvalue3 %]</td>
283                 </tr>
284             </table>
285     </div>
286     <div id="subscription_issues">
287         <h2>Serial issues</h2>
288         <table>
289         <tr>
290             <th>Issue number</th>
291             <th>Planned date</th>
292             <th>Published date</th>
293             <th>Status</th>
294         </tr>
295         [% FOREACH serialslis IN serialslist %]
296             <tr>
297                 <td>
298                     [% serialslis.serialseq %]
299                 </td>
300                 <td>
301                     [% serialslis.planneddate %]
302                 </td>
303                 <td>
304                     [% serialslis.publisheddate %]
305                 </td>
306                 <td>
307                         [% IF ( serialslis.status1 ) %]
308                             Expected
309                         [% END %]
310                         [% IF ( serialslis.status2 ) %]
311                             Arrived
312                         [% END %]
313                         [% IF ( serialslis.status3 ) %]
314                             Late
315                         [% END %]
316                         [% IF ( serialslis.status4 ) %]
317                             Missing
318                         [% END %]
319                         [% IF ( serialslis.status5 ) %]
320                             Not Available
321                         [% END %]
322                         [% IF ( serialslis.status7 ) %]
323                             Claimed
324                              [% IF ( serialslis.claimdate ) %]
325                              [% serialslis.claimdate %]
326                              [% END %]
327                         [% END %]
328                 </td>
329             </tr>
330         [% END %]
331         </table>
332     </div>
333     <div id="subscription_summary">
334         <h2>Subscription summary</h2>
335         <table cellpadding="0" cellspacing="0">
336             <tr>
337                 <td><label>Start date</label></td>
338                 <td> [% startdate %] </td>
339             </tr>
340             <tr>
341                 <td><label>End date</label></td>
342                 <td> [% enddate %]</td>
343             </tr>
344             <tr>
345                 <td><label>History start date</label></td>
346                 <td> [% histstartdate %] </td>
347             </tr>
348             <tr>
349                 <td><label>History end date</label></td>
350                 <td> [% histenddate %]</td>
351             </tr>
352             <tr><td><label>Received issues</label></td><td>[% recievedlist %]</td></tr>
353             <tr><td><label>Missing issues</label></td><td>[% missinglist %]</td></tr>
354             <tr><td><label>Nonpublic note</label></td><td>[% internalnotes %]</td></tr>
355             <tr><td><label>Public note</label></td><td>[% notes %]</td></tr>
356         </table>
357     </div>
358
359 </div>
360 </div>
361
362 <div class="yui-b">
363 [% INCLUDE 'serials-menu.inc' %]
364 </div>
365 </div>
366 [% INCLUDE 'intranet-bottom.inc' %]