Bug 7753: serials-home displays library name instead of code
[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 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript">
9 //<![CDATA[
10  $(document).ready(function() {
11     var srlt = $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
12         "aoColumnDefs": [
13             { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
14         ],
15         "sPaginationType": "four_button"
16     } ) );
17
18     srlt.fnAddFilters("filter", 750);
19  });
20  //]]>
21 </script>
22 </head>
23 <body> 
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'serials-search.inc' %]
26
27 <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>
28
29 <div id="doc3" class="yui-t2">
30    
31    <div id="bd">
32         <div id="yui-main">
33         <div class="yui-b">
34         [% INCLUDE 'serials-toolbar.inc' %]
35         
36 [% IF ( information ) %]
37 Serials updated :
38 <table>
39   <tr>
40     <th>
41       Serialseq
42     </th>
43     <th>
44       Status
45     </th>
46     <th>
47       Publisheddate
48     </th>
49     <th>
50       Planneddate
51     </th>
52     <th>
53       Notes
54     </th>
55   </tr>  
56 [% FOREACH informatio IN information %]
57   <tr>
58     <td>
59       [% informatio.serialseq %]
60     </td>
61     <td>
62       [% informatio.status %]
63     </td>
64     <td>
65       [% informatio.publisheddate %]
66     </td>
67     <td>
68       [% informatio.planneddate %]
69     </td>
70     <td>
71       [% informatio.notes %]
72     </td>
73   </tr>  
74 [% END %]
75 </table>
76 [% END %]
77         [% IF ( done_searched ) %]
78 <h2>Serials subscriptions</h2>
79
80     <table id="srlt">
81         <thead>
82         <tr>
83             <th>ISSN</th>
84             <th>Title</th>
85             <th> Notes </th>
86             <th>
87                 Library (callnumber)
88             </th>
89             [% IF ( routing && CAN_user_serials_routing ) %]
90               <th>Routing list</th>
91             [% END %]        
92             <th>&nbsp;</th>
93             <th>&nbsp;</th>
94         </tr>
95         </thead>
96     <tfoot>
97         <tr>
98             <td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td>
99             <td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td>
100             <td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td>
101             <td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td>
102             [% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %]
103             <td></td>
104             <td></td>
105         </tr>
106     </tfoot>
107         <tbody> 
108         [% FOREACH subscription IN subscriptions %]
109             <tr>
110                 <td>
111                 [% IF ( subscription.issn ) %][% subscription.issn %]
112                 [% END %]
113                 </td>
114                 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a>
115                 </td>
116                 <td>[% IF ( subscription.notes ) %][% subscription.notes %][% END %]
117                 [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
118                 </td>
119                 <td>
120                 [% IF ( subscription.branchname ) %][% subscription.branchname %][% END %]
121                 [% IF ( subscription.callnumber ) %]([% subscription.callnumber %])[% END %]
122                 </td>
123                 [% IF ( routing && CAN_user_serials_routing ) %]
124                 <td>
125                     [% IF ( subscription.cannotedit ) %]
126                         &nbsp;
127                     [% ELSE %]
128                         [% IF ( subscription.routingedit ) %]
129                             <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a>
130                         [% ELSE %]
131                             <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&amp;op=new">New</a>
132                         [% END %]
133                     [% END %]
134                 </td>
135                 [% END %]
136                 <td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a>
137                 </td>
138                 <td>
139                 [% IF ( subscription.cannotedit ) %]
140                   &nbsp;        
141                 [% ELSE %]
142                   [% 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 %]
143                 [% END %]
144                 </td>
145             </tr>
146         [% END %]
147         </tbody>
148     </table>
149     
150         [% END %]
151
152 </div>
153 </div>
154
155 <div class="yui-b">
156 [% INCLUDE 'serials-menu.inc' %]
157 </div>
158 </div>
159 [% INCLUDE 'intranet-bottom.inc' %]