Bug 20194: Display both biblioitems.itemtype and items.itype in circulation screens
[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" class="checkboxed">
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">Charge</th>
28                         <th scope="col">Fine</th>
29                         <th scope="col">Price</th>
30                         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
31                         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
32                         <th scope="col">Return claims</th>
33                         <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
34                     </tr>
35                 </thead>
36                 [% INCLUDE 'checkouts-table-footer.inc' %]
37             </table>
38
39             <label for="issues-table-load-immediately">Always show checkouts immediately</label>
40             <input id="issues-table-load-immediately" type="checkbox" />
41
42             <div id="issues-table-actions">
43                 <fieldset class="action">
44                     [% IF ( CAN_user_circulate_override_renewals ) %]
45                         [% IF Koha.Preference( 'AllowRenewalLimitOverride' ) || Koha.Preference( 'AllowRenewalOnHoldOverride' ) %]
46                             <label for="override_limit">Override renewal restrictions:</label>
47                             <input type="checkbox" name="override_limit" id="override_limit" value="1" />
48                         [% END %]
49                     [% END %]
50                     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
51                         <button class="btn btn-default" id="RenewCheckinChecked"><i class="fa fa-check"></i> Renew or check in selected items</button>
52                         <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
53                     [% END %]
54                 </fieldset>
55
56                 [% IF Koha.Preference('ExportCircHistory') %]
57                     <fieldset>
58                         <label for="issues-table-output-format"><b>Export checkouts using format:</b></label>
59                         <select name="issues-table-output-format" id="issues-table-output-format">
60                             <option value="iso2709_995">MARC with items</option>
61                             <option value="iso2709">MARC without items</option>
62                             [% IF csv_profiles.size %]
63                                 <option value="csv">CSV</option>
64                             [% END %]
65                         </select>
66
67                         [% IF csv_profiles.size %]
68                             <select name="csv_profile_id">
69                                 [% FOREACH csv_profile IN csv_profiles %]
70                                     <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
71                                 [% END %]
72                             </select>
73                         [% END %]
74                        <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" />
75                         <input type="hidden" name="op" value="export" />
76                         <input type="hidden" id="output_format" name="output_format" value="iso2709" />
77                         <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
78                         <input type="hidden" id="record_type" name="record_type" value="bibs" />
79                         <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
80                     </fieldset>
81                 [% END %]
82             </div>
83         </form>
84     [% ELSE %]
85         <p>Patron has nothing checked out.</p>
86     [% END %]
87 </div>
88
89 <!-- Claims Returned Modal -->
90 <div class="modal fade" id="claims-returned-modal" tabindex="-1" role="dialog" aria-labelledby="claims-returned-modal-label">
91   <div class="modal-dialog" role="document">
92     <div class="modal-content">
93       <div class="modal-header">
94         <h4 class="modal-title" id="claims-returned-modal-label">Claim returned</h4>
95       </div>
96       <div class="modal-body">
97
98           <div class="form-group">
99             <label for="claims-returned-notes" class="control-label">Notes</label>
100             <div>
101               <textarea id="claims-returned-notes" class="form-control" rows="3"></textarea>
102             </div>
103           </div>
104
105           [% IF Koha.Preference('ClaimReturnedChargeFee') == 'ask' %]
106             <div class="form-group">
107               <div class="checkbox">
108                 <label for="claims-returned-charge-lost-fee">
109                   <input id="claims-returned-charge-lost-fee" type="checkbox" value="1">
110                   Charge lost fee
111                 </label>
112               </div>
113             </div>
114           [% END %]
115
116           <input type="hidden" id="claims-returned-itemnumber" />
117       </div>
118       <div class="modal-footer">
119         <button id="claims-returned-modal-btn-submit" type="button" class="btn btn-primary"><i class="fa fa-exclamation-circle"></i> Make claim</button>
120         <button class="btn btn-default deny cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
121       </div>
122     </div>
123   </div>
124 </div>
125
126 <!-- Resolve Return Claim Modal -->
127 <div class="modal fade" id="claims-returned-resolved-modal" tabindex="-1" role="dialog" aria-labelledby="claims-returned-resolved-modal-label">
128   <div class="modal-dialog" role="document">
129     <div class="modal-content">
130       <div class="modal-header">
131         <h4 class="modal-title" id="claims-returned-resolved-modal-label">Resolve return claim</h4>
132       </div>
133       <div class="modal-body">
134
135           <div class="form-group">
136             <label for="claims-returned-resolved-code">Resolution</label>
137             [% SET resolutions = AuthorisedValues.GetAuthValueDropbox('RETURN_CLAIM_RESOLUTION') %]
138             <select class="form-control" id="claims-returned-resolved-modal-resolved-code">
139               [% FOREACH r IN resolutions %]
140                   <option value="[% r.authorised_value | html %]">[% r.lib | html %]</option>
141               [% END %]
142             </select>
143           </div>
144
145           <input type="hidden" id="claims-returned-resolved-modal-id"/>
146       </div>
147       <div class="modal-footer">
148         <button id="claims-returned-resolved-modal-btn-submit" type="button" class="btn btn-primary">
149           <i id="claims-returned-resolved-modal-btn-submit-icon" class="fa fa-exclamation-circle"></i>
150           <i id="claims-returned-resolved-modal-btn-submit-spinner" class="fa fa-spinner fa-pulse fa-fw" style="display:none"></i>
151           Resolve claim
152          </button>
153         <button class="btn btn-default deny cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
154       </div>
155     </div>
156   </div>
157 </div>