Bug 30484: Add ILL update notice
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / checkouts-table.inc
1 [% USE Koha %]
2 [% PROCESS 'modal-claims.inc' %]
3 <div id="checkouts">
4     [% IF ( issuecount ) %]
5         <div id="issues-table-loading-message">
6             <p>
7                 <a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
8             </p>
9         </div>
10         <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post">
11             <table id="issues-table" style="width: 100% !Important;">
12                 <thead>
13                     <tr>
14                         <th scope="col">&nbsp;</th>
15                         <th scope="col">&nbsp;</th>
16                         <th scope="col">Due date</th>
17                         <th scope="col">Due date</th>
18                         <th scope="col">Title</th>
19                         <th scope="col">Record-level item type</th>
20                         <th scope="col">Item type</th>
21                         <th scope="col">Collection</th>
22                         <th scope="col">Location</th>
23                         <th scope="col">Home library</th>
24                         <th scope="col">&nbsp;</th>
25                         <th scope="col">Checked out on</th>
26                         <th scope="col">Checked out from</th>
27                         <th scope="col">Call number</th>
28                         <th scope="col">Copy number</th>
29                         <th scope="col">Charge</th>
30                         <th scope="col">Fine</th>
31                         <th scope="col">Price</th>
32                         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
33                         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
34                         <th scope="col">Return claims</th>
35                         <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
36                     </tr>
37                 </thead>
38                 [% INCLUDE 'checkouts-table-footer.inc' %]
39             </table>
40
41             <label for="issues-table-load-immediately">Always show checkouts immediately</label>
42             <input id="issues-table-load-immediately" type="checkbox" />
43
44             <div id="issues-table-actions">
45                 <fieldset class="action">
46                     [% IF ( CAN_user_circulate_override_renewals ) %]
47                         [% IF Koha.Preference( 'AllowRenewalLimitOverride' ) || Koha.Preference( 'AllowRenewalOnHoldOverride' ) %]
48                             <label for="override_limit">Override renewal restrictions:</label>
49                             <input type="checkbox" name="override_limit" id="override_limit" value="1" />
50                         [% END %]
51                     [% END %]
52                     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
53                         [% IF Koha.Preference( 'UnseenRenewals' ) %]
54                             <label id="renew_as_unseen_label" for="override_limit">Renew as &quot;unseen&quot; if appropriate:</label>
55                             <input type="checkbox" name="renew_as_unseen" id="renew_as_unseen_checkbox" value="1" />
56                         [% END %]
57                         <button class="btn btn-default" id="RenewCheckinChecked"><i class="fa fa-check"></i> Renew or check in selected items</button>
58                         <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
59                     [% END %]
60                 </fieldset>
61
62                 [% IF Koha.Preference('ExportCircHistory') %]
63                     <fieldset>
64                         <label for="issues-table-output-format"><strong>Export checkouts using format:</strong></label>
65                         <select name="issues-table-output-format" id="issues-table-output-format">
66                             <option value="iso2709_995">MARC with items</option>
67                             <option value="iso2709">MARC without items</option>
68                             [% IF csv_profiles.count %]
69                                 <option value="csv">CSV</option>
70                             [% END %]
71                         </select>
72
73                         [% IF csv_profiles.count %]
74                             <select name="csv_profile_id">
75                                 [% FOREACH csv_profile IN csv_profiles %]
76                                     <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
77                                 [% END %]
78                             </select>
79                         [% END %]
80                        <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" />
81                         <input type="hidden" name="op" value="export" />
82                         <input type="hidden" id="output_format" name="output_format" value="iso2709" />
83                         <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
84                         <input type="hidden" id="record_type" name="record_type" value="bibs" />
85                         <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
86                     </fieldset>
87                 [% END %]
88             </div>
89         </form>
90     [% ELSE %]
91         <p>Patron has nothing checked out.</p>
92     [% END %]
93 </div>
94
95 <!-- Claims Returned Modal -->
96
97 [% PROCESS 'modal-claims-display' %]
98 <div class="modal fade" id="claims-returned-modal" tabindex="-1" role="dialog" aria-labelledby="claims-returned-modal-label">
99   <div class="modal-dialog" role="document">
100     <div class="modal-content">
101       <div class="modal-header">
102         <h4 class="modal-title" id="claims-returned-modal-label">Claim returned</h4>
103       </div>
104       <div class="modal-body">
105
106           <div class="form-group">
107             <label for="claims-returned-notes" class="control-label">Notes</label>
108             <div>
109               <textarea id="claims-returned-notes" class="form-control" rows="3"></textarea>
110             </div>
111           </div>
112
113           [% IF Koha.Preference('ClaimReturnedChargeFee') == 'ask' %]
114             <div class="form-group">
115               <div class="checkbox">
116                 <label for="claims-returned-charge-lost-fee">
117                   <input id="claims-returned-charge-lost-fee" type="checkbox" value="1">
118                   Charge lost fee
119                 </label>
120               </div>
121             </div>
122           [% END %]
123
124           <input type="hidden" id="claims-returned-itemnumber" />
125       </div>
126       <div class="modal-footer">
127         <button id="claims-returned-modal-btn-submit" type="button" class="btn btn-primary"><i class="fa fa-exclamation-circle"></i> Make claim</button>
128         <button class="btn btn-default deny cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
129       </div>
130     </div>
131   </div>
132 </div>