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