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