Bug 35307: Add a hidden input for expired holds
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / checkouts-table.inc
1 [% USE Koha %]
2 [% PROCESS 'modal-claims.inc' %]
3 [% INCLUDE 'format_price.inc' %]
4
5 [% IF ( issuecount ) %]
6     <div id="issues-table-loading-message">
7         <p>
8             <a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
9         </p>
10     </div>
11     <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post">
12         <table id="issues-table" style="width: 100% !Important;">
13             <thead>
14                 <tr>
15                     <th scope="col">&nbsp;</th>
16                     <th scope="col">&nbsp;</th>
17                     <th scope="col">Due date</th>
18                     <th scope="col">Due date</th>
19                     <th scope="col">Title</th>
20                     <th scope="col">Record-level item type</th>
21                     <th scope="col">Item type</th>
22                     <th scope="col">Collection</th>
23                     <th scope="col">Location</th>
24                     <th scope="col">Home library</th>
25                     <th scope="col">&nbsp;</th>
26                     <th scope="col">Checked out on</th>
27                     <th scope="col">Checked out from</th>
28                     <th scope="col">Call number</th>
29                     <th scope="col">Copy number</th>
30                     <th scope="col">Charge</th>
31                     <th scope="col">Fine</th>
32                     <th scope="col">Price</th>
33                     <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
34                     <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
35                     <th scope="col">Return claims</th>
36                     <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
37                 </tr>
38             </thead>
39             [% INCLUDE 'checkouts-table-footer.inc' %]
40         </table>
41
42         <label for="issues-table-load-immediately">Always show checkouts automatically</label>
43         <input id="issues-table-load-immediately" type="checkbox" />
44
45         <div id="issues-table-actions">
46             <fieldset class="action">
47                 [% IF ( CAN_user_circulate_override_renewals ) %]
48                     [% IF Koha.Preference( 'AllowRenewalLimitOverride' ) || Koha.Preference( 'AllowRenewalOnHoldOverride' ) %]
49                         <label for="override_limit">Override renewal restrictions:</label>
50                         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
51                     [% END %]
52                 [% END %]
53                 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
54                     [% IF Koha.Preference( 'UnseenRenewals' ) %]
55                         <label id="renew_as_unseen_label" for="override_limit">Renew as &quot;unseen&quot; if appropriate:</label>
56                         <input type="checkbox" name="renew_as_unseen" id="renew_as_unseen_checkbox" value="1" />
57                     [% END %]
58                     <button class="btn btn-default" id="RenewCheckinChecked"><i class="fa fa-check"></i> Renew or check in selected items</button>
59                     <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
60                 [% END %]
61             </fieldset>
62
63             [% IF Koha.Preference('ExportCircHistory') %]
64                 <fieldset>
65                     <label for="issues-table-output-format"><strong>Export checkouts using format:</strong></label>
66                     <select name="issues-table-output-format" id="issues-table-output-format">
67                         <option value="iso2709_995">MARC with items</option>
68                         <option value="iso2709">MARC without items</option>
69                         [% IF csv_profiles.count %]
70                             <option value="csv">CSV</option>
71                         [% END %]
72                     </select>
73
74                     [% IF csv_profiles.count %]
75                         <select name="csv_profile_id">
76                             [% FOREACH csv_profile IN csv_profiles %]
77                                 <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
78                             [% END %]
79                         </select>
80                     [% END %]
81                     <label for="export_items_bundle_contents">Export items bundle contents</label> <input type="checkbox" name="export_items_bundle_contents" id="export_items_bundle_contents">
82                     <label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% Koha.Preference('ExportRemoveFields') | html %]" title="Use for MARC exports" />
83                     <input type="hidden" name="op" value="export" />
84                     <input type="hidden" id="output_format" name="output_format" value="iso2709" />
85                     <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
86                     <input type="hidden" id="record_type" name="record_type" value="bibs" />
87                     <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
88                 </fieldset>
89             [% END %]
90         </div>
91     </form>
92 [% ELSE %]
93     <p>Patron has nothing checked out.</p>
94 [% END %]
95
96 <!-- Claims Returned Modal -->
97 [% PROCESS 'modal-claims-display' %]