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