Bug 19970: Revise change of bug 19413 to work better for translations
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-detail.tt
1 [% USE Asset %]
2 [% USE Koha %]
3 [% USE Branches %]
4 [% USE AuthorisedValues %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha &rsaquo; Serials &rsaquo; Details for subscription #[% subscriptionid %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 </head>
10
11 <body id="ser_subscription-detail" class="ser">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'serials-search.inc' %]
14
15 <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>
16
17 <div id="doc3" class="yui-t2">
18    
19    <div id="bd">
20         <div id="yui-main">
21         <div class="yui-b">
22         [% INCLUDE 'serials-toolbar.inc' %]
23
24     <h1>Subscription for [% bibliotitle%] [% IF closed %](closed)[% END %]</h1>
25     [% IF ( abouttoexpire ) %]
26       [% UNLESS closed %]
27         <div class="dialog message">Subscription will expire [% enddate %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
28       [% END %]
29     [% END %]
30     [% IF ( NEEDSCONFIRMATION ) %]
31     <div id="circ_needsconfirmation" class="dialog alert">
32         <h3>Please confirm subscription deletion</h3>
33
34                         <ul>
35                         [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] 
36                         [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
37                         [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
38                         </ul>
39                         <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
40                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
41                         <input type="hidden" name="issueconfirmed" value="1" />
42                         <input type="hidden" name="op" value="del" />
43             <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button>
44                         </form>
45                         <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
46                         <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
47             <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button>
48                         </form>
49
50         </div>
51         [% END %] <!-- NEEDSCONFIRMATION -->
52
53 <div id="subscription_description" class="toptabs">
54 <ul class="ui-tabs-nav">
55     <li><a href="#subscription_info">Information</a></li>
56     <li><a href="#subscription_planning">Planning</a></li>
57     <li><a href="#subscription_issues">Issues</a></li>
58     <li><a href="#subscription_summary">Summary</a></li>
59 </ul>
60
61 <div id="subscription_info">
62     <div class="yui-g">
63     <div class="yui-u first">
64     <div class="rows">
65                 <ol>
66                 <li><span class="label">Subscription ID: </span>[% subscriptionid %]</li>
67         <li><span class="label">Librarian identity:</span> [% librarian %]</li>
68         <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid %]">[% aqbooksellername |html %]</a></li>
69         <li><span class="label">Biblio:</span>  <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a> <i>([% bibnum %])</i></li>
70         [% IF ( OPACBaseURL ) %]
71             <li>
72                 <span class="label">OPAC view:</span>
73                 <a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">Open in new window.</a>
74             </li>
75         [% END %]
76 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) %]</li>[% END %]
77         [% IF ( serialsadditems ) %]
78             <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
79         [% ELSE %]
80             <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
81         [% END %]
82         <li>
83             <span class="label">Serial number:</span>
84             [% IF skip_serialseq %]
85                 Serial number is skipped when an irregularity is found.
86             [% ELSE %]
87                 Serial number is kept when an irregularity is found.
88             [% END %]
89         </li>
90         <li><span class="label">Grace period:</span> [% graceperiod %]</li>
91         </ol>
92     </div>
93     </div>
94     <div class="yui-u">
95     <div class="rows">
96         <ol>
97         [% IF ( location ) %]<li><span class="label">Location:</span> [% location %]</li>[% END %]
98         [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber |html %]</li>[% END %]
99                 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount %]</li>[% END %]
100         [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount %]</li>[% END %]
101         [% IF ( letter ) %]
102             <li>
103                 <span class="label">Patron notification:</span> [% letter %]
104                 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid %]">subscribers</a>)
105             </li>
106         [% END %]
107         [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
108      </ol>
109      </div>
110      </div>
111      </div>
112
113      [% IF additional_fields_for_subscription %]
114     <div class="yui-g">
115       <div class="yui-u first">
116         <div class="rows">
117           <legend>Additional fields:</legend>
118           <ol>
119             [% FOR field IN additional_fields_for_subscription %]
120               <li>
121                 <span class="label">[% field.name %]:</span>
122                 [% IF field.authorised_value_category %]
123                   [% AuthorisedValues.GetByCode( field.authorised_value_category, additional_fields.${field.name} ) %]
124                 [% ELSE %]
125                   [% additional_fields.${field.name} %]
126                 [% END %]
127               </li>
128             [% END %]
129           </ol>
130         </div>
131       </div>
132       </div>
133      [% END %]
134 </div>
135
136     <div id="subscription_planning">
137     <div class="yui-g">
138     <div class="rows">
139         <ol>
140             <li><span class="label">Beginning date:</span> [% startdate %]
141             </li>
142             <li><span class="label">Frequency:</span>
143                 [% frequency.description %]
144             </li>
145             <li>
146               <span class="label">Manual history: </span>
147                 [% IF ( manualhistory ) %]
148                     Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid %]">Edit history</a>
149                 [% ELSE %]
150                     Disabled
151                 [% END %]
152             </li>
153             <li><span class="label">Number pattern:</span>
154                 [% numberpattern.label %]
155             </li>
156             <li><table>
157             <tr>
158                 <td>Starting with:</td>
159                 [% IF (has_X) %]
160                     <td align="center">[% lastvalue1 %]</td>
161                 [% END %]
162                 [% IF (has_Y) %]
163                     <td align="center">[% lastvalue2 %]</td>
164                 [% END %]
165                 [% IF (has_Z) %]
166                     <td align="center">[% lastvalue3 %]</td>
167                 [% END %]
168             </tr>
169             <tr>
170                 <td>Rollover:</td>
171                 [% IF (has_X) %]
172                     <td align="center">[% numberpattern.whenmorethan1 %]</td>
173                 [% END %]
174                 [% IF (has_Y) %]
175                     <td align="center">[% numberpattern.whenmorethan2 %]</td>
176                 [% END %]
177                 [% IF (has_Z) %]
178                     <td align="center">[% numberpattern.whenmorethan3 %]</td>
179                 [% END %]
180             </tr>
181             </table></li>
182             [% IF ( irregular_issues ) %]
183             <li><span class="label">Irregularity:</span> [% irregular_issues %] issues
184             </li>
185             [% END %]
186             <li><span class="label">First arrival:</span> [% firstacquidate %]
187             </li>
188         [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
189         [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
190         [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
191         </ol>
192     </div>
193     </div>
194     </div>
195     <div id="subscription_numbering" style="display:none;">
196         <h3>Numbering calculation</h3>
197         <p><label>Numbering formula:</label> [% numberingmethod %]</p>
198         <table>
199             <tr>
200                 <th>&nbsp;</th>
201                 <th>X</th>
202                 <th>Y</th>
203                 <th>Z</th>
204                 </tr>
205                 <tr>
206                     <td>Add</td>
207                     <td>
208                         [% add1 %]
209                     </td>
210                     <td>
211                         [% add2 %]
212                     </td>
213                     <td>
214                         [% add3 %]
215                     </td>
216                 </tr>
217                 <tr>
218                     <td>once every</td>
219                     <td>[% every1 %]</td>
220                     <td>[% every2 %]</td>
221                     <td>[% every3 %]</td>
222                 </tr>
223                 <tr>
224                     <td>When more than</td>
225                     <td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
226                         <i>(is [% innerloop1 %])</i>[% END %]</td>
227                     <td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
228                         <i>(is [% innerloop2 %])</i>[% END %]</td>
229                     <td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
230                         <i>(is [% innerloop3 %])</i>[% END %]</td>
231                 </tr>
232                 <tr>
233                     <td>Set back to</td>
234                     <td>[% setto1 %]</td>
235                     <td>[% setto2 %]</td>
236                     <td>[% setto3 %]</td>
237                 </tr>
238                 <tr>
239                     <td>
240                             Inner counter
241                     </td>
242                     <td>[% innerloop1 %]</td>
243                     <td>[% innerloop2 %]</td>
244                     <td>[% innerloop3 %]</td>
245                 </tr>
246                 <tr>
247                     <td>
248                             Last value
249                     </td>
250                     <td>[% lastvalue1 %]</td>
251                     <td>[% lastvalue2 %]</td>
252                     <td>[% lastvalue3 %]</td>
253                 </tr>
254             </table>
255     </div>
256     <div id="subscription_issues">
257         <table>
258         <tr>
259             <th>Issue number</th>
260             <th>Planned date</th>
261             <th>Published date</th>
262             <th>Published date (text)</th>
263             <th>Status</th>
264         </tr>
265         [% FOREACH serialslis IN serialslist %]
266             <tr>
267                 <td>
268                     [% serialslis.serialseq %]
269                 </td>
270                 <td>
271                     [% IF serialslis.planneddate %]
272                       [% serialslis.planneddate %]
273                     [% ELSE %]
274                       Unknown
275                     [% END %]
276                 </td>
277                 <td>
278                     [% IF serialslis.publisheddate %]
279                       [% serialslis.publisheddate %]
280                     [% ELSE %]
281                       Unknown
282                     [% END %]
283                 </td>
284                 <td>
285                     [% serialslis.publisheddatetext %]
286                 </td>
287                 <td>
288                     [% IF ( serialslis.status1 ) %]Expected[% END %]
289                     [% IF ( serialslis.status2 ) %]Arrived[% END %]
290                     [% IF ( serialslis.status3 ) %]Late[% END %]
291                     [% IF ( serialslis.status4 ) %]Missing[% END %]
292                     [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
293                     [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
294                     [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
295                     [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
296                     [% IF ( serialslis.status5 ) %]Not issued[% END %]
297                     [% IF ( serialslis.status6 ) %]Delete[% END %]
298                     [% IF ( serialslis.status7 ) %]
299                       Claimed
300                       [% IF ( serialslis.claimdate ) %]
301                         [% serialslis.claimdate %]
302                       [% END %]
303                     [% END %]
304                     [% IF ( serialslis.status8 ) %]Stopped[% END %]
305                 </td>
306             </tr>
307         [% END %]
308         </table>
309     </div>
310     <div id="subscription_summary">
311     <div class="yui-g">
312     <div class="rows">
313         <ol>
314             <li><span class="label">Start date:</span> [% startdate %] </li>
315             <li><span class="label">End date:</span> [% enddate %]</li>
316             <li><span class="label">History start date:</span> [% histstartdate %] </li>
317             <li><span class="label">History end date:</span> [% histenddate %]</li>
318             <li><span class="label">Received issues:</span>[% recievedlist %]</li>
319             <li><span class="label">Missing issues:</span>[% missinglist %]</li>
320             <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break |html %]</li>
321             <li><span class="label">Public note:</span>[% notes FILTER html_line_break |html %]</li>
322             <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break %]</li>
323             <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break %]</li>
324         </ol>
325     </div>
326     </div>
327     </div>
328     </div>
329
330     [% IF ( show_acquisition_details ) %]
331         <div id="acquisition_details">
332             <h2>Acquisition details</h2>
333             <table>
334                 <thead>
335                     <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>Fund</th><th></th></tr>
336                 </thead>
337                 <tbody>
338                     <tr>
339                         <td>Ordered amount</td>
340                         <td>[% value_tax_excluded_ordered %]</td>
341                         <td>[% value_tax_included_ordered %]</td>
342                         <td>[% budget_name_ordered %]</td>
343                         <td>
344                             [% IF ( ordered_exists ) %]
345                                 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket information</a>
346                             [% END %]
347                         </td>
348                     </tr>
349                     <tr>
350                         <td>Spent amount</td>
351                         <td>[% value_tax_excluded_spent %]</td>
352                         <td>[% value_tax_included_spent %]</td>
353                         <td>[% budget_name_spent %]</td>
354                         <td>
355                             [% IF ( spent_exists ) %]
356                                 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">See invoice information</a>
357                             [% END %]
358                         </td>
359                     </tr>
360                 </tbody>
361             </table>
362         </div>
363     [% END %]
364
365
366
367 </div>
368 </div>
369
370 <div class="yui-b">
371 [% INCLUDE 'serials-menu.inc' %]
372 </div>
373 </div>
374
375 [% MACRO jsinclude BLOCK %]
376     <script type="text/javascript">
377         var subscriptionid = "[% subscriptionid %]";
378         var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
379         var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
380         var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
381     </script>
382     [% Asset.js("js/serials-toolbar.js") %]
383     <script type="text/javascript">
384         // the english words used in display purposes
385         var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
386         "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
387         $(document).ready(function() {
388             $("#subscription_description").tabs();
389             $("#renewsub").click(function(){
390                 popup([% subscriptionid %]);
391                 return false;
392             })
393         });
394     </script>
395 [% END %]
396
397 [% INCLUDE 'intranet-bottom.inc' %]