Bug 9850: Fix patron routing lists link
[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     [% IF ( show_acquisition_details ) %]
135         <div id="acquisition_details">
136             <h2>Acquisition details</h2>
137             <table>
138                 <thead>
139                     <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>Fund</th><th></th></tr>
140                 </thead>
141                 <tbody>
142                     <tr>
143                         <td>Ordered amount</td>
144                         <td>[% valuegste_ordered %]</td>
145                         <td>[% valuegsti_ordered %]</td>
146                         <td>[% budget_name_ordered %]</td>
147                         <td>
148                             [% IF ( ordered_exists ) %]
149                                 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket information</a>
150                             [% END %]
151                         </td>
152                     </tr>
153                     <tr>
154                         <td>Spent amount</td>
155                         <td>[% valuegste_spent %]</td>
156                         <td>[% valuegsti_spent %]</td>
157                         <td>[% budget_name_spent %]</td>
158                         <td>
159                             [% IF ( spent_exists ) %]
160                                 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">See invoice information</a>
161                             [% END %]
162                         </td>
163                     </tr>
164                 </tbody>
165             </table>
166         </div>
167     [% END %]
168     <div id="subscription_planning">
169     <div class="yui-g">
170     <div class="rows">
171         <ol>
172             <li><span class="label">Beginning date:</span> [% startdate %]
173             </li>
174             <li><span class="label">Frequency (*):</span>
175                 [% IF ( periodicity16 ) %]
176                         Without regularity
177                 [% END %]
178                 [% IF ( periodicity32 ) %]
179                         Irregular
180                 [% END %]
181                 [% IF ( periodicity0 ) %]
182                         Unknown
183                 [% END %]
184                 [% IF ( periodicity12 ) %]
185                         2/day
186                 [% END %]
187                 [% IF ( periodicity1 ) %]
188                         1/day
189                 [% END %]
190                 [% IF ( periodicity13 ) %]
191                         1/4 months (3/year)
192                 [% END %]
193                 [% IF ( periodicity2 ) %]
194                         1/week
195                 [% END %]
196                 [% IF ( periodicity3 ) %]
197                         1/2 weeks
198                 [% END %]
199                 [% IF ( periodicity4 ) %]
200                         1/3 weeks
201                 [% END %]
202                 [% IF ( periodicity5 ) %]
203                         1/month
204                 [% END %]
205                 [% IF ( periodicity6 ) %]
206                         1/2 months (6/year)
207                 [% END %]
208                 [% IF ( periodicity7 ) %]
209                         1/quarter
210                 [% END %]
211                 [% IF ( periodicity8 ) %]
212                         1/quarter
213                 [% END %]
214                 [% IF ( periodicity9 ) %]
215                         2/year
216                 [% END %]
217                 [% IF ( periodicity10 ) %]
218                         1/year
219                 [% END %]
220                 [% IF ( periodicity11 ) %]
221                         1/2 years
222                 [% END %]
223             </li>
224             <li>
225               <span class="label">Manual history: </span>
226                 [% IF ( manualhistory ) %]
227                     Enabled
228                 [% ELSE %]
229                     Disabled
230                 [% END %]
231             </li>
232             <li><span class="label">Number pattern:</span>
233                 [% IF ( numberpattern1 ) %]
234                     Number only
235                 [% END %]
236                 [% IF ( numberpattern2 ) %]
237                     Volume, number, issue
238                 [% END %]
239                 [% IF ( numberpattern3 ) %]
240                     Volume, number
241                 [% END %]
242                 [% IF ( numberpattern4 ) %]
243                     Volume, issue
244                 [% END %]
245                 [% IF ( numberpattern5 ) %]
246                     Number, issue
247                 [% END %]
248                 [% IF ( numberpattern8 ) %]
249                     Year/Number
250                 [% END %]
251                 [% IF ( numberpattern6 ) %]
252                     Seasonal only
253                 [% END %]
254                 [% IF ( numberpattern7 ) %]
255                     None of the above
256                 [% END %]
257             </li>
258             <li><table>
259             <tr><td>Starting with:</td>
260                 <td align="center">[% lastvalue1 %]</td>
261             [% IF ( lastvalue2 ) %]
262                 <td align="center">&nbsp; 
263                     [% lastvalue2 %]
264                 </td>
265             [% END %]
266             [% IF ( lastvalue3 ) %]
267                 <td align="center">&nbsp; 
268                     [% lastvalue3 %]
269                 </td>
270             [% END %]
271             </tr>
272             <tr><td>Rollover:</td>
273                 <td align="center">
274                     [% IF ( whenmorethan1 < 9999999 ) %][% whenmorethan1 %][% ELSE %]Never[% END %]
275                 </td>
276             [% IF ( whenmorethan2 ) %]
277                 <td align="center">&nbsp;
278                     [% IF ( whenmorethan2 < 9999999 ) %][% whenmorethan2 %][% ELSE %]Never[% END %]
279                 </td>
280             [% END %]
281             [% IF ( whenmorethan3 ) %]
282                 <td align="center">&nbsp;
283                     [% IF ( whenmorethan3 < 9999999 ) %][% whenmorethan3 %][% ELSE %]Never[% END %]
284                 </td>
285             [% END %]
286             </tr>
287             </table></li>
288             [% IF ( irregular_issues ) %]
289             <li><span class="label">Irregularity:</span> [% irregular_issues %] issues
290             </li>
291             [% END %]
292             <li><span class="label">First arrival:</span> [% firstacquidate %]
293             </li>
294         [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
295         [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
296         [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
297         </ol>
298     </div>
299     </div>
300     </div>
301     <div id="subscription_numbering" style="display:none;">
302         <h3>Numbering calculation</h3>
303         <p><label>Numbering formula:</label> [% numberingmethod %]</p>
304         <table>
305             <tr>
306                 <th>&nbsp;</th>
307                 <th>X</th>
308                 <th>Y</th>
309                 <th>Z</th>
310                 </tr>
311                 <tr>
312                     <td>Add</td>
313                     <td>
314                         [% add1 %]
315                     </td>
316                     <td>
317                         [% add2 %]
318                     </td>
319                     <td>
320                         [% add3 %]
321                     </td>
322                 </tr>
323                 <tr>
324                     <td>once every</td>
325                     <td>[% every1 %]</td>
326                     <td>[% every2 %]</td>
327                     <td>[% every3 %]</td>
328                 </tr>
329                 <tr>
330                     <td>When more than</td>
331                     <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
332                         <i>(is [% innerloop1 %])</i>[% END %]</td>
333                     <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
334                         <i>(is [% innerloop2 %])</i>[% END %]</td>
335                     <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
336                         <i>(is [% innerloop3 %])</i>[% END %]</td>
337                 </tr>
338                 <tr>
339                     <td>Set back to</td>
340                     <td>[% setto1 %]</td>
341                     <td>[% setto2 %]</td>
342                     <td>[% setto3 %]</td>
343                 </tr>
344                 <tr>
345                     <td>
346                             Inner counter
347                     </td>
348                     <td>[% innerloop1 %]</td>
349                     <td>[% innerloop2 %]</td>
350                     <td>[% innerloop3 %]</td>
351                 </tr>
352                 <tr>
353                     <td>
354                             Last value
355                     </td>
356                     <td>[% lastvalue1 %]</td>
357                     <td>[% lastvalue2 %]</td>
358                     <td>[% lastvalue3 %]</td>
359                 </tr>
360             </table>
361     </div>
362     <div id="subscription_issues">
363         <table>
364         <tr>
365             <th>Issue number</th>
366             <th>Planned date</th>
367             <th>Published date</th>
368             <th>Status</th>
369         </tr>
370         [% FOREACH serialslis IN serialslist %]
371             <tr>
372                 <td>
373                     [% serialslis.serialseq %]
374                 </td>
375                 <td>
376                     [% serialslis.planneddate %]
377                 </td>
378                 <td>
379                     [% serialslis.publisheddate %]
380                 </td>
381                 <td>
382                     [% IF ( serialslis.status1 ) %]Expected[% END %]
383                     [% IF ( serialslis.status2 ) %]Arrived[% END %]
384                     [% IF ( serialslis.status3 ) %]Late[% END %]
385                     [% IF ( serialslis.status4 ) %]Missing[% END %]
386                     [% IF ( serialslis.status5 ) %]Not issued[% END %]
387                     [% IF ( serialslis.status6 ) %]Delete[% END %]
388                     [% IF ( serialslis.status7 ) %]
389                       Claimed
390                       [% IF ( serialslis.claimdate ) %]
391                         [% serialslis.claimdate %]
392                       [% END %]
393                     [% END %]
394                     [% IF ( serialslis.status8 ) %]Stopped[% END %]
395                 </td>
396             </tr>
397         [% END %]
398         </table>
399     </div>
400     <div id="subscription_summary">
401     <div class="yui-g">
402     <div class="rows">
403         <ol>
404             <li><span class="label">Start date:</span> [% startdate %] </li>
405             <li><span class="label">End date:</span> [% enddate %]</li>
406             <li><span class="label">History start date:</span> [% histstartdate %] </li>
407             <li><span class="label">History end date:</span> [% histenddate %]</li>
408             <li><span class="label">Received issues:</span>[% recievedlist %]</li>
409             <li><span class="label">Missing issues:</span>[% missinglist %]</li>
410             <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break %]</li>
411             <li><span class="label">Public note:</span>[% notes FILTER html_line_break %]</li>
412             <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break %]</li>
413             <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break %]</li>
414         </ol>
415     </div>
416     </div>
417     </div>
418     </div>
419 </div>
420 </div>
421
422 <div class="yui-b">
423 [% INCLUDE 'serials-menu.inc' %]
424 </div>
425 </div>
426 [% INCLUDE 'intranet-bottom.inc' %]