Merge remote-tracking branch 'origin/new/bug_8525'
[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").tabs();
37     $("#renewsub").click(function(){
38         popup([% subscriptionid %]);
39         return false;
40     })
41 });
42 //]]>
43 </script>
44 </head>
45 <body id="ser_subscription-detail" class="ser">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'serials-search.inc' %]
48
49 <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>
50
51 <div id="doc3" class="yui-t2">
52    
53    <div id="bd">
54         <div id="yui-main">
55         <div class="yui-b">
56         [% INCLUDE 'serials-toolbar.inc' %]
57
58     <h1>Subscription for [% bibliotitle %] </h1>
59     [% IF ( abouttoexpire ) %]<div class="dialog message">Subscription will expire [% enddate %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>[% END %]
60     [% IF ( NEEDSCONFIRMATION ) %]
61     <div id="circ_needsconfirmation" class="dialog alert">
62                         <h3>Please Confirm Subscription deletion</h3>
63
64                         <ul>
65                         [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] 
66                         [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
67                         [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
68                         </ul>
69                         <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
70                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
71                         <input type="hidden" name="issueconfirmed" value="1" />
72                         <input type="hidden" name="op" value="del" />
73             <input type="submit" class="approve" value="Yes, delete (Y)" accesskey="y" />
74                         </form>
75                         <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
76                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
77             <input type="submit" class="deny" value="No, don't delete (N)" accesskey="n" />
78                         </form>
79
80         </div>
81         [% END %] <!-- NEEDSCONFIRMATION -->
82
83 <div id="subscription_description" class="toptabs">
84 <ul class="ui-tabs-nav">
85     <li><a href="#subscription_info">Information</a></li>
86     <li><a href="#subscription_planning">Planning</a></li>
87     <li><a href="#subscription_issues">Issues</a></li>
88     <li><a href="#subscription_summary">Summary</a></li>
89 </ul>
90
91 <div id="subscription_info">
92     <div class="yui-g">
93     <div class="yui-u first">
94     <div class="rows">
95                 <ol>
96                 <li><span class="label">Subscription ID: </span>[% subscriptionid %]</li>
97         <li><span class="label">Librarian identity:</span> [% librarian %]</li>
98         <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid %]">[% aqbooksellername %]</a></li>
99         <li><span class="label">Biblio:</span>  <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a> <i>([% bibnum %])</i></li>
100 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% branchcode %]</li>[% END %]
101         [% IF ( serialsadditems ) %]
102             <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
103         [% ELSE %]
104             <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
105         [% END %]
106         <li><span class="label">Grace period:</span> [% graceperiod %]</li>
107         </ol>
108     </div>
109     </div>
110     <div class="yui-u">
111     <div class="rows">
112         <ol>
113         [% IF ( location ) %]<li><span class="label">Location:</span> [% location %]</li>[% END %]
114         [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber %]</li>[% END %]
115                 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount %]</li>[% END %]
116         [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount %]</li>[% END %]
117         [% IF ( letter ) %]
118             <li>
119                 <span class="label">Patron notification:</span> [% letter %]
120                 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid %]">subscribers</a>)
121             </li>
122         [% END %]
123         [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
124      </ol>
125      </div>
126      </div>
127 </div>
128 </div>
129     [% IF ( show_acquisition_details ) %]
130         <div id="acquisition_details">
131             <h2>Acquisition details</h2>
132             <table>
133                 <thead>
134                     <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>fund</th><th></th></tr>
135                 </thead>
136                 <tbody>
137                     <tr>
138                         <td>Ordered amount</td>
139                         <td>[% valuegste_ordered %]</td>
140                         <td>[% valuegsti_ordered %]</td>
141                         <td>[% budget_name_ordered %]</td>
142                         <td>
143                             [% IF ( ordered_exists ) %]
144                                 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket informations</a>
145                             [% END %]
146                         </td>
147                     </tr>
148                     <tr>
149                         <td>Spent amount</td>
150                         <td>[% valuegste_spent %]</td>
151                         <td>[% valuegsti_spent %]</td>
152                         <td>[% budget_name_spent %]</td>
153                         <td>
154                             [% IF ( spent_exists ) %]
155                                 <a href="/cgi-bin/koha/acqui/invoice.pl?invoicenumber=[% invoicenumber %]">See invoice informations</a>
156                             [% END %]
157                         </td>
158                     </tr>
159                 </tbody>
160             </table>
161         </div>
162     [% END %]
163     <div id="subscription_planning">
164     <div class="yui-g">
165     <div class="rows">
166         <ol>
167             <li><span class="label">Beginning date:</span> [% startdate %]
168             </li>
169             <li><span class="label">Frequency (*):</span>
170                 [% IF ( periodicity16 ) %]
171                         Without regularity
172                 [% END %]
173                 [% IF ( periodicity32 ) %]
174                         Irregular
175                 [% END %]
176                 [% IF ( periodicity0 ) %]
177                         Unknown
178                 [% END %]
179                 [% IF ( periodicity12 ) %]
180                         2/day
181                 [% END %]
182                 [% IF ( periodicity1 ) %]
183                         1/day
184                 [% END %]
185                 [% IF ( periodicity13 ) %]
186                         1/4 months (3/year)
187                 [% END %]
188                 [% IF ( periodicity2 ) %]
189                         1/week
190                 [% END %]
191                 [% IF ( periodicity3 ) %]
192                         1/2 weeks
193                 [% END %]
194                 [% IF ( periodicity4 ) %]
195                         1/3 weeks
196                 [% END %]
197                 [% IF ( periodicity5 ) %]
198                         1/month
199                 [% END %]
200                 [% IF ( periodicity6 ) %]
201                         1/2 months (6/year)
202                 [% END %]
203                 [% IF ( periodicity7 ) %]
204                         1/quarter
205                 [% END %]
206                 [% IF ( periodicity8 ) %]
207                         1/quarter
208                 [% END %]
209                 [% IF ( periodicity9 ) %]
210                         2/year
211                 [% END %]
212                 [% IF ( periodicity10 ) %]
213                         1/year
214                 [% END %]
215                 [% IF ( periodicity11 ) %]
216                         1/2 years
217                 [% END %]
218             </li>
219             <li>
220               <span class="label">Manual history: </span>
221                 [% IF ( manualhistory ) %]
222                     Disabled
223                 [% ELSE %]
224                     Enabled
225                 [% END %]
226             </li>
227             <li><span class="label">Number pattern:</span>
228                 [% IF ( numberpattern1 ) %]
229                     Number only
230                 [% END %]
231                 [% IF ( numberpattern2 ) %]
232                     Volume, number, issue
233                 [% END %]
234                 [% IF ( numberpattern3 ) %]
235                     Volume, number
236                 [% END %]
237                 [% IF ( numberpattern4 ) %]
238                     Volume, issue
239                 [% END %]
240                 [% IF ( numberpattern5 ) %]
241                     Number, issue
242                 [% END %]
243                 [% IF ( numberpattern8 ) %]
244                     Year/Number
245                 [% END %]
246                 [% IF ( numberpattern6 ) %]
247                     Seasonal only
248                 [% END %]
249                 [% IF ( numberpattern7 ) %]
250                     None of the above
251                 [% END %]
252             </li>
253             <li><table>
254             <tr><td>Starting with:</td>
255                 <td align="center">[% lastvalue1 %]</td>
256             [% IF ( lastvalue2 ) %]
257                 <td align="center">&nbsp; 
258                     [% lastvalue2 %]
259                 </td>
260             [% END %]
261             [% IF ( lastvalue3 ) %]
262                 <td align="center">&nbsp; 
263                     [% lastvalue3 %]
264                 </td>
265             [% END %]
266             </tr>
267             <tr><td>Rollover:</td>
268                 <td align="center">
269                     [% IF ( whenmorethan1 < 9999999 ) %][% whenmorethan1 %][% ELSE %]Never[% END %]
270                 </td>
271             [% IF ( whenmorethan2 ) %]
272                 <td align="center">&nbsp;
273                     [% IF ( whenmorethan2 < 9999999 ) %][% whenmorethan2 %][% ELSE %]Never[% END %]
274                 </td>
275             [% END %]
276             [% IF ( whenmorethan3 ) %]
277                 <td align="center">&nbsp;
278                     [% IF ( whenmorethan3 < 9999999 ) %][% whenmorethan3 %][% ELSE %]Never[% END %]
279                 </td>
280             [% END %]
281             </tr>
282             </table></li>
283             [% IF ( irregular_issues ) %]
284             <li><span class="label">Irregularity:</span> [% irregular_issues %] issues
285             </li>
286             [% END %]
287             <li><span class="label">First arrival:</span> [% firstacquidate %]
288             </li>
289         [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
290         [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
291         [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
292         </ol>
293     </div>
294     </div>
295     </div>
296     <div id="subscription_numbering" style="display:none;">
297         <h3>Numbering calculation</h3>
298         <p><label>Numbering formula:</label> [% numberingmethod %]</p>
299         <table>
300             <tr>
301                 <th>&nbsp;</th>
302                 <th>X</th>
303                 <th>Y</th>
304                 <th>Z</th>
305                 </tr>
306                 <tr>
307                     <td>Add</td>
308                     <td>
309                         [% add1 %]
310                     </td>
311                     <td>
312                         [% add2 %]
313                     </td>
314                     <td>
315                         [% add3 %]
316                     </td>
317                 </tr>
318                 <tr>
319                     <td>once every</td>
320                     <td>[% every1 %]</td>
321                     <td>[% every2 %]</td>
322                     <td>[% every3 %]</td>
323                 </tr>
324                 <tr>
325                     <td>When more than</td>
326                     <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
327                         <i>(is [% innerloop1 %])</i>[% END %]</td>
328                     <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
329                         <i>(is [% innerloop2 %])</i>[% END %]</td>
330                     <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
331                         <i>(is [% innerloop3 %])</i>[% END %]</td>
332                 </tr>
333                 <tr>
334                     <td>Set back to</td>
335                     <td>[% setto1 %]</td>
336                     <td>[% setto2 %]</td>
337                     <td>[% setto3 %]</td>
338                 </tr>
339                 <tr>
340                     <td>
341                             Inner counter
342                     </td>
343                     <td>[% innerloop1 %]</td>
344                     <td>[% innerloop2 %]</td>
345                     <td>[% innerloop3 %]</td>
346                 </tr>
347                 <tr>
348                     <td>
349                             Last value
350                     </td>
351                     <td>[% lastvalue1 %]</td>
352                     <td>[% lastvalue2 %]</td>
353                     <td>[% lastvalue3 %]</td>
354                 </tr>
355             </table>
356     </div>
357     <div id="subscription_issues">
358         <table>
359         <tr>
360             <th>Issue number</th>
361             <th>Planned date</th>
362             <th>Published date</th>
363             <th>Status</th>
364         </tr>
365         [% FOREACH serialslis IN serialslist %]
366             <tr>
367                 <td>
368                     [% serialslis.serialseq %]
369                 </td>
370                 <td>
371                     [% serialslis.planneddate %]
372                 </td>
373                 <td>
374                     [% serialslis.publisheddate %]
375                 </td>
376                 <td>
377                         [% IF ( serialslis.status1 ) %]
378                             Expected
379                         [% END %]
380                         [% IF ( serialslis.status2 ) %]
381                             Arrived
382                         [% END %]
383                         [% IF ( serialslis.status3 ) %]
384                             Late
385                         [% END %]
386                         [% IF ( serialslis.status4 ) %]
387                             Missing
388                         [% END %]
389                         [% IF ( serialslis.status5 ) %]
390                             Not available
391                         [% END %]
392                         [% IF ( serialslis.status7 ) %]
393                             Claimed
394                              [% IF ( serialslis.claimdate ) %]
395                              [% serialslis.claimdate %]
396                              [% END %]
397                         [% END %]
398                 </td>
399             </tr>
400         [% END %]
401         </table>
402     </div>
403     <div id="subscription_summary">
404     <div class="yui-g">
405     <div class="rows">
406         <ol>
407             <li><span class="label">Start date:</span> [% startdate %] </li>
408             <li><span class="label">End date:</span> [% enddate %]</li>
409             <li><span class="label">History start date:</span> [% histstartdate %] </li>
410             <li><span class="label">History end date:</span> [% histenddate %]</li>
411             <li><span class="label">Received issues:</span>[% recievedlist %]</li>
412             <li><span class="label">Missing issues:</span>[% missinglist %]</li>
413             <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break %]</li>
414             <li><span class="label">Public note:</span>[% notes FILTER html_line_break %]</li>
415             <li><span class="label">History staff note</span>[% librariannote FILTER html_line_break %]</li>
416             <li><span class="label">History OPAC note</span>[% opacnote FILTER html_line_break %]</li>
417         </ol>
418     </div>
419     </div>
420     </div>
421     </div>
422 </div>
423 </div>
424
425 <div class="yui-b">
426 [% INCLUDE 'serials-menu.inc' %]
427 </div>
428 </div>
429 [% INCLUDE 'intranet-bottom.inc' %]