Merge remote-tracking branch 'kc/new/enh/bug_5917' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / serials-home.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Serials [% biblionumber %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript">
6 //<![CDATA[
7  $(document).ready(function() {
8         $("#srlt").tablesorter({
9             headers: {
10                 2: { sorter: false },
11                 4: { sorter: false },
12                                 5: { sorter: false }
13             }
14         }); 
15  }); 
16  //]]>
17 </script>
18 </head>
19 <body> 
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'serials-search.inc' %]
22
23 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; [% IF ( done_searched ) %]<a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Search results[% ELSE %]Serials [% END %] </div>
24
25 <div id="doc3" class="yui-t2">
26    
27    <div id="bd">
28         <div id="yui-main">
29         <div class="yui-b">
30         [% INCLUDE 'serials-toolbar.inc' %]
31         
32 [% IF ( information ) %]
33 Serials updated :
34 <table>
35   <tr>
36     <th>
37       Serialseq
38     </th>
39     <th>
40       Status
41     </th>
42     <th>
43       Publisheddate
44     </th>
45     <th>
46       Planneddate
47     </th>
48     <th>
49       Notes
50     </th>
51   </tr>  
52 [% FOREACH informatio IN information %]
53   <tr>
54     <td>
55       [% informatio.serialseq %]
56     </td>
57     <td>
58       [% informatio.status %]
59     </td>
60     <td>
61       [% informatio.publisheddate %]
62     </td>
63     <td>
64       [% informatio.planneddate %]
65     </td>
66     <td>
67       [% informatio.notes %]
68     </td>
69   </tr>  
70 [% END %]
71 </table>
72 [% END %]
73         [% IF ( done_searched ) %]
74 <h2>Serials subscriptions</h2>
75
76     <table id="srlt">
77         <thead>
78         <tr>
79             <th>ISSN</th>
80             <th>Title</th>
81             <th> Notes </th>
82             <th>
83                 Library (Callnumber)
84             </th>
85             [% IF ( routing ) %]
86               <th>Routing list</th>
87             [% END %]        
88             <th colspan="2">&nbsp;</th>
89         </tr>
90         </thead>
91         <tbody> 
92         [% FOREACH subscription IN subscriptions %]
93         [% UNLESS ( loop.odd ) %]
94             <tr class="highlight">
95         [% ELSE %]
96             <tr>
97         [% END %]
98                 <td>
99                 [% IF ( subscription.issn ) %][% subscription.issn %]
100                 [% END %]
101                 </td>
102                 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% IF ( subscription.title ) %][% subscription.title |html %][% ELSE %]
103                     ---
104                 [% END %]</a>
105                 </td>
106                 <td>[% IF ( subscription.notes ) %][% subscription.notes %][% END %]
107                 [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
108                 </td>
109                 <td>
110                 [% IF ( subscription.branchcode ) %][% subscription.branchcode %][% END %]
111                 [% IF ( subscription.callnumber ) %]([% subscription.callnumber %])[% END %]
112                 </td>
113                 [% IF ( routing ) %]
114                 <td>
115                 [% IF ( subscription.cannotedit ) %]
116                   &nbsp;        
117                 [% ELSE %]
118                     [% IF ( subscription.routingedit ) %]
119                         <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a>
120                         [% ELSE %]
121                                                 <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&amp;op=new">New</a>
122                                         [% END %]
123                 [% END %]
124                 </td>
125                 [% END %]
126                 <td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue History</a>
127                 </td>
128                 <td>
129                 [% IF ( subscription.cannotedit ) %]
130                   &nbsp;        
131                 [% ELSE %]
132                   [% IF ( CAN_user_serials_receive_serials ) %]<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&amp;serstatus=1,3,7">Serial receive</a>[% END %]
133                 [% END %]
134                 </td>
135             </tr>
136         [% END %]
137         </tbody>
138     </table>
139     
140         [% END %]
141
142 </div>
143 </div>
144
145 <div class="yui-b">
146 [% INCLUDE 'serials-menu.inc' %]
147 </div>
148 </div>
149 [% INCLUDE 'intranet-bottom.inc' %]