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