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