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