- Lots of markup corrections, in scripts and templates, for XHTML compliance
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / serials-collection.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Serials</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 //<![CDATA[
6 showlayer('<!-- TMPL_VAR NAME="yearmax"-->');
7
8 function showlayer(numlayer)
9 {
10         var yeardata=document.getElementsByName("yeardata");
11     for (i=0; i<yeardata.length; i++ ) {
12                 ong=yeardata[i].getAttribute('id');
13         if (numlayer==ong) {
14                         yeardata[i].setAttribute("class","content_visible");
15             var tabactive=document.getElementById('link'+numlayer);
16             tabactive.removeAttribute("class");
17             tabactive.setAttribute("class","tab_active");
18                 } else {
19                         yeardata[i].removeAttribute("class");
20             yeardata[i].setAttribute("class","content_hidden");
21             try {
22                 var tabactive=document.getElementById('link'+ong);
23                 tabactive.removeAttribute("class");
24                 tabactive.setAttribute("class","tab_inactive");
25             }
26             catch(e){};
27                 }
28         }
29 }
30 function addsubscriptionid()
31 {
32         var tab=new Array();
33     var serialids = document.edition.serialid;
34     for (i=0; i<serialids.length; i++){
35       if (serialids[i].checked == true){
36         var found=false;
37         for (var val in tab){
38           if (tab[val] == document.getElementsByName("subs")[i].getAttribute('val')){found = true;}
39         }
40         if (found == false){
41           tab=tab.concat((document.getElementsByName("subs")[i].getAttribute('val')));
42         }
43       }
44     }
45     var string="";
46     for (var val in tab){
47       string = string + tab[val] + ",";
48     }
49     string=string.substring(0,string.length -1);
50     document.edition.subscriptionid.value=string;
51 }
52 function popup(subscriptionid) {
53     newin=window.open('subscription-renew.pl?mode=popup&subscriptionid='+subscriptionid,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
54 }
55
56 $(document).ready(function() {
57         $('#subscription_years').tabs();
58 });
59  
60
61 //]]>
62 </script>
63 </head>
64 <body>
65 <!-- TMPL_INCLUDE NAME="header.inc" -->
66 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
67
68 <div id="doc3" class="yui-t2">
69    
70    <div id="bd">
71         <div id="yui-main">
72         <div class="yui-b">
73
74
75 <!-- TMPL_UNLESS name="popup" -->
76
77         <h1>Serial Collection information for  <i><!-- TMPL_VAR name="bibliotitle" --></i></h1>
78 <!-- /TMPL_UNLESS -->
79
80 <!--TMPL_IF Name="subscriptions"-->
81 <table>
82 <!--TMPL_IF Name="onesubscription"-->
83 <caption> Subscription Summary</caption>
84 <!--TMPL_ELSE-->
85 <caption> Subscription Summaries</caption>
86 <!--/TMPL_IF-->
87 <tr>
88   <th>Subs </th>
89   <th>Freq</th>
90   <th>Num pattern</th>
91   <th>Branch</th>
92   <th>Call Number</th>
93   <th>Notes</th>
94   <th>Renew</th>
95 </tr>
96 <!--TMPL_LOOP Name="subscriptions"-->
97         <tr>
98       <td><a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">#<!-- TMPL_VAR name="subscriptionid" --></a> </td>
99       <td>         <!--TMPL_IF name="periodicity1" -->
100                         1/day
101                 <!-- /TMPL_IF -->
102                 <!--TMPL_IF name="periodicity2" -->
103                         1/week
104                 <!-- /TMPL_IF -->
105                 <!--TMPL_IF name="periodicity3" -->
106                         1/2 weeks
107                 <!-- /TMPL_IF -->
108                 <!--TMPL_IF name="periodicity4" -->
109                         1/3 weeks
110                 <!-- /TMPL_IF -->
111                 <!--TMPL_IF name="periodicity5" -->
112                         1/Month
113                 <!-- /TMPL_IF -->
114                 <!--TMPL_IF name="periodicity6" -->
115                         1/2 Months (6/year)
116                 <!-- /TMPL_IF -->
117                 <!--TMPL_IF name="periodicity7" -->
118                         1/quarter
119                 <!-- /TMPL_IF -->
120                 <!--TMPL_IF name="periodicity8" -->
121                         1/quarter
122                 <!-- /TMPL_IF -->
123                 <!--TMPL_IF name="periodicity9" -->
124                         2/year
125                 <!-- /TMPL_IF -->
126                 <!--TMPL_IF name="periodicity10" -->
127                         1/year
128                 <!-- /TMPL_IF -->
129                 <!--TMPL_IF name="periodicity11" -->
130                         1/2 years
131                 <!-- /TMPL_IF --></td>
132            <td>
133                 <!-- TMPL_IF name="numberpattern1" -->
134                     Number
135                 <!-- /TMPL_IF -->
136                 <!-- TMPL_IF name="numberpattern2" -->
137                     Volume, Number, Issue
138                 <!-- /TMPL_IF -->
139                 <!-- TMPL_IF name="numberpattern3" -->
140                     Volume, Number
141                 <!-- /TMPL_IF -->
142                 <!-- TMPL_IF name="numberpattern4" -->
143                     Volume, Issue
144                 <!-- /TMPL_IF -->
145                 <!-- TMPL_IF name="numberpattern5" -->
146                     Number, Issue
147                 <!-- /TMPL_IF -->
148                 <!-- TMPL_IF name="numberpattern6" -->
149                     Seasonal only
150                 <!-- /TMPL_IF -->
151                 <!-- TMPL_IF name="numberpattern7" -->
152                     None of the above
153                 <!-- /TMPL_IF --></td>
154             <td> <!-- TMPL_VAR name="branchcode" --></td>
155             <td> <!-- TMPL_VAR name="callnumber" --></td>
156         <td> <!-- TMPL_VAR name="notes" -->        <!--TMPL_IF name="subscriptionexpired"--><br /><span class="problem"> Subscription Expired</span>
157         <!--/TMPL_IF-->
158         </td>
159         <!--TMPL_IF name="abouttoexpire"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
160         <!--TMPL_ELSE-->
161         <!--TMPL_IF name="subscriptionexpired"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
162         <!--TMPL_ELSE-->
163         <td> &nbsp;</td>
164         <!--/TMPL_IF-->
165         <!--/TMPL_IF-->
166
167       </tr>
168 <!--/TMPL_LOOP -->
169 <!--TMPL_IF Name="subscr"-->
170 <tr ><td colspan="7">  <a href="serials-collection.pl?biblionumber=<!--TMPL_VAR Name="biblionumber" -->">See any subscription attached to this biblio</a></td>
171 </tr>
172 <!--/TMPL_IF-->
173 </table>
174 <!--/TMPL_IF -->
175
176
177 <!-- TMPL_IF NAME="years" --><form name="edition" action="serials-edit.pl">
178 <div id="subscription-years">
179 <ul>
180         <!-- TMPL_LOOP NAME="years" -->
181         <!-- TMPL_IF NAME="year" -->
182             <li><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->#subscription-year-<!-- TMPL_VAR NAME="year" -->"><!-- TMPL_VAR NAME="year" --></a></li>
183         <!-- /TMPL_IF -->
184     <!-- /TMPL_LOOP -->
185 </ul>
186
187  <!-- TMPL_LOOP NAME="years" -->
188 <div id="subscription-year-<!-- TMPL_VAR NAME="year" -->">
189         <table width="400px">
190             <tr>
191 <!--TMPL_UNLESS Name="onesubscription"-->
192                 <th> # Subs.
193                 </th>
194 <!--/TMPL_UNLESS-->
195                 <th>Date published
196                 </th>
197                 <th>Date received
198                 </th>
199                 <th> Number
200                 </th>
201                 <th> Status
202                 </th>
203                 <th> Notes
204                 </th>
205                 <th>branch
206                 </th>
207                 <th>Edit
208                 </th>
209             </tr>
210       <!-- TMPL_LOOP Name="serials" -->
211             <tr>
212 <!--TMPL_UNLESS Name="onesubscription"-->
213                  <td><a href="serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->"><!--TMPL_VAR Name="subscriptionid"--></a></td>
214 <!--/TMPL_UNLESS-->
215                 <td>
216                     <!-- TMPL_VAR Name="publisheddate" -->
217                 </td>
218                 <td>
219                     <!-- TMPL_VAR Name="planneddate" -->
220                 </td>
221                 <td>
222                     <!-- TMPL_VAR Name="serialseq" -->
223                 </td>
224                 <td>
225                     <!-- TMPL_IF Name="status1" -->Waited<!-- /TMPL_IF -->
226                     <!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF -->
227                     <!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
228                     <!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
229                     <!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
230                 </td>
231                 <td>
232                     <!-- TMPL_VAR Name="notes" -->
233                 </td>
234                 <td>
235                     <!-- TMPL_VAR Name="branchcode" -->
236                 </td>
237                 <td>
238                   <input type="hidden" name="subs" value="<!--TMPL_VAR Name="subscriptionid"-->" />
239                   <!--TMPL_IF Name="subscriptionexpired"-->
240                   <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" disabled="disabled" />
241                   <!--TMPL_ELSE-->
242                     <!--TMPL_IF Name="status1"-->
243                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
244                     <!--TMPL_ELSE -->
245                     <!--TMPL_IF Name="status3"-->
246                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
247                     <!--TMPL_ELSE -->
248                       <!--TMPL_IF Name="status4"-->
249                       <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
250                       <!--TMPL_ELSE -->
251                       <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" />
252                       <!--/TMPL_IF-->           
253                     <!--/TMPL_IF-->           
254                     <!--/TMPL_IF-->           
255                   <!--/TMPL_IF -->
256                 </td>
257             </tr>
258       <!-- /TMPL_LOOP -->
259         </table>
260       <p><input type="submit" value="Edit serials" /></p>
261     </div>
262     <!--/TMPL_LOOP -->
263   <input type="hidden" name="subscriptionid" value="<!--TMPL_VAR Name="subscriptionidlist"-->" />
264
265 </div>
266 </form>
267 <!-- /TMPL_IF -->
268
269 </div>
270 </div>
271
272 <div class="yui-b">
273 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
274 </div>
275 </div>
276 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->