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