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