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