Merge branch 'bug_9900' into 3.12-master
[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 function confirm_deletion() {
13     var is_confirmed = confirm(_("Are you sure you want to delete this subscription?"));
14     if (is_confirmed) {
15         window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=del";
16     }
17 }
18 function popup(subscriptionid) {
19     newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
20 }
21 $(document).ready(function() {
22     $("#subscription_description").tabs();
23     $("#renewsub").click(function(){
24         popup([% subscriptionid %]);
25         return false;
26     })
27 });
28 //]]>
29 </script>
30 </head>
31 <body id="ser_subscription-detail" class="ser">
32 [% INCLUDE 'header.inc' %]
33 [% INCLUDE 'serials-search.inc' %]
34
35 <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>
36
37 <div id="doc3" class="yui-t2">
38    
39    <div id="bd">
40         <div id="yui-main">
41         <div class="yui-b">
42         [% INCLUDE 'serials-toolbar.inc' %]
43
44     <h1>Subscription for [% bibliotitle%] [% IF closed %](closed)[% END %]</h1>
45     [% IF ( abouttoexpire ) %]
46       [% UNLESS closed %]
47         <div class="dialog message">Subscription will expire [% enddate %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
48       [% END %]
49     [% END %]
50     [% IF ( NEEDSCONFIRMATION ) %]
51     <div id="circ_needsconfirmation" class="dialog alert">
52                         <h3>Please Confirm Subscription deletion</h3>
53
54                         <ul>
55                         [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] 
56                         [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
57                         [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
58                         </ul>
59                         <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
60                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
61                         <input type="hidden" name="issueconfirmed" value="1" />
62                         <input type="hidden" name="op" value="del" />
63             <input type="submit" class="approve" value="Yes, delete (Y)" accesskey="y" />
64                         </form>
65                         <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
66                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
67             <input type="submit" class="deny" value="No, don't delete (N)" accesskey="n" />
68                         </form>
69
70         </div>
71         [% END %] <!-- NEEDSCONFIRMATION -->
72
73 <div id="subscription_description" class="toptabs">
74 <ul class="ui-tabs-nav">
75     <li><a href="#subscription_info">Information</a></li>
76     <li><a href="#subscription_planning">Planning</a></li>
77     <li><a href="#subscription_issues">Issues</a></li>
78     <li><a href="#subscription_summary">Summary</a></li>
79 </ul>
80
81 <div id="subscription_info">
82     <div class="yui-g">
83     <div class="yui-u first">
84     <div class="rows">
85                 <ol>
86                 <li><span class="label">Subscription ID: </span>[% subscriptionid %]</li>
87         <li><span class="label">Librarian identity:</span> [% librarian %]</li>
88         <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid %]">[% aqbooksellername %]</a></li>
89         <li><span class="label">Biblio:</span>  <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a> <i>([% bibnum %])</i></li>
90 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% branchcode | $KohaBranchName %]</li>[% END %]
91         [% IF ( serialsadditems ) %]
92             <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
93         [% ELSE %]
94             <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
95         [% END %]
96         <li>
97             <span class="label">Serial number:</span>
98             [% IF skip_serialseq %]
99                 Serial number is skipped when an irregularity is found.
100             [% ELSE %]
101                 Serial number is kept when an irregularity is found.
102             [% END %]
103         </li>
104         <li><span class="label">Grace period:</span> [% graceperiod %]</li>
105         </ol>
106     </div>
107     </div>
108     <div class="yui-u">
109     <div class="rows">
110         <ol>
111         [% IF ( location ) %]<li><span class="label">Location:</span> [% location %]</li>[% END %]
112         [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber %]</li>[% END %]
113                 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount %]</li>[% END %]
114         [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount %]</li>[% END %]
115         [% IF ( letter ) %]
116             <li>
117                 <span class="label">Patron notification:</span> [% letter %]
118                 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid %]">subscribers</a>)
119             </li>
120         [% END %]
121         [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
122      </ol>
123      </div>
124      </div>
125 </div>
126 </div>
127     [% IF ( show_acquisition_details ) %]
128         <div id="acquisition_details">
129             <h2>Acquisition details</h2>
130             <table>
131                 <thead>
132                     <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>fund</th><th></th></tr>
133                 </thead>
134                 <tbody>
135                     <tr>
136                         <td>Ordered amount</td>
137                         <td>[% valuegste_ordered %]</td>
138                         <td>[% valuegsti_ordered %]</td>
139                         <td>[% budget_name_ordered %]</td>
140                         <td>
141                             [% IF ( ordered_exists ) %]
142                                 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket informations</a>
143                             [% END %]
144                         </td>
145                     </tr>
146                     <tr>
147                         <td>Spent amount</td>
148                         <td>[% valuegste_spent %]</td>
149                         <td>[% valuegsti_spent %]</td>
150                         <td>[% budget_name_spent %]</td>
151                         <td>
152                             [% IF ( spent_exists ) %]
153                                 <a href="/cgi-bin/koha/acqui/invoice.pl?invoicenumber=[% invoicenumber %]">See invoice informations</a>
154                             [% END %]
155                         </td>
156                     </tr>
157                 </tbody>
158             </table>
159         </div>
160     [% END %]
161     <div id="subscription_planning">
162     <div class="yui-g">
163     <div class="rows">
164         <ol>
165             <li><span class="label">Beginning date:</span> [% startdate %]
166             </li>
167             <li><span class="label">Frequency:</span>
168                 [% frequency.description %]
169             </li>
170             <li>
171               <span class="label">Manual history: </span>
172                 [% IF ( manualhistory ) %]
173                     Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid %]">Edit history</a>
174                 [% ELSE %]
175                     Disabled
176                 [% END %]
177             </li>
178             <li><span class="label">Number pattern:</span>
179                 [% numberpattern.label %]
180             </li>
181             <li><table>
182             <tr>
183                 <td>Starting with:</td>
184                 [% IF (has_X) %]
185                     <td align="center">[% lastvalue1 %]</td>
186                 [% END %]
187                 [% IF (has_Y) %]
188                     <td align="center">[% lastvalue2 %]</td>
189                 [% END %]
190                 [% IF (has_Z) %]
191                     <td align="center">[% lastvalue3 %]</td>
192                 [% END %]
193             </tr>
194             <tr>
195                 <td>Rollover:</td>
196                 [% IF (has_X) %]
197                     <td align="center">[% numberpattern.whenmorethan1 %]</td>
198                 [% END %]
199                 [% IF (has_Y) %]
200                     <td align="center">[% numberpattern.whenmorethan2 %]</td>
201                 [% END %]
202                 [% IF (has_Z) %]
203                     <td align="center">[% numberpattern.whenmorethan3 %]</td>
204                 [% END %]
205             </tr>
206             </table></li>
207             [% IF ( irregular_issues ) %]
208             <li><span class="label">Irregularity:</span> [% irregular_issues %] issues
209             </li>
210             [% END %]
211             <li><span class="label">First arrival:</span> [% firstacquidate %]
212             </li>
213         [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
214         [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
215         [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
216         </ol>
217     </div>
218     </div>
219     </div>
220     <div id="subscription_numbering" style="display:none;">
221         <h3>Numbering calculation</h3>
222         <p><label>Numbering formula:</label> [% numberingmethod %]</p>
223         <table>
224             <tr>
225                 <th>&nbsp;</th>
226                 <th>X</th>
227                 <th>Y</th>
228                 <th>Z</th>
229                 </tr>
230                 <tr>
231                     <td>Add</td>
232                     <td>
233                         [% add1 %]
234                     </td>
235                     <td>
236                         [% add2 %]
237                     </td>
238                     <td>
239                         [% add3 %]
240                     </td>
241                 </tr>
242                 <tr>
243                     <td>once every</td>
244                     <td>[% every1 %]</td>
245                     <td>[% every2 %]</td>
246                     <td>[% every3 %]</td>
247                 </tr>
248                 <tr>
249                     <td>When more than</td>
250                     <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
251                         <i>(is [% innerloop1 %])</i>[% END %]</td>
252                     <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
253                         <i>(is [% innerloop2 %])</i>[% END %]</td>
254                     <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
255                         <i>(is [% innerloop3 %])</i>[% END %]</td>
256                 </tr>
257                 <tr>
258                     <td>Set back to</td>
259                     <td>[% setto1 %]</td>
260                     <td>[% setto2 %]</td>
261                     <td>[% setto3 %]</td>
262                 </tr>
263                 <tr>
264                     <td>
265                             Inner counter
266                     </td>
267                     <td>[% innerloop1 %]</td>
268                     <td>[% innerloop2 %]</td>
269                     <td>[% innerloop3 %]</td>
270                 </tr>
271                 <tr>
272                     <td>
273                             Last value
274                     </td>
275                     <td>[% lastvalue1 %]</td>
276                     <td>[% lastvalue2 %]</td>
277                     <td>[% lastvalue3 %]</td>
278                 </tr>
279             </table>
280     </div>
281     <div id="subscription_issues">
282         <table>
283         <tr>
284             <th>Issue number</th>
285             <th>Planned date</th>
286             <th>Published date</th>
287             <th>Status</th>
288         </tr>
289         [% FOREACH serialslis IN serialslist %]
290             <tr>
291                 <td>
292                     [% serialslis.serialseq %]
293                 </td>
294                 <td>
295                     [% serialslis.planneddate %]
296                 </td>
297                 <td>
298                     [% serialslis.publisheddate %]
299                 </td>
300                 <td>
301                     [% IF ( serialslis.status1 ) %]Expected[% END %]
302                     [% IF ( serialslis.status2 ) %]Arrived[% END %]
303                     [% IF ( serialslis.status3 ) %]Late[% END %]
304                     [% IF ( serialslis.status4 ) %]Missing[% END %]
305                     [% IF ( serialslis.status5 ) %]Not issued[% END %]
306                     [% IF ( serialslis.status6 ) %]Delete[% END %]
307                     [% IF ( serialslis.status7 ) %]
308                       Claimed
309                       [% IF ( serialslis.claimdate ) %]
310                         [% serialslis.claimdate %]
311                       [% END %]
312                     [% END %]
313                     [% IF ( serialslis.status8 ) %]Stopped[% END %]
314                 </td>
315             </tr>
316         [% END %]
317         </table>
318     </div>
319     <div id="subscription_summary">
320     <div class="yui-g">
321     <div class="rows">
322         <ol>
323             <li><span class="label">Start date:</span> [% startdate %] </li>
324             <li><span class="label">End date:</span> [% enddate %]</li>
325             <li><span class="label">History start date:</span> [% histstartdate %] </li>
326             <li><span class="label">History end date:</span> [% histenddate %]</li>
327             <li><span class="label">Received issues:</span>[% recievedlist %]</li>
328             <li><span class="label">Missing issues:</span>[% missinglist %]</li>
329             <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break %]</li>
330             <li><span class="label">Public note:</span>[% notes FILTER html_line_break %]</li>
331             <li><span class="label">History staff note</span>[% librariannote FILTER html_line_break %]</li>
332             <li><span class="label">History OPAC note</span>[% opacnote FILTER html_line_break %]</li>
333         </ol>
334     </div>
335     </div>
336     </div>
337     </div>
338 </div>
339 </div>
340
341 <div class="yui-b">
342 [% INCLUDE 'serials-menu.inc' %]
343 </div>
344 </div>
345 [% INCLUDE 'intranet-bottom.inc' %]