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

(-)a/admin/columns_settings.yml (+3 lines)
Lines 1936-1941 modules: Link Here
1936
1936
1937
    print_summary:
1937
    print_summary:
1938
        print-summary-checkouts:
1938
        print-summary-checkouts:
1939
            default_sort_order: 0
1939
            columns:
1940
            columns:
1940
                -
1941
                -
1941
                    columnname: title
1942
                    columnname: title
Lines 1959-1964 modules: Link Here
1959
                    columnname: status
1960
                    columnname: status
1960
1961
1961
        print-summary-holds:
1962
        print-summary-holds:
1963
            default_sort_order: 0
1962
            columns:
1964
            columns:
1963
                -
1965
                -
1964
                    columnname: title
1966
                    columnname: title
Lines 1974-1979 modules: Link Here
1974
                    columnname: priority
1976
                    columnname: priority
1975
1977
1976
        print-summary-fines:
1978
        print-summary-fines:
1979
            default_sort_order: 0
1977
            columns:
1980
            columns:
1978
                -
1981
                -
1979
                    columnname: date
1982
                    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 129-136 Link Here
129
                    <tr>
131
                    <tr>
130
                        <td>[% reserve.title | html %]</td>
132
                        <td>[% reserve.title | html %]</td>
131
                        <td>[% reserve.author | html %]</td>
133
                        <td>[% reserve.author | html %]</td>
132
                        <td>[% reserve.reservedate | $KohaDates %]</td>
134
                        <td data-sort="[% reserve.reservedate | html %]">[% reserve.reservedate | $KohaDates %]</td>
133
                        <td>[% reserve.expirationdate | $KohaDates %]</td>
135
                        <td data-sort="[% reserve.expirationdate | html %]">[% reserve.expirationdate | $KohaDates %]</td>
134
                        <td>[% reserve.waiting_at | html %]</td>
136
                        <td>[% reserve.waiting_at | html %]</td>
135
                        <td>[% reserve.priority | html %]</td>
137
                        <td>[% reserve.priority | html %]</td>
136
                    </tr>
138
                    </tr>
Lines 139-146 Link Here
139
        </table>
141
        </table>
140
    [% END %]
142
    [% END %]
141
    [% IF accounts && totaldue != 0 %]
143
    [% IF accounts && totaldue != 0 %]
144
        <h2>Account fines and payments</h2>
142
        <table id="print-summary-fines">
145
        <table id="print-summary-fines">
143
            <caption>Account fines and payments</caption>
144
            <thead>
146
            <thead>
145
              <tr>
147
              <tr>
146
                  <th>Date</th>
148
                  <th>Date</th>
Lines 153-159 Link Here
153
            <tbody>
155
            <tbody>
154
                [% FOREACH account IN accounts %]
156
                [% FOREACH account IN accounts %]
155
                    <tr>
157
                    <tr>
156
                        <td>[% account.date | $KohaDates %]</td>
158
                        <td data-sort="[% account.date| html %]">[% account.date | $KohaDates %]</td>
157
                        <td>
159
                        <td>
158
                            [% PROCESS account_type_description account=account %]
160
                            [% PROCESS account_type_description account=account %]
159
                            [%- IF account.payment_type %]
161
                            [%- IF account.payment_type %]
Lines 220-262 Link Here
220
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
222
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
221
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
223
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
222
224
223
        function moveColumnsButton( tableId ){
225
        function initTables(){
224
            /* Hide the export button */
225
            $("#" + tableId + "_wrapper").find("button.export_controls").remove();
226
            /* We don't show the table controls toolbar here, so the columns settings button looks better as part of the caption */
227
            $("#" + tableId).find("caption").append( $("#" + tableId + "_wrapper").find("button.columns_controls") );
228
        }
229
230
        $(document).ready(function() {
231
232
            KohaTable("print-summary-checkouts", {
226
            KohaTable("print-summary-checkouts", {
233
                "dom": "Bt",
227
                "dom": '<"dt-info"><"top pager"<"table_controls"B>>t',
234
                "paging": false,
228
                "paging": false,
235
                "autoWidth": false,
229
                "autoWidth": false,
236
                initComplete: function( settings) {
237
                    moveColumnsButton( settings.nTable.id );
238
                }
239
            }, checkouts_columns);
230
            }, checkouts_columns);
240
231
241
            KohaTable("print-summary-holds", {
232
            KohaTable("print-summary-holds", {
242
                "dom": "Bt",
233
                "dom": '<"dt-info"><"top pager"<"table_controls"B>>t',
243
                "paging": false,
234
                "paging": false,
244
                "autoWidth": false,
235
                "autoWidth": false,
245
                initComplete: function( settings) {
246
                    moveColumnsButton( settings.nTable.id );
247
                }
248
            }, holds_columns);
236
            }, holds_columns);
249
237
250
            KohaTable("print-summary-fines", {
238
            KohaTable("print-summary-fines", {
251
                "dom": "Bt",
239
                "dom": '<"dt-info"><"top pager"<"table_controls"B>>t',
252
                "paging": false,
240
                "paging": false,
253
                "autoWidth": false,
241
                "autoWidth": false,
254
                initComplete: function( settings) {
255
                    moveColumnsButton( settings.nTable.id );
256
                }
257
            }, fines_columns);
242
            }, fines_columns);
243
        }
258
244
259
        });
245
        if( autoprint ){
246
            window.onbeforeprint = initTables();
247
        } else {
248
            $(document).ready(function(){
249
                initTables();
250
            });
251
        }
260
    </script>
252
    </script>
261
[% END %]
253
[% END %]
262
254
263
- 

Return to bug 36475