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