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