Fixing typo in value_builder/dateaccessioned.pl; Adding error message output to addit...
[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 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
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').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>Branch</th>
72   <th>Call Number</th>
73   <th>Notes</th>
74   <th>Renew</th>
75 </tr>
76 <!--TMPL_LOOP Name="subscriptions"-->
77         <tr>
78       <td><a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">#<!-- TMPL_VAR name="subscriptionid" --></a> </td>
79       <td>         <!--TMPL_IF name="periodicity1" -->
80                         1/day
81                 <!-- /TMPL_IF -->
82                 <!--TMPL_IF name="periodicity2" -->
83                         1/week
84                 <!-- /TMPL_IF -->
85                 <!--TMPL_IF name="periodicity3" -->
86                         1/2 weeks
87                 <!-- /TMPL_IF -->
88                 <!--TMPL_IF name="periodicity4" -->
89                         1/3 weeks
90                 <!-- /TMPL_IF -->
91                 <!--TMPL_IF name="periodicity5" -->
92                         1/Month
93                 <!-- /TMPL_IF -->
94                 <!--TMPL_IF name="periodicity6" -->
95                         1/2 Months (6/year)
96                 <!-- /TMPL_IF -->
97                 <!--TMPL_IF name="periodicity7" -->
98                         1/quarter
99                 <!-- /TMPL_IF -->
100                 <!--TMPL_IF name="periodicity8" -->
101                         1/quarter
102                 <!-- /TMPL_IF -->
103                 <!--TMPL_IF name="periodicity9" -->
104                         2/year
105                 <!-- /TMPL_IF -->
106                 <!--TMPL_IF name="periodicity10" -->
107                         1/year
108                 <!-- /TMPL_IF -->
109                 <!--TMPL_IF name="periodicity11" -->
110                         1/2 years
111                 <!-- /TMPL_IF --></td>
112            <td>
113                 <!-- TMPL_IF name="numberpattern1" -->
114                     Number
115                 <!-- /TMPL_IF -->
116                 <!-- TMPL_IF name="numberpattern2" -->
117                     Volume, Number, Issue
118                 <!-- /TMPL_IF -->
119                 <!-- TMPL_IF name="numberpattern3" -->
120                     Volume, Number
121                 <!-- /TMPL_IF -->
122                 <!-- TMPL_IF name="numberpattern4" -->
123                     Volume, Issue
124                 <!-- /TMPL_IF -->
125                 <!-- TMPL_IF name="numberpattern5" -->
126                     Number, Issue
127                 <!-- /TMPL_IF -->
128                 <!-- TMPL_IF name="numberpattern6" -->
129                     Seasonal only
130                 <!-- /TMPL_IF -->
131                 <!-- TMPL_IF name="numberpattern7" -->
132                     None of the above
133                 <!-- /TMPL_IF --></td>
134             <td> <!-- TMPL_VAR name="branchcode" --></td>
135             <td> <!-- TMPL_VAR name="callnumber" --></td>
136         <td> <!-- TMPL_VAR name="notes" -->        <!--TMPL_IF name="subscriptionexpired"--><br /><span class="problem"> Subscription Expired</span>
137         <!--/TMPL_IF-->
138         </td>
139         <!--TMPL_IF name="abouttoexpire"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
140         <!--TMPL_ELSE-->
141         <!--TMPL_IF name="subscriptionexpired"--><td class="problem"> <a onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew</a></td>
142         <!--TMPL_ELSE-->
143         <td> &nbsp;</td>
144         <!--/TMPL_IF-->
145         <!--/TMPL_IF-->
146
147       </tr>
148 <!--/TMPL_LOOP -->
149 <!--TMPL_IF Name="subscr"-->
150 <tr ><td colspan="7">  <a href="serials-collection.pl?biblionumber=<!--TMPL_VAR Name="biblionumber" -->">See any subscription attached to this biblio</a></td>
151 </tr>
152 <!--/TMPL_IF-->
153 </table>
154 <!--/TMPL_IF -->
155
156
157 <!-- TMPL_IF NAME="years" --><form name="edition" action="serials-edit.pl">
158 <div id="subscription_years" class="toptabs numbered">
159 <ul>
160         <!-- TMPL_LOOP NAME="years" -->
161         <!-- TMPL_IF NAME="year" -->
162             <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>
163         <!-- /TMPL_IF -->
164     <!-- /TMPL_LOOP -->
165 </ul>
166
167  <!-- TMPL_LOOP NAME="years" -->
168 <div id="subscription-year-<!-- TMPL_VAR NAME="year" -->">
169         <table width="400px">
170             <tr>
171 <!--TMPL_UNLESS Name="onesubscription"-->
172                 <th># Subs</th>
173 <!--/TMPL_UNLESS-->
174                 <th>Date published
175                 </th>
176                 <th>Date received
177                 </th>
178                 <th> Number
179                 </th>
180                 <th> Status
181                 </th>
182                 <th> Notes
183                 </th>
184                 <th>branch
185                 </th>
186                 <th>Edit
187                 </th>
188             </tr>
189       <!-- TMPL_LOOP Name="serials" -->
190             <tr>
191 <!--TMPL_UNLESS Name="onesubscription"-->
192                  <td><a href="serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->"><!--TMPL_VAR Name="subscriptionid"--></a></td>
193 <!--/TMPL_UNLESS-->
194                 <td>
195                     <!-- TMPL_VAR Name="publisheddate" -->
196                 </td>
197                 <td>
198                     <!-- TMPL_VAR Name="planneddate" -->
199                 </td>
200                 <td>
201                     <!-- TMPL_VAR Name="serialseq" -->
202                 </td>
203                 <td>
204                     <!-- TMPL_IF Name="status1" -->Waited<!-- /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 -->
205                 </td>
206                 <td>
207                     <!-- TMPL_VAR Name="notes" -->
208                 </td>
209                 <td>
210                     <!-- TMPL_VAR Name="branchcode" -->
211                 </td>
212                 <td>
213                   <!--TMPL_IF Name="cannotedit"-->
214                     disabled
215                   <!--TMPL_ELSE -->
216                     <input type="hidden" name="subs" value="<!--TMPL_VAR Name="subscriptionid"-->" />
217                     <!--TMPL_IF Name="subscriptionexpired"-->
218                     <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" disabled="disabled" />
219                     <!--TMPL_ELSE-->
220                       <!--TMPL_IF Name="status1"-->
221                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
222                       <!--TMPL_ELSE -->
223                       <!--TMPL_IF Name="status3"-->
224                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
225                       <!--TMPL_ELSE -->
226                         <!--TMPL_IF Name="status4"-->
227                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
228                         <!--TMPL_ELSE -->
229                     <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" />
230                         <!--/TMPL_IF-->           
231                       <!--/TMPL_IF-->           
232                       <!--/TMPL_IF-->           
233                     <!--/TMPL_IF -->
234                   <!--/TMPL_IF -->
235                 </td>
236             </tr>
237       <!-- /TMPL_LOOP -->
238         </table>
239       <p><input type="submit" value="Edit serials" /></p>
240     </div>
241     <!--/TMPL_LOOP -->
242   <input type="hidden" name="subscriptionid" value="<!--TMPL_VAR Name="subscriptionidlist"-->" />
243
244 </div>
245 </form>
246 <!-- /TMPL_IF -->
247
248 </div>
249 </div>
250
251 <div class="yui-b">
252 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
253 </div>
254 </div>
255 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->