Bug 11944: Fix encoding issue on adding a subscription
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-detail.tt
1 [% USE Branches %]
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> [% Branches.GetName( branchcode ) %]</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
128     <div id="subscription_planning">
129     <div class="yui-g">
130     <div class="rows">
131         <ol>
132             <li><span class="label">Beginning date:</span> [% startdate %]
133             </li>
134             <li><span class="label">Frequency:</span>
135                 [% frequency.description %]
136             </li>
137             <li>
138               <span class="label">Manual history: </span>
139                 [% IF ( manualhistory ) %]
140                     Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid %]">Edit history</a>
141                 [% ELSE %]
142                     Disabled
143                 [% END %]
144             </li>
145             <li><span class="label">Number pattern:</span>
146                 [% numberpattern.label %]
147             </li>
148             <li><table>
149             <tr>
150                 <td>Starting with:</td>
151                 [% IF (has_X) %]
152                     <td align="center">[% lastvalue1 %]</td>
153                 [% END %]
154                 [% IF (has_Y) %]
155                     <td align="center">[% lastvalue2 %]</td>
156                 [% END %]
157                 [% IF (has_Z) %]
158                     <td align="center">[% lastvalue3 %]</td>
159                 [% END %]
160             </tr>
161             <tr>
162                 <td>Rollover:</td>
163                 [% IF (has_X) %]
164                     <td align="center">[% numberpattern.whenmorethan1 %]</td>
165                 [% END %]
166                 [% IF (has_Y) %]
167                     <td align="center">[% numberpattern.whenmorethan2 %]</td>
168                 [% END %]
169                 [% IF (has_Z) %]
170                     <td align="center">[% numberpattern.whenmorethan3 %]</td>
171                 [% END %]
172             </tr>
173             </table></li>
174             [% IF ( irregular_issues ) %]
175             <li><span class="label">Irregularity:</span> [% irregular_issues %] issues
176             </li>
177             [% END %]
178             <li><span class="label">First arrival:</span> [% firstacquidate %]
179             </li>
180         [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
181         [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
182         [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
183         </ol>
184     </div>
185     </div>
186     </div>
187     <div id="subscription_numbering" style="display:none;">
188         <h3>Numbering calculation</h3>
189         <p><label>Numbering formula:</label> [% numberingmethod %]</p>
190         <table>
191             <tr>
192                 <th>&nbsp;</th>
193                 <th>X</th>
194                 <th>Y</th>
195                 <th>Z</th>
196                 </tr>
197                 <tr>
198                     <td>Add</td>
199                     <td>
200                         [% add1 %]
201                     </td>
202                     <td>
203                         [% add2 %]
204                     </td>
205                     <td>
206                         [% add3 %]
207                     </td>
208                 </tr>
209                 <tr>
210                     <td>once every</td>
211                     <td>[% every1 %]</td>
212                     <td>[% every2 %]</td>
213                     <td>[% every3 %]</td>
214                 </tr>
215                 <tr>
216                     <td>When more than</td>
217                     <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
218                         <i>(is [% innerloop1 %])</i>[% END %]</td>
219                     <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
220                         <i>(is [% innerloop2 %])</i>[% END %]</td>
221                     <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
222                         <i>(is [% innerloop3 %])</i>[% END %]</td>
223                 </tr>
224                 <tr>
225                     <td>Set back to</td>
226                     <td>[% setto1 %]</td>
227                     <td>[% setto2 %]</td>
228                     <td>[% setto3 %]</td>
229                 </tr>
230                 <tr>
231                     <td>
232                             Inner counter
233                     </td>
234                     <td>[% innerloop1 %]</td>
235                     <td>[% innerloop2 %]</td>
236                     <td>[% innerloop3 %]</td>
237                 </tr>
238                 <tr>
239                     <td>
240                             Last value
241                     </td>
242                     <td>[% lastvalue1 %]</td>
243                     <td>[% lastvalue2 %]</td>
244                     <td>[% lastvalue3 %]</td>
245                 </tr>
246             </table>
247     </div>
248     <div id="subscription_issues">
249         <table>
250         <tr>
251             <th>Issue number</th>
252             <th>Planned date</th>
253             <th>Published date</th>
254             <th>Status</th>
255         </tr>
256         [% FOREACH serialslis IN serialslist %]
257             <tr>
258                 <td>
259                     [% serialslis.serialseq %]
260                 </td>
261                 <td>
262                     [% IF serialslis.planneddate %]
263                       [% serialslis.planneddate %]
264                     [% ELSE %]
265                       Unknown
266                     [% END %]
267                 </td>
268                 <td>
269                     [% IF serialslis.publisheddate %]
270                       [% serialslis.publisheddate %]
271                     [% ELSE %]
272                       Unknown
273                     [% END %]
274                 </td>
275                 <td>
276                     [% IF ( serialslis.status1 ) %]Expected[% END %]
277                     [% IF ( serialslis.status2 ) %]Arrived[% END %]
278                     [% IF ( serialslis.status3 ) %]Late[% END %]
279                     [% IF ( serialslis.status4 ) %]Missing[% END %]
280                     [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
281                     [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
282                     [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
283                     [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
284                     [% IF ( serialslis.status5 ) %]Not issued[% END %]
285                     [% IF ( serialslis.status6 ) %]Delete[% END %]
286                     [% IF ( serialslis.status7 ) %]
287                       Claimed
288                       [% IF ( serialslis.claimdate ) %]
289                         [% serialslis.claimdate %]
290                       [% END %]
291                     [% END %]
292                     [% IF ( serialslis.status8 ) %]Stopped[% END %]
293                 </td>
294             </tr>
295         [% END %]
296         </table>
297     </div>
298     <div id="subscription_summary">
299     <div class="yui-g">
300     <div class="rows">
301         <ol>
302             <li><span class="label">Start date:</span> [% startdate %] </li>
303             <li><span class="label">End date:</span> [% enddate %]</li>
304             <li><span class="label">History start date:</span> [% histstartdate %] </li>
305             <li><span class="label">History end date:</span> [% histenddate %]</li>
306             <li><span class="label">Received issues:</span>[% recievedlist %]</li>
307             <li><span class="label">Missing issues:</span>[% missinglist %]</li>
308             <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break %]</li>
309             <li><span class="label">Public note:</span>[% notes FILTER html_line_break %]</li>
310             <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break %]</li>
311             <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break %]</li>
312         </ol>
313     </div>
314     </div>
315     </div>
316     </div>
317
318     [% IF ( show_acquisition_details ) %]
319         <div id="acquisition_details">
320             <h2>Acquisition details</h2>
321             <table>
322                 <thead>
323                     <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>Fund</th><th></th></tr>
324                 </thead>
325                 <tbody>
326                     <tr>
327                         <td>Ordered amount</td>
328                         <td>[% valuegste_ordered %]</td>
329                         <td>[% valuegsti_ordered %]</td>
330                         <td>[% budget_name_ordered %]</td>
331                         <td>
332                             [% IF ( ordered_exists ) %]
333                                 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket information</a>
334                             [% END %]
335                         </td>
336                     </tr>
337                     <tr>
338                         <td>Spent amount</td>
339                         <td>[% valuegste_spent %]</td>
340                         <td>[% valuegsti_spent %]</td>
341                         <td>[% budget_name_spent %]</td>
342                         <td>
343                             [% IF ( spent_exists ) %]
344                                 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">See invoice information</a>
345                             [% END %]
346                         </td>
347                     </tr>
348                 </tbody>
349             </table>
350         </div>
351     [% END %]
352
353
354
355 </div>
356 </div>
357
358 <div class="yui-b">
359 [% INCLUDE 'serials-menu.inc' %]
360 </div>
361 </div>
362 [% INCLUDE 'intranet-bottom.inc' %]