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

(-)a/admin/columns_settings.yml (+3 lines)
Lines 1932-1937 modules: Link Here
1932
1932
1933
    print_summary:
1933
    print_summary:
1934
        print-summary-checkouts:
1934
        print-summary-checkouts:
1935
            default_sort_order: 0
1935
            columns:
1936
            columns:
1936
                -
1937
                -
1937
                    columnname: title
1938
                    columnname: title
Lines 1955-1960 modules: Link Here
1955
                    columnname: status
1956
                    columnname: status
1956
1957
1957
        print-summary-holds:
1958
        print-summary-holds:
1959
            default_sort_order: 0
1958
            columns:
1960
            columns:
1959
                -
1961
                -
1960
                    columnname: title
1962
                    columnname: title
Lines 1968-1973 modules: Link Here
1968
                    columnname: pick up_location
1970
                    columnname: pick up_location
1969
1971
1970
        print-summary-fines:
1972
        print-summary-fines:
1973
            default_sort_order: 0
1971
            columns:
1974
            columns:
1972
                -
1975
                -
1973
                    columnname: date
1976
                    columnname: date
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc (+2 lines)
Lines 2-9 Link Here
2
<!-- slip-print.inc -->
2
<!-- slip-print.inc -->
3
<script>
3
<script>
4
[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
4
[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
5
    let autoprint = false;
5
    [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
6
    [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
6
[% ELSE %]
7
[% ELSE %]
8
    let autoprint = true;
7
    $( window ).load(function() {
9
    $( window ).load(function() {
8
        window.print();
10
        window.print();
9
        window.onafterprint = function () {
11
        window.onafterprint = function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt (-45 / +36 lines)
Lines 16-46 Link Here
16
        [% t("Koha") | html %]
16
        [% t("Koha") | html %]
17
    [% END %]</title>
17
    [% END %]</title>
18
    [% INCLUDE 'doc-head-close.inc' %]
18
    [% INCLUDE 'doc-head-close.inc' %]
19
    <style>.pager div.dt-buttons { justify-content: flex-start; }</style>
19
</head>
20
</head>
20
21
21
<body id="pat_moremember-print" class="pat">
22
<body id="pat_moremember-print" class="pat">
22
    <div id="main">
23
    <div id="main">
23
        <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber | uri %]">Account summary: [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo;</a></h3>
24
        <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber | uri %]">Account summary: [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo;</a></h3>
24
25
        <div class="page-section">
25
        <ul>
26
            <ul>
26
            [% PROCESS 'display-address-style' %]
27
                [% PROCESS 'display-address-style' %]
27
            <li>[% IF ( patron.phone ) %][% patron.phone | html %][% ELSE %](no phone number on file)[% END %]</li>
28
                <li>[% IF ( patron.phone ) %][% patron.phone | html %][% ELSE %](no phone number on file)[% END %]</li>
28
            <li>[% IF ( patron.email ) %][% patron.email | html %][% ELSE %](no primary email on file)[% END %]</li>
29
                <li>[% IF ( patron.email ) %][% patron.email | html %][% ELSE %](no primary email on file)[% END %]</li>
29
            [% IF ( patron.emailpro ) %]
30
                [% IF ( patron.emailpro ) %]
30
                <li>[% patron.emailpro | html %]</li>
31
                    <li>[% patron.emailpro | html %]</li>
31
            [% END %]
32
                [% END %]
32
            <li>Registration date: [% patron.dateenrolled | $KohaDates %]</li>
33
                <li>Registration date: [% patron.dateenrolled | $KohaDates %]</li>
33
            <li>Expiration date: [% patron.dateexpiry | $KohaDates %]</li>
34
                <li>Expiration date: [% patron.dateexpiry | $KohaDates %]</li>
34
            <li>Library: [% Branches.GetName( patron.branchcode ) | html %]</li>
35
                <li>Library: [% Branches.GetName( patron.branchcode ) | html %]</li>
35
            <li>Category: [% patron.category.description | html %]</li>
36
                <li>Category: [% patron.category.description | html %]</li>
36
        </ul>
37
            </ul>
38
        </div>
37
39
38
        [% IF ( issues ) %]
40
        [% IF ( issues ) %]
41
            <h2>Items checked out</h2>
39
            <table id="print-summary-checkouts">
42
            <table id="print-summary-checkouts">
40
                <caption>Items checked out</caption>
41
                <thead>
43
                <thead>
42
                    <tr>
44
                    <tr>
43
                        <th>Title</th>
45
                        <th class="anti-the">Title</th>
44
                        <th>Author</th>
46
                        <th>Author</th>
45
                        <th>Call number</th>
47
                        <th>Call number</th>
46
                        <th>Item type</th>
48
                        <th>Item type</th>
Lines 61-67 Link Here
61
                            <td>[% issue.author | html %]</td>
63
                            <td>[% issue.author | html %]</td>
62
                            <td>[% issue.itemcallnumber | html %]</td>
64
                            <td>[% issue.itemcallnumber | html %]</td>
63
                            <td>[% ItemTypes.GetDescription( issue.itype ) | html %]</td>
65
                            <td>[% ItemTypes.GetDescription( issue.itype ) | html %]</td>
64
                            <td>[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
66
                            <td data-order="[% issue.date_due | html %]">[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
65
                            <td>[% issue.barcode | html %]</td>
67
                            <td>[% issue.barcode | html %]</td>
66
                            <td>[% issue.stocknumber | html %]</td>
68
                            <td>[% issue.stocknumber | html %]</td>
67
                            [% IF ( issue.charge <= 0 ) %]
69
                            [% IF ( issue.charge <= 0 ) %]
Lines 112-122 Link Here
112
        [% END %]
114
        [% END %]
113
115
114
    [% IF ( reserves ) %]
116
    [% IF ( reserves ) %]
117
        <h2>Pending holds</h2>
115
        <table id="print-summary-holds">
118
        <table id="print-summary-holds">
116
            <caption>Pending holds</caption>
117
            <thead>
119
            <thead>
118
                <tr>
120
                <tr>
119
                    <th>Title</th>
121
                    <th class="anti-the">Title</th>
120
                    <th>Author</th>
122
                    <th>Author</th>
121
                    <th>Placed on</th>
123
                    <th>Placed on</th>
122
                    <th>Expires on</th>
124
                    <th>Expires on</th>
Lines 128-135 Link Here
128
                    <tr>
130
                    <tr>
129
                        <td>[% reserve.title | html %]</td>
131
                        <td>[% reserve.title | html %]</td>
130
                        <td>[% reserve.author | html %]</td>
132
                        <td>[% reserve.author | html %]</td>
131
                        <td>[% reserve.reservedate | $KohaDates %]</td>
133
                        <td data-sort="[% reserve.reservedate | html %]">[% reserve.reservedate | $KohaDates %]</td>
132
                        <td>[% reserve.expirationdate | $KohaDates %]</td>
134
                        <td data-sort="[% reserve.expirationdate | html %]">[% reserve.expirationdate | $KohaDates %]</td>
133
                        <td>[% reserve.waiting_at | html %]</td>
135
                        <td>[% reserve.waiting_at | html %]</td>
134
                    </tr>
136
                    </tr>
135
                [% END %]
137
                [% END %]
Lines 137-144 Link Here
137
        </table>
139
        </table>
138
    [% END %]
140
    [% END %]
139
    [% IF accounts && totaldue != 0 %]
141
    [% IF accounts && totaldue != 0 %]
142
        <h2>Account fines and payments</h2>
140
        <table id="print-summary-fines">
143
        <table id="print-summary-fines">
141
            <caption>Account fines and payments</caption>
142
            <thead>
144
            <thead>
143
              <tr>
145
              <tr>
144
                  <th>Date</th>
146
                  <th>Date</th>
Lines 151-157 Link Here
151
            <tbody>
153
            <tbody>
152
                [% FOREACH account IN accounts %]
154
                [% FOREACH account IN accounts %]
153
                    <tr>
155
                    <tr>
154
                        <td>[% account.date | $KohaDates %]</td>
156
                        <td data-sort="[% account.date| html %]">[% account.date | $KohaDates %]</td>
155
                        <td>
157
                        <td>
156
                            [% PROCESS account_type_description account=account %]
158
                            [% PROCESS account_type_description account=account %]
157
                            [%- IF account.payment_type %]
159
                            [%- IF account.payment_type %]
Lines 218-260 Link Here
218
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
220
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
219
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
221
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
220
222
221
        function moveColumnsButton( tableId ){
223
        function initTables(){
222
            /* Hide the export button */
223
            $("#" + tableId + "_wrapper").find("button.export_controls").remove();
224
            /* We don't show the table controls toolbar here, so the columns settings button looks better as part of the caption */
225
            $("#" + tableId).find("caption").append( $("#" + tableId + "_wrapper").find("button.columns_controls") );
226
        }
227
228
        $(document).ready(function() {
229
230
            KohaTable("print-summary-checkouts", {
224
            KohaTable("print-summary-checkouts", {
231
                "dom": "Bt",
225
                "dom": '<"dt-info"><"top pager"<"table_controls"B>>t',
232
                "paging": false,
226
                "paging": false,
233
                "autoWidth": false,
227
                "autoWidth": false,
234
                initComplete: function( settings) {
235
                    moveColumnsButton( settings.nTable.id );
236
                }
237
            }, checkouts_columns);
228
            }, checkouts_columns);
238
229
239
            KohaTable("print-summary-holds", {
230
            KohaTable("print-summary-holds", {
240
                "dom": "Bt",
231
                "dom": '<"dt-info"><"top pager"<"table_controls"B>>t',
241
                "paging": false,
232
                "paging": false,
242
                "autoWidth": false,
233
                "autoWidth": false,
243
                initComplete: function( settings) {
244
                    moveColumnsButton( settings.nTable.id );
245
                }
246
            }, holds_columns);
234
            }, holds_columns);
247
235
248
            KohaTable("print-summary-fines", {
236
            KohaTable("print-summary-fines", {
249
                "dom": "Bt",
237
                "dom": '<"dt-info"><"top pager"<"table_controls"B>>t',
250
                "paging": false,
238
                "paging": false,
251
                "autoWidth": false,
239
                "autoWidth": false,
252
                initComplete: function( settings) {
253
                    moveColumnsButton( settings.nTable.id );
254
                }
255
            }, fines_columns);
240
            }, fines_columns);
241
        }
256
242
257
        });
243
        if( autoprint ){
244
            window.onbeforeprint = initTables();
245
        } else {
246
            $(document).ready(function(){
247
                initTables();
248
            });
249
        }
258
    </script>
250
    </script>
259
[% END %]
251
[% END %]
260
252
261
- 

Return to bug 36475