View | Details | Raw Unified | Return to bug 15920
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-7 / +15 lines)
Lines 929-934 fieldset.rows .inputnote { Link Here
929
       color: #cc0000;
929
       color: #cc0000;
930
}
930
}
931
931
932
/* Font Awesome icon */
933
.error i {
934
    color: #CC0000;
935
}
936
937
/* Font Awesome icon */
938
.warn i {
939
    color: orange;
940
}
941
942
/* For Font Awesome icon bullets */
943
ul.fa-ul li {
944
    list-style-type: none;
945
}
946
932
div.error {
947
div.error {
933
	border : 2px dashed #990000;
948
	border : 2px dashed #990000;
934
	background-color : #FFFF99;
949
	background-color : #FFFF99;
Lines 2839-2848 div#cn_browser_table_wrapper > table#cn_browser_table { Link Here
2839
   margin: auto;
2854
   margin: auto;
2840
   width:90%;
2855
   width:90%;
2841
}
2856
}
2842
2843
td p.error {
2844
    color: red;
2845
}
2846
td p.warn {
2847
    color: orange;
2848
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-56 / +52 lines)
Lines 15-23 Link Here
15
[% INCLUDE 'calendar.inc' %]
15
[% INCLUDE 'calendar.inc' %]
16
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
16
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
17
[% INCLUDE 'datatables.inc' %]
17
[% INCLUDE 'datatables.inc' %]
18
[% INCLUDE 'datatables-strings.inc' %]
19
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
20
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
21
<script type="text/javascript">
18
<script type="text/javascript">
22
//<![CDATA[
19
//<![CDATA[
23
$(document).ready(function() {
20
$(document).ready(function() {
Lines 26-39 $(document).ready(function() { Link Here
26
        } else if ($('#checkoutrenew').length) {
23
        } else if ($('#checkoutrenew').length) {
27
            $('#checkoutrenew').focus();
24
            $('#checkoutrenew').focus();
28
        }
25
        }
29
        $("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, {
26
        $("#checkout_infos").dataTable($.extend(true, {}, dataTablesDefaults, {
30
            "sDom": 't',
27
            "sDom": 't',
31
            "aaSorting": [],
28
            "aaSorting": [],
32
            "aoColumnDefs": [
29
            "aoColumnDefs": [
33
                { "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false }
30
                { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
34
            ],
31
                { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
35
            "aoColumns": [
36
                { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %]
37
            ],
32
            ],
38
            "bPaginate": false
33
            "bPaginate": false
39
        }));
34
        }));
Lines 62-70 $(document).ready(function() { Link Here
62
[% END %]
57
[% END %]
63
58
64
[% IF NOT batch_allowed %]
59
[% IF NOT batch_allowed %]
65
  <div class="dialog message">You are not allowed to use batch checkout for this patron</div>
60
  <div class="dialog alert">You are not allowed to use batch checkout for this patron</div>
66
[% ELSIF noissues and not checkout_infos %]
61
[% ELSIF noissues and not checkout_infos %]
67
  <div class="dialog message">
62
  <div class="dialog alert">
68
    Cannot check out!
63
    Cannot check out!
69
    [% IF charges_is_blocker %]
64
    [% IF charges_is_blocker %]
70
      Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
65
      Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
Lines 73-79 $(document).ready(function() { Link Here
73
[% ELSIF NOT checkout_infos %]
68
[% ELSIF NOT checkout_infos %]
74
  <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl">
69
  <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl">
75
    <fieldset id="circ_circulation_issue">
70
    <fieldset id="circ_circulation_issue">
76
      <label for="barcode">Issuing items to [% INCLUDE 'patron-title.inc' %]</label>
71
      <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
77
      <fieldset class="rows">
72
      <fieldset class="rows">
78
        <legend>Use a file</legend>
73
        <legend>Use a file</legend>
79
        <ol>
74
        <ol>
Lines 101-119 $(document).ready(function() { Link Here
101
96
102
[% ELSE %]
97
[% ELSE %]
103
  [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
98
  [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
104
    <h3>Batch checkout confirmation [% IF borrowernumber %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] [% END %]</h1>
99
    <h3>Batch checkout confirmation [% IF borrowernumber %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] [% END %]</h3>
105
    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
100
    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
106
  [% ELSE %]
101
  [% ELSE %]
107
    <h3>Batch checkout information [% IF borrowernumber %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] [% END %]</h1>
102
    <h3>Batch checkout information [% IF borrowernumber %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] [% END %]</h3>
108
  [% END %]
103
  [% END %]
109
    <table id="checkout_infos">
104
    <table id="checkout_infos">
110
      <thead>
105
      <thead>
111
        <tr>
106
        <tr>
112
          [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
107
          [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
113
            <th></th>
108
            <th class="NoSort"></th>
114
          [% END %]
109
          [% END %]
115
          <th>Barcode</th>
110
          <th>Barcode</th>
116
          <th>Title</th>
111
          <th class="anti-the">Title</th>
117
          <th>Information</th>
112
          <th>Information</th>
118
        </tr>
113
        </tr>
119
      </thead>
114
      </thead>
Lines 133-185 $(document).ready(function() { Link Here
133
            </td>
128
            </td>
134
            <td>
129
            <td>
135
              [% IF checkout_info.NEEDSCONFIRMATION %]
130
              [% IF checkout_info.NEEDSCONFIRMATION %]
136
                <p class="warn">
131
                <ul class="fa-ul warn">
137
                  [% IF checkout_info.AGE_RESTRICTION %]
132
                  [% IF checkout_info.AGE_RESTRICTION %]
138
                    Age restriction [% checkout_info.AGE_RESTRICTION %]
133
                      <li><i class="fa fa-li fa-warning"></i>Age restriction [% checkout_info.AGE_RESTRICTION %].</li>
139
                  [% END %]
134
                  [% END %]
140
                  [% IF checkout_info.RENEW_ISSUE %]
135
                  [% IF checkout_info.RENEW_ISSUE %]
141
                    This item is currently checked out to this patron. Renew?
136
                      <li><i class="fa fa-li fa-warning"></i>This item is currently checked out to this patron. Renew?</li>
142
                  [% END %]
137
                  [% END %]
143
                  [% IF checkout_info.RESERVE_WAITING %]
138
                  [% IF checkout_info.RESERVE_WAITING %]
144
                    This item has been waiting for another patron.
139
                      <li><i class="fa fa-li fa-warning"></i>This item is waiting for another patron.</li>
145
                  [% END %]
140
                  [% END %]
146
                  [% IF checkout_info.RESERVED %]
141
                  [% IF checkout_info.RESERVED %]
147
                    This item has been on hold for another patron.
142
                      <li><i class="fa fa-li fa-warning"></i>This item is on hold for another patron.</li>
148
                  [% END %]
143
                  [% END %]
149
                  [% IF checkout_info.ISSUED_TO_ANOTHER %]
144
                  [% IF checkout_info.ISSUED_TO_ANOTHER %]
150
                    This item is checked out to another patron.
145
                      <li><i class="fa fa-li fa-warning"></i>This item is checked out to another patron.
151
                    [% IF CAN_user_circulate_force_checkout %]
146
                    [% IF CAN_user_circulate_force_checkout %]
152
                      Check in and check out?
147
                      Check in and check out?
153
                    [% END %]
148
                      [% END %]</li>
154
                  [% END %]
149
                  [% END %]
155
                  [% IF checkout_info.TOO_MANY %]
150
                  [% IF checkout_info.TOO_MANY %]
156
                    Too many checked out.
151
                      <li><i class="fa fa-li fa-warning"></i>Too many checked out.</li>
157
                  [% END %]
152
                  [% END %]
158
                  [% IF checkout_info.BORRNOTSAMEBRANCH %]
153
                  [% IF checkout_info.BORRNOTSAMEBRANCH %]
159
                    This patron is from a different library ([% checkout_info.BORRNOTSAMEBRANCH %])</li>
154
                      <li><i class="fa fa-li fa-warning"></i>This patron is from a different library ([% checkout_info.BORRNOTSAMEBRANCH %]).</li>
160
                  [% END %]
155
                  [% END %]
161
                  [% IF checkout_ino.PATRON_CANT %]
156
                  [% IF checkout_ino.PATRON_CANT %]
162
                    This patron can't check out this item per library circulation policy.
157
                      <li><i class="fa fa-li fa-warning"></i>This patron can't check out this item per library circulation policy.</li>
163
                  [% END %]
158
                  [% END %]
164
                  [% IF checkout_info.NOT_FOR_LOAN_FORCING %]
159
                  [% IF checkout_info.NOT_FOR_LOAN_FORCING %]
165
                    [% IF checkout_info.itemtype_notforloan %]
160
                    [% IF checkout_info.itemtype_notforloan %]
166
                      Item type is normally not for loan.
161
                        <li><i class="fa fa-li fa-warning"></i>Item type is normally not for loan.</li>
167
                    [% ELSIF checkout_info.item_notforloan %]
162
                    [% ELSIF checkout_info.item_notforloan %]
168
                      [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, checkout_info.item_notforloan, 0 ) %]
163
                      [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, checkout_info.item_notforloan, 0 ) %]
169
                      Item is normally not for loan [% IF item_notforloan_lib %]([% item_notforloan_lib %])[% END %].
164
                        <li><i class="fa fa-li fa-warning"></i>Item is normally not for loan [% IF item_notforloan_lib %]([% item_notforloan_lib %])[% END %].</li>
170
                    [% END %]
165
                    [% END %]
171
                  [% END %]
166
                  [% END %]
172
                  [% IF checkout_info.USERBLOCKEDOVERDUE %]
167
                  [% IF checkout_info.USERBLOCKEDOVERDUE %]
173
                    Patron has [% checkout_info.USERBLOCKEDOVERDUE %] overdue item(s).
168
                      <li><i class="fa fa-li fa-warning"></i>Patron has [% checkout_info.USERBLOCKEDOVERDUE %] overdue item(s).</li>
174
                  [% END %]
169
                  [% END %]
175
                  [% IF checkout_info.ITEM_LOST %]
170
                  [% IF checkout_info.ITEM_LOST %]
176
                    This item has been lost with a status of "[% checkout_info.ITEM_LOST %]".
171
                      <li><i class="fa fa-li fa-warning"></i>This item has been lost with a status of "[% checkout_info.ITEM_LOST %]."</li>
177
                  [% END %]
172
                  [% END %]
178
                  [% IF checkout_info.HIGHHOLDS %]
173
                  [% IF checkout_info.HIGHHOLDS %]
179
                    High demand item. Loan period shortened to [% checkout_info.HIGHHOLDS.duration %] days (due [% checkout_info.HIGHHOLDS.returndate %]).
174
                      <li><i class="fa fa-li fa-warning"></i>High demand item. Loan period shortened to [% checkout_info.HIGHHOLDS.duration %] days (due [% checkout_info.HIGHHOLDS.returndate %]).</li>
180
                  [% END %]
175
                  [% END %]
181
                  [% IF checkout_info.HIGHHOLDS %] <!-- FIXME -->
176
                  [% IF checkout_info.HIGHHOLDS %] <!-- FIXME -->
182
                      <script language="JavaScript" type="text/javascript">
177
                      <script type="text/javascript">
183
                          $(document).ready(function() {
178
                          $(document).ready(function() {
184
                              $("input[name=duedatespec]:hidden").val('[% checkout_info.HIGHHOLDS.returndate %]');
179
                              $("input[name=duedatespec]:hidden").val('[% checkout_info.HIGHHOLDS.returndate %]');
185
                          });
180
                          });
Lines 188-264 $(document).ready(function() { Link Here
188
183
189
                  [% IF NOT checkout_info.IMPOSSIBLE && ( CAN_user_circulate_force_checkout or checkout_info.HIGHHOLDS ) %]
184
                  [% IF NOT checkout_info.IMPOSSIBLE && ( CAN_user_circulate_force_checkout or checkout_info.HIGHHOLDS ) %]
190
                      [% IF checkout_info.RESERVED || checkout_info.RESERVE_WAITING %] <!-- arbitrary choice, revert the reserve is not possible-->
185
                      [% IF checkout_info.RESERVED || checkout_info.RESERVE_WAITING %] <!-- arbitrary choice, revert the reserve is not possible-->
191
                        <p>This item is on hold for another patron. The hold will be overridden, but not cancelled.</p>
186
                        <li><i class="fa fa-li fa-warning"></i>This item is on hold for another patron. The hold will be overridden, but not cancelled.</li>
192
                      [% END %]
187
                      [% END %]
193
                  [% END %]
188
                  [% END %]
194
                </p>
189
                </ul>
195
              [% END %]
190
              [% END %]
196
191
197
192
198
              [% IF checkout_info.alert.ITEM_LOST || checkout_info.alert.OTHER_CHARGES %]
193
              [% IF checkout_info.alert.ITEM_LOST || checkout_info.alert.OTHER_CHARGES %]
199
                <p class="info">
194
                <ul class="info">
200
                  [% IF checkout_info.alert.ITEM_LOST %]
195
                  [% IF checkout_info.alert.ITEM_LOST %]
201
                    This item has been lost with a status of "[% checkout_info.alert.ITEM_LOST %]".
196
                      <li>This item has been lost with a status of "[% checkout_info.alert.ITEM_LOST %]."</li>
202
                  [% END %]
197
                  [% END %]
203
                  [% IF checkout_info.alert.OTHER_CHARGES %]
198
                  [% IF checkout_info.alert.OTHER_CHARGES %]
204
                    The patron has unpaid charges for holds, rentals etc of [% checkout_info.alert.OTHER_CHARGES %].
199
                      <li>The patron has unpaid charges for holds, rentals etc of [% checkout_info.alert.OTHER_CHARGES %].</li>
205
                  [% END %]
200
                  [% END %]
206
                </p>
201
                </ul>
207
              [% END %]
202
              [% END %]
208
203
209
204
210
              [% IF checkout_info.IMPOSSIBLE %]
205
              [% IF checkout_info.IMPOSSIBLE %]
211
                <p class="error">
206
                <ul class="fa-ul error">
212
                  [% IF checkout_info.STATS  %]
207
                  [% IF checkout_info.STATS  %]
213
                    Local use recorded
208
                      <li><i class="fa fa-li fa-exclamation"></i>Local use recorded.</li>
214
                  [% END %]
209
                  [% END %]
215
210
216
                  [% IF checkout_info.NOT_FOR_LOAN %]
211
                  [% IF checkout_info.NOT_FOR_LOAN %]
217
                    [% IF checkout_info.itemtype_notforloan %]
212
                    [% IF checkout_info.itemtype_notforloan %]
218
                      Item type not for loan.
213
                       <li><i class="fa fa-li fa-exclamation"></i>Item type not for loan.</li>
219
                    [% ELSIF checkout_info.item_notforloan %]
214
                    [% ELSIF checkout_info.item_notforloan %]
220
                      [% item_notforloan_lib = AuthorisedValues.GetByCode( checkout_info.authvalcode_notforloan, checkout_info.item_notforloan, 0 ) %]
215
                      [% item_notforloan_lib = AuthorisedValues.GetByCode( checkout_info.authvalcode_notforloan, checkout_info.item_notforloan, 0 ) %]
221
                      Item not for loan [% IF checkout_info.item_notforloan_lib %]([% checkout_info.item_notforloan_lib %])[% END %].
216
                        <li><i class="fa fa-li fa-exclamation"></i>Item not for loan [% IF checkout_info.item_notforloan_lib %]([% checkout_info.item_notforloan_lib %])[% END %].</li>
222
                    [% END %]
217
                    [% END %]
223
                  [% END %]
218
                  [% END %]
224
                  [% IF checkout_info.WTHDRAWN %]
219
                  [% IF checkout_info.WTHDRAWN %]
225
                    Item has been withdrawn
220
                      <li><i class="fa fa-li fa-exclamation"></i>Item has been withdrawn.</li>
226
                  [% END %]
221
                  [% END %]
227
                  [% IF checkout_info.RESTRICTED %]
222
                  [% IF checkout_info.RESTRICTED %]
228
                    Item is restricted
223
                      <li><i class="fa fa-li fa-exclamation"></i>Item is restricted.</li>
229
                  [% END %]
224
                  [% END %]
230
                  [% IF checkout_info.GNA %]
225
                  [% IF checkout_info.GNA %]
231
                    Patron's address is in doubt
226
                      <li><i class="fa fa-li fa-exclamation"></i>Patron's address is in doubt.</li>
232
                  [% END %]
227
                  [% END %]
233
                  [% IF checkout_info.CARD_LOST %]
228
                  [% IF checkout_info.CARD_LOST %]
234
                    Patron's card is lost
229
                      <li><i class="fa fa-li fa-exclamation"></i>Patron's card is lost.</li>
235
                  [% END %]
230
                  [% END %]
236
                  [% IF checkout_info.DEBARRED %]
231
                  [% IF checkout_info.DEBARRED %]
237
                    Patron is restricted
232
                      <li><i class="fa fa-li fa-exclamation"></i>Patron is restricted.</li>
238
                  [% END %]
233
                  [% END %]
239
                  [% IF checkout_info.NO_MORE_RENEWALS %]
234
                  [% IF checkout_info.NO_MORE_RENEWALS %]
240
                    No more renewals possible
235
                      <li><i class="fa fa-li fa-exclamation"></i>No more renewals possible.</li>
241
                  [% END %]
236
                  [% END %]
242
                  [% IF checkout_info.EXPIRED %]
237
                  [% IF checkout_info.EXPIRED %]
243
                    Patron's card is expired
238
                      <li><i class="fa fa-li fa-exclamation"></i>Patron's card is expired.</li>
244
                  [% END %]
239
                  [% END %]
245
                  [% IF checkout_info.ITEMNOTSAMEBRANCH %]
240
                  [% IF checkout_info.ITEMNOTSAMEBRANCH %]
246
                    This item belongs to [% Branches.GetName( checkout_info.itemhomebranch ) %] and cannot be checked out from this location.
241
                      <li><i class="fa fa-li fa-exclamation"></i>This item belongs to [% Branches.GetName( checkout_info.itemhomebranch ) %] and cannot be checked out from this location.</li>
247
                  [% END %]
242
                  [% END %]
248
                  [% IF checkout_info.USERBLOCKEDREMAINING %]
243
                  [% IF checkout_info.USERBLOCKEDREMAINING %]
249
                    Patron has had overdue items and is blocked for [% checkout_info.USERBLOCKEDREMAINING %] day(s).
244
                      <li><i class="fa fa-li fa-exclamation"></i>Patron has had overdue items and is blocked for [% checkout_info.USERBLOCKEDREMAINING %] day(s).</li>
250
                  [% END %]
245
                  [% END %]
251
                  [% IF checkout_info.USERBLOCKEDOVERDUE %]
246
                  [% IF checkout_info.USERBLOCKEDOVERDUE %]
252
                      Checkouts are BLOCKED because patron has overdue items
247
                      <li><i class="fa fa-li fa-exclamation"></i>Checkouts are BLOCKED because patron has overdue items.</li>
253
                  [% END %]
248
                  [% END %]
254
                  [% IF checkout_info.TOO_MANY %]
249
                  [% IF checkout_info.TOO_MANY %]
255
                    Too many checked out.
250
                      <li><i class="fa fa-li fa-exclamation"></i>Too many checked out.</li>
256
                  [% END %]
251
                  [% END %]
257
                  [% IF checkout_info.UNKNOWN_BARCODE %]
252
                  [% IF checkout_info.UNKNOWN_BARCODE %]
258
                    <li>The barcode was not found [% checkout_info.barcode |html %]
253
                      <li><i class="fa fa-li fa-exclamation"></i>The barcode was not found [% checkout_info.barcode |html %].</li>
259
                  [% END %]
254
                  [% END %]
260
                  [% IF checkout_info.DEBT %]
255
                  [% IF checkout_info.DEBT %]
261
                    The patron has a debt of [% checkout_info.DEBT %] <!-- Need debt_confirmed -->
256
                      <li><i class="fa fa-li fa-exclamation"></i>The patron has a debt of [% checkout_info.DEBT %].</li> <!-- Need debt_confirmed -->
262
                  [% END %]
257
                  [% END %]
263
                </p>
258
                </p>
264
              [% END %]
259
              [% END %]
Lines 269-281 $(document).ready(function() { Link Here
269
    </table>
264
    </table>
270
265
271
    [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
266
    [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
272
      <h3>Please confirm checkout</h3>
267
        <fieldset>
268
            <legend>Please confirm checkout</legend>
273
      <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
269
      <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
274
      <input type="hidden" name="issueconfirmed" value="1" />
270
      <input type="hidden" name="issueconfirmed" value="1" />
275
      <input type="hidden" name="debt_confirmed" value="1" />
271
      <input type="hidden" name="debt_confirmed" value="1" />
276
      <input type="hidden" name="branch" value="[% branch %]" />
272
      <input type="hidden" name="branch" value="[% branch %]" />
277
      <input type="hidden" name="batch" value="1" />
273
      <input type="hidden" name="batch" value="1" />
278
      <input type="submit" id="checkoutrenew" class="approve" value="Checkout or renew" />
274
      <input type="submit" id="checkoutrenew" class="approve" value="Checkout or renew" />
275
        </fieldset>
279
    </form>
276
    </form>
280
    [% END %]
277
    [% END %]
281
278
282
- 

Return to bug 15920