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