5 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9 [% t("Serials subscriptions stats") | html %] ›
10 [% t("Reports") | html %] ›
11 [% t("Koha") | html %]
13 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="rep_serials_stats" class="rep">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'cat-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 [% WRAPPER breadcrumbs %]
26 [% WRAPPER breadcrumb_item %]
27 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
30 [% WRAPPER breadcrumb_item %]
31 <a href="/cgi-bin/koha/reports/serials_stats.pl">Serials subscriptions stats</a>
33 [% WRAPPER breadcrumb_item bc_active= 1 %]
37 [% WRAPPER breadcrumb_item bc_active= 1 %]
38 <span>Serials subscriptions stats</span>
41 [% END #/ WRAPPER breadcrumbs %]
42 [% END #/ WRAPPER sub-header.inc %]
44 <div class="main container-fluid">
46 <div class="col-sm-10 col-sm-push-2">
49 <h1>Serials subscriptions</h1>
51 <table id="resulttable">
55 <th class="anti-the">Title</th>
56 <th>Subscription ID</th>
59 <th>Subscription begin</th>
60 <th>Subscription end</th>
61 <th>Expired? / Closed?</th>
65 [% FOREACH data IN datas %]
67 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% data.aqbooksellerid | uri %]">[% data.name | html %]</a></td>
68 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% data.subscriptionid | uri %]">[% data.title | html %]</a></td>
69 <td>[% data.subscriptionid | html %]</td>
70 <td>[% Branches.GetName( data.branchcode ) | html %]</td>
71 <td>[% data.callnumber | html %]</td>
72 <td data-order="[% data.startdate | html %]">[% data.startdate | $KohaDates %]</td>
73 <td data-order="[% data.enddate | html %]">[% data.enddate | $KohaDates %]</td>
77 [% ELSIF data.expired %]
88 <form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
90 <fieldset class="rows">
94 <label for="bookseller">
97 <select name="bookseller" id="bookseller">
98 <option value="">Any vendor</option>
99 [% FOREACH bookseller IN booksellers %]
100 <option value="[% bookseller.aqbooksellerid | html %]">[% bookseller.name | html %]</option>
104 <label for="branchcode">
107 <select name="branchcode" id="branchcode">
108 <option value="">Any library</option>
109 [% PROCESS options_for_libraries libraries => Branches.all() %]
114 <label for="expired">Include expired subscriptions: </label>
115 <input type="checkbox" name="expired" id="expired" />
121 <fieldset class="rows">
122 <legend>Output</legend>
125 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
128 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
129 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
130 <label class="inline" for="MIME">Into an application:</label>
131 <select name="MIME" id="MIME">
132 [% FOREACH value IN CGIextChoice %]
133 <option value="[% value | html %]">[% value | html %]</option>
136 <select name="sep" id="sep">
137 [% FOREACH value IN CGIsepChoice.values.sort() %]
138 [% IF ( value == CGIsepChoice.default ) %]
139 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
141 <option value="[% value | html %]">[% value | html %]</option>
149 <fieldset class="action">
150 <input type="submit" class="btn btn-primary" value="Submit" />
151 <input type="hidden" name="report_name" value="[% report_name | html %]" />
152 <input type="hidden" name="do_it" value="1" />
158 </div> <!-- /.col-sm-10.col-sm-push-2 -->
160 <div class="col-sm-2 col-sm-pull-10">
162 [% INCLUDE 'reports-menu.inc' %]
164 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
165 </div> <!-- /.row -->
167 [% MACRO jsinclude BLOCK %]
168 [% INCLUDE 'datatables.inc' %]
170 $(document).ready(function() {
171 $("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
178 [% INCLUDE 'intranet-bottom.inc' %]