changing form to post method (not new_acq related)
[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 function generateNext(subscriptionid) {
34         if(confirm("Do you really want to generate next serial?")){
35                 document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid;
36         }
37 }
38
39 $(document).ready(function() {
40         $('#subscription_years > ul').tabs();
41 });
42  
43
44 //]]>
45 </script>
46 </head>
47 <body class="yui-skin-sam">
48 <!-- TMPL_INCLUDE NAME="header.inc" -->
49 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
50
51 <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>
52
53 <div id="doc3" class="yui-t2">
54    
55    <div id="bd">
56         <div id="yui-main">
57         <div class="yui-b">
58
59
60 <!-- TMPL_UNLESS name="popup" -->
61         <!-- TMPL_INCLUDE NAME="serials-toolbar.inc" -->
62
63         <h1>Serial Collection information for  <i><!-- TMPL_VAR name="bibliotitle" --></i></h1>
64 <!-- /TMPL_UNLESS -->
65
66 <!--TMPL_IF Name="subscriptions"-->
67 <table>
68 <!--TMPL_IF Name="onesubscription"-->
69 <caption> Subscription Summary</caption>
70 <!--TMPL_ELSE-->
71 <caption> Subscription Summaries</caption>
72 <!--/TMPL_IF-->
73 <tr>
74   <th>Subscription Num. </th>
75   <th>Frequency</th>
76   <th>Numbering pattern</th>
77   <th>Library</th>
78   <th>Call Number</th>
79   <th>Notes</th>
80   <th>Routing</th>
81   <th>Renew</th>
82 </tr>
83 <!--TMPL_LOOP Name="subscriptions"-->
84         <tr>
85       <td><a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->"># <!-- TMPL_VAR name="subscriptionid" --></a> </td>
86       <td>         <!--TMPL_IF name="periodicity1" -->
87                         1/day
88                 <!-- /TMPL_IF -->
89                 <!--TMPL_IF name="periodicity2" -->
90                         1/week
91                 <!-- /TMPL_IF -->
92                 <!--TMPL_IF name="periodicity3" -->
93                         1/2 weeks
94                 <!-- /TMPL_IF -->
95                 <!--TMPL_IF name="periodicity4" -->
96                         1/3 weeks
97                 <!-- /TMPL_IF -->
98                 <!--TMPL_IF name="periodicity5" -->
99                         1/Month
100                 <!-- /TMPL_IF -->
101                 <!--TMPL_IF name="periodicity6" -->
102                         1/2 Months (6/year)
103                 <!-- /TMPL_IF -->
104                 <!--TMPL_IF name="periodicity7" -->
105                         1/quarter
106                 <!-- /TMPL_IF -->
107                 <!--TMPL_IF name="periodicity8" -->
108                         1/quarter
109                 <!-- /TMPL_IF -->
110                 <!--TMPL_IF name="periodicity9" -->
111                         2/year
112                 <!-- /TMPL_IF -->
113                 <!--TMPL_IF name="periodicity10" -->
114                         1/year
115                 <!-- /TMPL_IF -->
116                 <!--TMPL_IF name="periodicity11" -->
117                         1/2 years
118                 <!-- /TMPL_IF --></td>
119            <td>
120                 <!-- TMPL_IF name="numberpattern1" -->
121                     Number
122                 <!-- /TMPL_IF -->
123                 <!-- TMPL_IF name="numberpattern2" -->
124                     Volume, Number, Issue
125                 <!-- /TMPL_IF -->
126                 <!-- TMPL_IF name="numberpattern3" -->
127                     Volume, Number
128                 <!-- /TMPL_IF -->
129                 <!-- TMPL_IF name="numberpattern4" -->
130                     Volume, Issue
131                 <!-- /TMPL_IF -->
132                 <!-- TMPL_IF name="numberpattern5" -->
133                     Number, Issue
134                 <!-- /TMPL_IF -->
135                 <!-- TMPL_IF name="numberpattern6" -->
136                     Seasonal only
137                 <!-- /TMPL_IF -->
138                 <!-- TMPL_IF name="numberpattern7" -->
139                     None of the above
140                 <!-- /TMPL_IF --></td>
141             <td> <!-- TMPL_VAR name="branchcode" --></td>
142             <td> <!-- TMPL_VAR name="callnumber" --></td>
143         <td> <!-- TMPL_VAR name="notes" -->        <!--TMPL_IF name="subscriptionexpired"--><br /><span class="problem"> Subscription Expired</span>
144         <!--/TMPL_IF-->
145         </td>
146                         <td><a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit Routing List</a></td>
147         <!--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>
148         <!--TMPL_ELSE-->
149         <!--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>
150         <!--TMPL_ELSE-->
151         <td> &nbsp;</td>
152         <!--/TMPL_IF-->
153         <!--/TMPL_IF-->
154
155       </tr>
156 <!--/TMPL_LOOP -->
157 <!--TMPL_IF Name="subscr"-->
158 <!--TMPL_UNLESS Name="onesubscription"-->
159 <tr ><td colspan="7">  <a href="serials-collection.pl?biblionumber=<!--TMPL_VAR Name="biblionumber" -->">See any subscription attached to this biblio</a></td>
160 </tr><!-- /TMPL_UNLESS -->
161 <!--/TMPL_IF-->
162 </table>
163 <!--/TMPL_IF -->
164
165
166 <!-- TMPL_IF NAME="years" --><form name="edition" action="serials-edit.pl" method="post">
167 <div id="subscription_years" class="toptabs numbered">
168 <ul>
169         <!-- TMPL_LOOP NAME="years" -->
170         <!-- TMPL_IF NAME="year" -->
171             <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>
172         <!-- /TMPL_IF -->
173     <!-- /TMPL_LOOP -->
174 </ul>
175
176  <!-- TMPL_LOOP NAME="years" -->
177 <div id="subscription-year-<!-- TMPL_VAR NAME="year" -->">
178         <table style="width:400px;">
179             <tr>
180 <!--TMPL_UNLESS Name="onesubscription"-->
181                 <th># Subs</th>
182 <!--/TMPL_UNLESS-->
183                 <th>Date published
184                 </th>
185                 <th>Date received
186                 </th>
187                 <th> Number
188                 </th>
189                 <th> Status
190                 </th>
191                 <th> Notes
192                 </th>
193                 <th>branch
194                 </th>
195                 <th>Edit
196                 </th>
197             </tr>
198       <!-- TMPL_LOOP Name="serials" -->
199             <tr>
200 <!--TMPL_UNLESS Name="onesubscription"-->
201                  <td><a href="serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->"><!--TMPL_VAR Name="subscriptionid"--></a></td>
202 <!--/TMPL_UNLESS-->
203                 <td>
204                     <!-- TMPL_VAR Name="publisheddate" -->
205                 </td>
206                 <td>
207                     <!-- TMPL_VAR Name="planneddate" -->
208                 </td>
209                 <td>
210                     <!-- TMPL_VAR Name="serialseq" -->
211                 </td>
212                 <td>
213                     <!-- 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 -->
214                 </td>
215                 <td>
216                     <!-- TMPL_VAR Name="notes" -->
217                 </td>
218                 <td>
219                     <!-- TMPL_VAR Name="branchcode" -->
220                 </td>
221                 <td>
222                   <!--TMPL_IF Name="cannotedit"-->
223                     disabled
224                   <!--TMPL_ELSE -->
225                     <!--TMPL_IF Name="subscriptionexpired"-->
226                     <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" disabled="disabled" />
227                     <!--TMPL_ELSE-->
228                       <!--TMPL_IF Name="status1"-->
229                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
230                       <!--TMPL_ELSE -->
231                       <!--TMPL_IF Name="status3"-->
232                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
233                       <!--TMPL_ELSE -->
234                         <!--TMPL_IF Name="status4"-->
235                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
236                         <!--TMPL_ELSE -->
237                     <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" />
238                         <!--/TMPL_IF-->           
239                       <!--/TMPL_IF-->           
240                       <!--/TMPL_IF-->           
241                     <!--/TMPL_IF -->
242                   <!--/TMPL_IF -->
243                 </td>
244             </tr>
245       <!-- /TMPL_LOOP -->
246         </table>
247       <p><input type="submit" value="Edit serials" />&nbsp;<input type="button" value="Generate Next" onclick="javascript:generateNext(<!-- TMPL_VAR NAME="subscriptionidlist" -->)" /></p>
248     </div>
249     <!--/TMPL_LOOP -->
250   <input type="hidden" name="subscriptionid" value="<!--TMPL_VAR Name="subscriptionidlist"-->" />
251
252 </div>
253 </form>
254 <!-- /TMPL_IF -->
255
256 </div>
257 </div>
258
259 <div class="yui-b">
260 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
261 </div>
262 </div>
263 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->