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

(-)a/admin/columns_settings.yml (+26 lines)
Lines 2033-2038 modules: Link Here
2033
            -
2033
            -
2034
              columnname: itemnote
2034
              columnname: itemnote
2035
2035
2036
    transfers:
2037
      transferstable:
2038
        columns:
2039
            -
2040
              columnname: title
2041
            -
2042
              columnname: author
2043
            -
2044
              columnname: barcode
2045
            -
2046
              columnname: location
2047
            -
2048
              columnname: itemcallnumber
2049
            -
2050
              columnname: itype
2051
            -
2052
              columnname: ccode
2053
            -
2054
              columnname: transferfrom
2055
            -
2056
              columnname: transferto
2057
            -
2058
              columnname: action
2059
              cannot_be_toggled: 1
2060
              cannot_be_modified: 1
2061
2036
    view_holdsqueue:
2062
    view_holdsqueue:
2037
      holds-table:
2063
      holds-table:
2038
        default_sort_order: 3
2064
        default_sort_order: 3
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt (-41 / +57 lines)
Lines 3-8 Link Here
3
[% USE Branches %]
3
[% USE Branches %]
4
[% USE ItemTypes %]
4
[% USE ItemTypes %]
5
[% USE AuthorisedValues %]
5
[% USE AuthorisedValues %]
6
[% USE TablesSettings %]
6
[% PROCESS 'i18n.inc' %]
7
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% PROCESS 'member-display-address-style.inc' %]
9
[% PROCESS 'member-display-address-style.inc' %]
Lines 236-242 Link Here
236
                    <div class="form-control-group">
237
                    <div class="form-control-group">
237
                        <label class="hint" for="barcode">Enter item barcode: </label>
238
                        <label class="hint" for="barcode">Enter item barcode: </label>
238
                        <input name="barcode" id="barcode" size="15" class="barcode focus" placeholder="Enter item barcode" type="text" />
239
                        <input name="barcode" id="barcode" size="15" class="barcode focus" placeholder="Enter item barcode" type="text" />
239
                        <input class="btn btn-default" type="submit" value="Transfer" />
240
                        <input class="btn btn-primary" type="submit" value="Transfer" />
240
                    </div>
241
                    </div>
241
                </fieldset>
242
                </fieldset>
242
                [% FOREACH trsfitemloo IN trsfitemloop %]
243
                [% FOREACH trsfitemloo IN trsfitemloop %]
Lines 251-292 Link Here
251
252
252
        [% IF ( trsfitemloop ) %]
253
        [% IF ( trsfitemloop ) %]
253
            <div class="page-section">
254
            <div class="page-section">
254
                <table>
255
                <table id="transferstable">
255
                    <caption>Transferred items</caption>
256
                    <caption>Transferred items</caption>
256
                    <tr>
257
                    <thead>
257
                        <th class="tf-title">Title</th>
258
                        <th class="tf-author">Author</th>
259
                        <th class="tf-barcode">Barcode</th>
260
                        <th class="tf-location">Shelving location</th>
261
                        <th class="tf-itemcallnumber">Call number</th>
262
                        <th class="tf-itemtype">Item type</th>
263
                        <th class="tf-ccode">Collection</th>
264
                        <th class="tf-origin">Origin</th>
265
                        <th class="tf-destination">Destination</th>
266
                        <th class="tf-printslip">Actions</th>
267
                    </tr>
268
                    [% FOREACH trsfitemloo IN trsfitemloop %]
269
                        <tr>
258
                        <tr>
270
                            <td class="tf-title"> [% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] </td>
259
                            <th class="tf-title">Title</th>
271
                            <td class="tf-author">[% trsfitemloo.item.biblio.author | html %]</td>
260
                            <th class="tf-author">Author</th>
272
                            <td class="tf-barcode"
261
                            <th class="tf-barcode">Barcode</th>
273
                                ><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.item.biblionumber | uri %]&amp;itemnumber=[% trsfitemloo.item.itemnumber | uri %]#item[% trsfitemloo.item.itemnumber | uri %]"
262
                            <th class="tf-location">Shelving location</th>
274
                                    >[% trsfitemloo.item.barcode | html %]</a
263
                            <th class="tf-itemcallnumber">Call number</th>
275
                                ></td
264
                            <th class="tf-itemtype">Item type</th>
276
                            >
265
                            <th class="tf-ccode">Collection</th>
277
                            <td class="tf-location"><span class="shelvingloc">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %]</span></td>
266
                            <th class="tf-origin">Origin</th>
278
                            <td class="tf-itemcallnumber">[% trsfitemloo.item.itemcallnumber | html %]</td>
267
                            <th class="tf-destination">Destination</th>
279
                            <td class="tf-itemtype">[% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %]</td>
268
                            <th class="tf-printslip">Actions</th>
280
                            <td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td>
281
                            <td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td>
282
                            <td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td>
283
                            <td class="tf-printslip">
284
                                <button type="button" class="btn btn-default btn-sm printtransferslip" data-itemnumber="[% trsfitemloo.item.itemnumber | html %]" data-tobranch="[% trsfitemloo.tobrcd | html %]"
285
                                    ><i class="fa fa-print"></i> Print slip</button
286
                                >
287
                            </td>
288
                        </tr>
269
                        </tr>
289
                    [% END # /FOREACH trsfitemloo %]
270
                    </thead>
271
                    <tbody>
272
                        [% FOREACH trsfitemloo IN trsfitemloop %]
273
                            <tr>
274
                                <td class="tf-title"> [% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] </td>
275
                                <td class="tf-author">[% trsfitemloo.item.biblio.author | html %]</td>
276
                                <td class="tf-barcode"
277
                                    ><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.item.biblionumber | uri %]&amp;itemnumber=[% trsfitemloo.item.itemnumber | uri %]#item[% trsfitemloo.item.itemnumber | uri %]"
278
                                        >[% trsfitemloo.item.barcode | html %]</a
279
                                    ></td
280
                                >
281
                                <td class="tf-location"><span class="shelvingloc">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %]</span></td>
282
                                <td class="tf-itemcallnumber">[% trsfitemloo.item.itemcallnumber | html %]</td>
283
                                <td class="tf-itemtype">[% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %]</td>
284
                                <td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td>
285
                                <td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td>
286
                                <td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td>
287
                                <td class="tf-printslip">
288
                                    <button type="button" class="btn btn-default btn-sm printtransferslip" data-itemnumber="[% trsfitemloo.item.itemnumber | html %]" data-tobranch="[% trsfitemloo.tobrcd | html %]"
289
                                        ><i class="fa fa-print"></i> Print slip</button
290
                                    >
291
                                </td>
292
                            </tr>
293
                        [% END # /FOREACH trsfitemloo %]
294
                    </tbody>
290
                </table>
295
                </table>
291
            </div>
296
            </div>
292
            <!-- /.page-section -->
297
            <!-- /.page-section -->
Lines 294-311 Link Here
294
    [% END # /IF found %]
299
    [% END # /IF found %]
295
[% END %]
300
[% END %]
296
[% MACRO jsinclude BLOCK %]
301
[% MACRO jsinclude BLOCK %]
302
    [% INCLUDE 'datatables.inc' %]
297
    [% INCLUDE 'select2.inc' %]
303
    [% INCLUDE 'select2.inc' %]
298
    <script>
304
    <script>
299
        $(".printtransferslip").on("click", function(e){
305
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'transfers', 'transferstable', 'json' ) | $raw %]
300
            e.preventDefault();
301
            var itemnumber = $(this).attr('data-itemnumber');
302
            var to_branch = $(this).attr('data-tobranch');
303
            window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
304
        });
305
        $(document).ready( function() {
306
        $(document).ready( function() {
307
            $(".printtransferslip").on("click", function(e){
308
                e.preventDefault();
309
                var itemnumber = $(this).attr('data-itemnumber');
310
                var to_branch = $(this).attr('data-tobranch');
311
                window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
312
            });
306
            [% IF ( found ) %]
313
            [% IF ( found ) %]
307
                $("#transfer_confirm").modal('show');
314
                $("#transfer_confirm").modal('show');
308
            [% END %]
315
            [% END %]
316
            var transfers_table = $("#transferstable").kohaTable(
317
                {
318
                    searching: false,
319
                    paging: false,
320
                    info: false,
321
                    ordering: false,
322
                    dom: '<"table_controls"B>rt',
323
                },
324
                table_settings
325
            );
309
        });
326
        });
310
    </script>
327
    </script>
311
[% END %]
328
[% END %]
312
- 

Return to bug 41134