Messy merge ignore
[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>
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.
173                 </th>
174 <!--/TMPL_UNLESS-->
175                 <th>Date published
176                 </th>
177                 <th>Date received
178                 </th>
179                 <th> Number
180                 </th>
181                 <th> Status
182                 </th>
183                 <th> Notes
184                 </th>
185                 <th>branch
186                 </th>
187                 <th>Edit
188                 </th>
189             </tr>
190       <!-- TMPL_LOOP Name="serials" -->
191             <tr>
192 <!--TMPL_UNLESS Name="onesubscription"-->
193                  <td><a href="serials-collection.pl?subscriptionid=<!--TMPL_VAR Name="subscriptionid"-->"><!--TMPL_VAR Name="subscriptionid"--></a></td>
194 <!--/TMPL_UNLESS-->
195                 <td>
196                     <!-- TMPL_VAR Name="publisheddate" -->
197                 </td>
198                 <td>
199                     <!-- TMPL_VAR Name="planneddate" -->
200                 </td>
201                 <td>
202                     <!-- TMPL_VAR Name="serialseq" -->
203                 </td>
204                 <td>
205                     <!-- 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 -->
206                 </td>
207                 <td>
208                     <!-- TMPL_VAR Name="notes" -->
209                 </td>
210                 <td>
211                     <!-- TMPL_VAR Name="branchcode" -->
212                 </td>
213                 <td>
214                   <!--TMPL_IF Name="cannotedit"-->
215                     disabled
216                   <!--TMPL_ELSE -->
217                     <input type="hidden" name="subs" value="<!--TMPL_VAR Name="subscriptionid"-->" />
218                     <!--TMPL_IF Name="subscriptionexpired"-->
219                     <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" disabled="disabled" />
220                     <!--TMPL_ELSE-->
221                       <!--TMPL_IF Name="status1"-->
222                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
223                       <!--TMPL_ELSE -->
224                       <!--TMPL_IF Name="status3"-->
225                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
226                       <!--TMPL_ELSE -->
227                         <!--TMPL_IF Name="status4"-->
228                     <input type="checkbox" name="serialid" checked="checked" value="<!--TMPL_VAR Name="serialid"-->" />
229                         <!--TMPL_ELSE -->
230                     <input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" />
231                         <!--/TMPL_IF-->           
232                       <!--/TMPL_IF-->           
233                       <!--/TMPL_IF-->           
234                     <!--/TMPL_IF -->
235                   <!--/TMPL_IF -->
236                 </td>
237             </tr>
238       <!-- /TMPL_LOOP -->
239         </table>
240       <p><input type="submit" value="Edit serials" /></p>
241     </div>
242     <!--/TMPL_LOOP -->
243   <input type="hidden" name="subscriptionid" value="<!--TMPL_VAR Name="subscriptionidlist"-->" />
244
245 </div>
246 </form>
247 <!-- /TMPL_IF -->
248
249 </div>
250 </div>
251
252 <div class="yui-b">
253 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
254 </div>
255 </div>
256 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->