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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-104 / +105 lines)
Lines 1194-1306 Link Here
1194
                        </form> <!-- /#checkin-form -->
1194
                        </form> <!-- /#checkin-form -->
1195
1195
1196
                        [% IF ( riloop ) %]
1196
                        [% IF ( riloop ) %]
1197
                            <h2>Checked-in items</h2>
1197
                            <div class="page-section">
1198
                            <table id="checkedintable">
1198
                                <h2>Checked-in items</h2>
1199
                                <thead>
1199
                                <table id="checkedintable">
1200
                                    <tr>
1200
                                    <thead>
1201
                                        <th class="ci-duedate">Due date</th>
1201
                                        <tr>
1202
                                        <th class="ci-title">Title</th>
1202
                                            <th class="ci-duedate">Due date</th>
1203
                                        <th class="ci-author">Author</th>
1203
                                            <th class="ci-title">Title</th>
1204
                                        <th class="ci-barcode">Barcode</th>
1204
                                            <th class="ci-author">Author</th>
1205
                                        <th class="ci-homelibrary">Home library</th>
1205
                                            <th class="ci-barcode">Barcode</th>
1206
                                        <th class="ci-transferlibrary">Transfer to</th>
1206
                                            <th class="ci-homelibrary">Home library</th>
1207
                                        <th class="ci-shelvinglocation">Shelving location</th>
1207
                                            <th class="ci-transferlibrary">Transfer to</th>
1208
                                        <th class="ci-callnumber">Call number</th>
1208
                                            <th class="ci-shelvinglocation">Shelving location</th>
1209
                                        <th class="ci-dateaccessioned">Date acquired</th>
1209
                                            <th class="ci-callnumber">Call number</th>
1210
                                        <th class="ci-recordlevelitemtype">Record-level itemtype</th>
1210
                                            <th class="ci-dateaccessioned">Date acquired</th>
1211
                                        <th class="ci-itemtype">Item type</th>
1211
                                            <th class="ci-recordlevelitemtype">Record-level itemtype</th>
1212
                                        <th class="ci-collection">Collection</th>
1212
                                            <th class="ci-itemtype">Item type</th>
1213
                                        <th class="ci-patron">Patron</th>
1213
                                            <th class="ci-collection">Collection</th>
1214
                                        <th class="ci-note">Note</th>
1214
                                            <th class="ci-patron">Patron</th>
1215
                                    </tr>
1215
                                            <th class="ci-note">Note</th>
1216
                                </thead>
1216
                                        </tr>
1217
1217
                                    </thead>
1218
                                [% FOREACH riloo IN riloop %]
1218
1219
                                    <tr>
1219
                                    [% FOREACH riloo IN riloop %]
1220
                                        <td class="ci-duedate">
1220
                                        <tr>
1221
                                            [% IF ( riloo.duedate ) %]
1221
                                            <td class="ci-duedate">
1222
                                                [% IF ( riloo.return_overdue ) %]
1222
                                                [% IF ( riloo.duedate ) %]
1223
                                                    <span class="overdue">[% riloo.duedate | $KohaDates as_due_date => 1 %] (overdue)</span>
1223
                                                    [% IF ( riloo.return_overdue ) %]
1224
                                                        <span class="overdue">[% riloo.duedate | $KohaDates as_due_date => 1 %] (overdue)</span>
1225
                                                    [% ELSE %]
1226
                                                        [% riloo.duedate | $KohaDates as_due_date => 1 %]
1227
                                                    [% END %]
1224
                                                [% ELSE %]
1228
                                                [% ELSE %]
1225
                                                    [% riloo.duedate | $KohaDates as_due_date => 1 %]
1229
                                                    <span>Not checked out</span>
1226
                                                [% END %]
1230
                                                [% END %]
1227
                                            [% ELSE %]
1231
                                                [% IF ( riloo.damaged ) %]
1228
                                                <span>Not checked out</span>
1232
                                                    <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
1229
                                            [% END %]
1233
                                                [% END %]
1230
                                            [% IF ( riloo.damaged ) %]
1234
                                            </td>
1231
                                                <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
1235
                                            <td class="ci-title">
1232
                                            [% END %]
1236
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
1233
                                        </td>
1237
                                                    [% riloo.itemtitle | html %]
1234
                                        <td class="ci-title">
1238
                                                    [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
1235
                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
1239
                                                    [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
1236
                                                [% riloo.itemtitle | html %]
1240
                                                    [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
1237
                                                [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
1241
                                                </a>
1238
                                                [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
1242
                                                [% IF ( riloo.enumchron ) %]
1239
                                                [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
1243
                                                    <br/>
1240
                                            </a>
1244
                                                    <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
1241
                                            [% IF ( riloo.enumchron ) %]
1245
                                                [% END %]
1242
                                                <br/>
1246
                                            </td>
1243
                                                <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
1247
                                            <td class="ci-author">[% riloo.itemauthor | html %]</td>
1244
                                            [% END %]
1248
                                            <td class="ci-barcode">
1245
                                        </td>
1249
                                                <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&amp;itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
1246
                                        <td class="ci-author">[% riloo.itemauthor | html %]</td>
1250
                                            </td>
1247
                                        <td class="ci-barcode">
1251
                                            <td class="ci-homelibrary">
1248
                                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&amp;itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
1252
                                                [% Branches.GetName( riloo.homebranch ) | html %]
1249
                                        </td>
1253
                                            </td>
1250
                                        <td class="ci-homelibrary">
1254
                                            <td class="ci-transferlibrary">
1251
                                            [% Branches.GetName( riloo.homebranch ) | html %]
1255
                                                [% Branches.GetName( riloo.transferbranch ) | html %]
1252
                                        </td>
1256
                                            </td>
1253
                                        <td class="ci-transferlibrary">
1257
                                            <td class="ci-shelvinglocation">
1254
                                            [% Branches.GetName( riloo.transferbranch ) | html %]
1258
                                                <span class="shelvingloc">[% riloo.location | html %]</span>
1255
                                        </td>
1259
                                            </td>
1256
                                        <td class="ci-shelvinglocation">
1260
                                            <td class="ci-callnumber">
1257
                                            <span class="shelvingloc">[% riloo.location | html %]</span>
1261
                                                [% riloo.itemcallnumber | html %]
1258
                                        </td>
1262
                                            </td>
1259
                                        <td class="ci-callnumber">
1263
                                            <td class="ci-dateaccessioned">
1260
                                            [% riloo.itemcallnumber | html %]
1264
                                                [% riloo.dateaccessioned | $KohaDates %]
1261
                                        </td>
1265
                                            </td>
1262
                                        <td class="ci-dateaccessioned">
1266
                                            <td class="ci-recordlevelitemtype">
1263
                                            [% riloo.dateaccessioned | $KohaDates %]
1267
                                                [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
1264
                                        </td>
1268
                                            </td>
1265
                                        <td class="ci-recordlevelitemtype">
1269
                                            <td class="ci-itemtype">
1266
                                            [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
1270
                                                [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
1267
                                        </td>
1271
                                            </td>
1268
                                        <td class="ci-itemtype">
1272
                                            <td class="ci-collection">
1269
                                            [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
1273
                                                [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
1270
                                        </td>
1274
                                            </td>
1271
                                        <td class="ci-collection">
1275
                                            <td class="ci-patron">
1272
                                            [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
1276
                                                [% IF ( riloo.duedate ) %]
1273
                                        </td>
1277
                                                    [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
1274
                                        <td class="ci-patron">
1278
                                                    [% IF riloo.borissuescount %]
1275
                                            [% IF ( riloo.duedate ) %]
1279
                                                        <span class="results_summary nowrap">
1276
                                                [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
1280
                                                            <span class="label">Checkouts:</span>
1277
                                                [% IF riloo.borissuescount %]
1281
                                                            <span class="number_box">
1278
                                                    <span class="results_summary nowrap">
1282
                                                                <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
1279
                                                        <span class="label">Checkouts:</span>
1283
                                                            </span>
1280
                                                        <span class="number_box">
1281
                                                            <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
1282
                                                        </span>
1284
                                                        </span>
1283
                                                    </span>
1285
                                                    [% END %]
1286
                                                    <a class="btn btn-default btn-xs printcheckinslip" href="#" data-borrowernumber="[% riloo.patron.borrowernumber | html %]"><i class="fa fa-print"></i> Print checkin slip</a>
1287
                                                [% ELSE %]
1288
                                                    Not checked out
1284
                                                [% END %]
1289
                                                [% END %]
1285
                                                <a class="btn btn-default btn-xs printcheckinslip" href="#" data-borrowernumber="[% riloo.patron.borrowernumber | html %]"><i class="fa fa-print"></i> Print checkin slip</a>
1290
                                            </td>
1286
                                            [% ELSE %]
1291
                                            <td class="ci-note">
1287
                                                Not checked out
1292
                                                [% IF ( riloo.patron.borrowernotes ) %]
1288
                                            [% END %]
1293
                                                    <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
1289
                                        </td>
1294
                                                [% END %]
1290
                                        <td class="ci-note">
1295
                                                [% IF ( riloo.itemnote ) %]
1291
                                            [% IF ( riloo.patron.borrowernotes ) %]
1296
                                                    <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
1292
                                                <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
1297
                                                [% END %]
1293
                                            [% END %]
1298
                                                [% IF ( riloo.itemnotes_nonpublic ) %]
1294
                                            [% IF ( riloo.itemnote ) %]
1299
                                                    <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
1295
                                                <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
1300
                                                [% END %]
1296
                                            [% END %]
1301
                                            </td>
1297
                                            [% IF ( riloo.itemnotes_nonpublic ) %]
1302
                                        </tr>
1298
                                                <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
1303
                                    [% END # /FOREACH riloo %]
1299
                                            [% END %]
1304
                                </table> <!-- /#checkedintable -->
1300
                                        </td>
1305
                            </div><!-- /.page-section -->
1301
                                    </tr>
1302
                                [% END # /FOREACH riloo %]
1303
                            </table> <!-- /#checkedintable -->
1304
                        [% END # /IF riloop %]
1306
                        [% END # /IF riloop %]
1305
1307
1306
                    [% IF Koha.Preference('CircSidebar') %]
1308
                    [% IF Koha.Preference('CircSidebar') %]
1307
- 

Return to bug 32568