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