002a1b4440ddad3205138bffc981dd33e2845cfb
[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 number</th>
27                         <th scope="col">Copy number</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                         [% IF Koha.Preference( 'UnseenRenewals' ) %]
53                             <label id="renew_as_unseen_label" for="override_limit">Renew as &quot;unseen&quot; if appropriate:</label>
54                             <input type="checkbox" name="renew_as_unseen" id="renew_as_unseen_checkbox" value="1" />
55                         [% END %]
56                         <button class="btn btn-default" id="RenewCheckinChecked"><i class="fa fa-check"></i> Renew or check in selected items</button>
57                         <button class="btn btn-default" id="RenewAll"><i class="fa fa-book"></i> Renew all</button>
58                     [% END %]
59                 </fieldset>
60
61                 [% IF Koha.Preference('ExportCircHistory') %]
62                     <fieldset>
63                         <label for="issues-table-output-format"><strong>Export checkouts using format:</strong></label>
64                         <select name="issues-table-output-format" id="issues-table-output-format">
65                             <option value="iso2709_995">MARC with items</option>
66                             <option value="iso2709">MARC without items</option>
67                             [% IF csv_profiles.size %]
68                                 <option value="csv">CSV</option>
69                             [% END %]
70                         </select>
71
72                         [% IF csv_profiles.size %]
73                             <select name="csv_profile_id">
74                                 [% FOREACH csv_profile IN csv_profiles %]
75                                     <option value="[% csv_profile.export_format_id | html %]">[% csv_profile.profile | html %]</option>
76                                 [% END %]
77                             </select>
78                         [% END %]
79                        <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" />
80                         <input type="hidden" name="op" value="export" />
81                         <input type="hidden" id="output_format" name="output_format" value="iso2709" />
82                         <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
83                         <input type="hidden" id="record_type" name="record_type" value="bibs" />
84                         <button class="btn btn-default btn-sm" id="export_submit"><i class="fa fa-download"></i> Export</button>
85                     </fieldset>
86                 [% END %]
87             </div>
88         </form>
89     [% ELSE %]
90         <p>Patron has nothing checked out.</p>
91     [% END %]
92 </div>
93
94 <!-- Claims Returned Modal -->
95 <div class="modal fade" id="claims-returned-modal" tabindex="-1" role="dialog" aria-labelledby="claims-returned-modal-label">
96   <div class="modal-dialog" role="document">
97     <div class="modal-content">
98       <div class="modal-header">
99         <h4 class="modal-title" id="claims-returned-modal-label">Claim returned</h4>
100       </div>
101       <div class="modal-body">
102
103           <div class="form-group">
104             <label for="claims-returned-notes" class="control-label">Notes</label>
105             <div>
106               <textarea id="claims-returned-notes" class="form-control" rows="3"></textarea>
107             </div>
108           </div>
109
110           [% IF Koha.Preference('ClaimReturnedChargeFee') == 'ask' %]
111             <div class="form-group">
112               <div class="checkbox">
113                 <label for="claims-returned-charge-lost-fee">
114                   <input id="claims-returned-charge-lost-fee" type="checkbox" value="1">
115                   Charge lost fee
116                 </label>
117               </div>
118             </div>
119           [% END %]
120
121           <input type="hidden" id="claims-returned-itemnumber" />
122       </div>
123       <div class="modal-footer">
124         <button id="claims-returned-modal-btn-submit" type="button" class="btn btn-primary"><i class="fa fa-exclamation-circle"></i> Make claim</button>
125         <button class="btn btn-default deny cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
126       </div>
127     </div>
128   </div>
129 </div>
130
131 <!-- Resolve Return Claim Modal -->
132 <div class="modal fade" id="claims-returned-resolved-modal" tabindex="-1" role="dialog" aria-labelledby="claims-returned-resolved-modal-label">
133   <div class="modal-dialog" role="document">
134     <div class="modal-content">
135       <div class="modal-header">
136         <h4 class="modal-title" id="claims-returned-resolved-modal-label">Resolve return claim</h4>
137       </div>
138       <div class="modal-body">
139
140           <div class="form-group">
141             <label for="claims-returned-resolved-code">Resolution</label>
142             [% SET resolutions = AuthorisedValues.GetAuthValueDropbox('RETURN_CLAIM_RESOLUTION') %]
143             <select class="form-control" id="claims-returned-resolved-modal-resolved-code">
144               [% FOREACH r IN resolutions %]
145                   <option value="[% r.authorised_value | html %]">[% r.lib | html %]</option>
146               [% END %]
147             </select>
148
149             <label for="new_lost_status">New item lost value:</label>
150             [% SET itemlost = AuthorisedValues.GetAuthValueDropbox('LOST') %]
151             <select class="form-control" id="new_lost_status">
152               <option value="0">(Not lost)</option>
153               [% FOREACH lost IN itemlost %]
154                   <option value="[% lost.authorised_value | html %]">[% lost.lib | html %]</option>
155               [% END %]
156             </select>
157           </div>
158
159           <input type="hidden" id="claims-returned-resolved-modal-id"/>
160       </div>
161       <div class="modal-footer">
162         <button id="claims-returned-resolved-modal-btn-submit" type="button" class="btn btn-primary">
163           <i id="claims-returned-resolved-modal-btn-submit-icon" class="fa fa-exclamation-circle"></i>
164           <i id="claims-returned-resolved-modal-btn-submit-spinner" class="fa fa-spinner fa-pulse fa-fw" style="display:none"></i>
165           Resolve claim
166          </button>
167         <button class="btn btn-default deny cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
168       </div>
169     </div>
170   </div>
171 </div>