Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / serials_stats.tt
1 [% USE Asset %]
2 [% USE KohaDates %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Reports &rsaquo; Serials subscriptions stats</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <style type="text/css">
9         .sql {display: none;}
10 </style>
11 [% Asset.css("css/datatables.css") %]
12 </head>
13
14 <body id="rep_serials_stats" class="rep">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
17
18 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Serials subscriptions stats</div>
19
20 <div id="doc3" class="yui-t2">
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25         <h1>Serials subscriptions</h1>
26 [% IF ( do_it ) %]
27         <table id="resulttable">
28                 <thead>
29                         <tr>
30                                 <th>Vendor</th>
31                                 <th>Title</th>
32                                 <th>Subscription id</th>
33                                 <th>Branch</th>
34                 <th>Call number</th>
35                 <th>Subscription begin</th>
36                 <th>Subscription end</th>
37                 <th>Expired? / Closed?</th>
38                         </tr>
39                 </thead>
40                 <tbody>
41                         <tr>
42                                 [% FOREACH data IN datas %]
43                     <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% data.aqbooksellerid %]">[% data.name %]</a></td>
44                     <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% data.subscriptionid %]">[% data.title |html %]</a></td>
45                                         <td>[% data.subscriptionid %]</td>
46                     <td>[% Branches.GetName( data.branchcode ) %]</td>
47                                         <td>[% data.callnumber %]</td>
48                     <td><span title="[% data.startdate %]">[% data.startdate | $KohaDates %]</span></td>
49                     <td><span title="[% data.enddate %]">[% data.enddate | $KohaDates %]</span></td>
50                     <td>
51                         [% IF data.closed %]
52                             Closed
53                         [% ELSIF data.expired %]
54                             Expired
55                         [% END %]
56                     </td>
57                                 </tr>
58                                 [% END %]
59                         </tr>
60                 </tbody>
61         </table>
62
63 [% ELSE %]
64         <form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
65
66         <fieldset class="rows">
67                 <ol>
68                         <li>
69
70                                 <label for="bookseller">
71                                         Vendor:
72                             </label>
73                                 <select name="bookseller" id="bookseller">
74                     <option value="">Any vendor</option>
75                                 [% FOREACH bookseller IN booksellers %]
76                                                 <option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
77                                         [% END %]
78                             </select>
79                         </li><li>
80                 <label for="branchcode">
81                                         Library:
82                         </label>
83                         <select name="branchcode"  id="branchcode">
84                                 <option value="">Any library</option>
85                 [% PROCESS options_for_libraries libraries => Branches.all() %]
86                         </select>
87
88                     </li>
89                     <li>
90                         <label for="expired">Include expired subscriptions: </label>
91                 <input type="checkbox" name="expired" id="expired" />
92                     </li>
93                 </ol>
94         </fieldset>
95
96
97         <fieldset class="rows">
98         <legend>Output</legend>
99     <ol>
100         <li>
101             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
102         </li>
103         <li>
104             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
105             <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
106             <label class="inline" for="MIME">Into an application:</label>
107             <select name="MIME" id="MIME" size="1">
108             [% FOREACH value IN CGIextChoice %]
109                 <option value="[% value %]">[% value %]</option>
110             [% END %]
111             </select>
112             <select name="sep" id="sep" size="1">
113             [% FOREACH value IN CGIsepChoice.values.sort() %]
114               [% IF ( value == CGIsepChoice.default ) %]
115                 <option value="[% value %]" selected="selected">[% value %]</option>
116               [% ELSE %]
117                 <option value="[% value %]">[% value %]</option>
118               [% END %]
119             [% END %]
120             </select>
121         </li>
122     </ol>
123         </fieldset>
124
125         <fieldset class="action">
126         <input type="submit" value="Submit" />
127         <input type="hidden" name="report_name" value="[% report_name %]" />
128         <input type="hidden" name="do_it" value="1" />
129         </fieldset>
130         </form>
131 [% END %]
132 </div>
133 </div>
134 <div class="yui-b">
135 [% INCLUDE 'reports-menu.inc' %]
136 </div>
137 </div>
138
139 [% MACRO jsinclude BLOCK %]
140 [% INCLUDE 'datatables.inc' %]
141     <script type="text/javascript">
142         $(document).ready(function() {
143             $("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
144                 "sDom": 't',
145                 "bPaginate": false,
146                 "aoColumns": [
147                     null,{ "sType": "anti-the" },null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null
148                 ],
149             }));
150         });
151     </script>
152 [% END %]
153
154 [% INCLUDE 'intranet-bottom.inc' %]