@@ -, +, @@
- Go to Administration -> Table settings -> Circulation.
- Under the "Circulation tables" heading you should see a "Jump to" link
to "print_summary."
- In the settings for the print_summary page you should see three
tables: print-summary-checkouts, print-summary-fines, and
print-summary-holds.
- Locate a patron account which has checkouts, fines, and holds.
- From the patron detail view click "Print -> Print summary."
- A new window should open with the print summary view. All tables
should display correctly.
- Test that the "Columns" buttons work correctly to show and hide
columns.
- Make changes to the default settings for these tables to confirm that
they work on the print summary page.
---
admin/columns_settings.yml | 50 ++++
koha-tmpl/intranet-tmpl/prog/css/print.css | 4 +-
.../intranet-tmpl/prog/css/src/_tables.scss | 27 ++
.../prog/css/src/staff-global.scss | 10 +
.../en/modules/members/moremember-print.tt | 281 ++++++++++++------
5 files changed, 278 insertions(+), 94 deletions(-)
--- a/admin/columns_settings.yml
+++ a/admin/columns_settings.yml
@@ -1343,6 +1343,56 @@ modules:
-
columnname: non-public_note
+ print_summary:
+ print-summary-checkouts:
+ columns:
+ -
+ columnname: title
+ -
+ columnname: author
+ -
+ columnname: call_number
+ -
+ columnname: item_type
+ -
+ columnname: date_due
+ -
+ columnname: barcode
+ -
+ columnname: inventory_number
+ -
+ columnname: charge
+ -
+ columnname: price
+ -
+ columnname: status
+
+ print-summary-holds:
+ columns:
+ -
+ columnname: title
+ -
+ columnname: author
+ -
+ columnname: placed_on
+ -
+ columnname: expires_on
+ -
+ columnname: pick up_location
+
+ print-summary-fines:
+ columns:
+ -
+ columnname: date
+ -
+ columnname: description_of_charges
+ -
+ columnname: note
+ -
+ columnname: amount
+ -
+ columnname: outstanding
+
opac:
biblio-detail:
holdingst:
--- a/koha-tmpl/intranet-tmpl/prog/css/print.css
+++ a/koha-tmpl/intranet-tmpl/prog/css/print.css
@@ -213,6 +213,7 @@ tfoot td, tfoot td:last-child {
}
td.credit, td.debit, td.sum {
+ color: #000;
font-family : "Courier New", Courier, monospace;
text-align : right;
}
@@ -307,7 +308,8 @@ fieldset.action,
.print,
.ui-tabs-nav,
.browse-controls,
-.cart-controls {
+.cart-controls,
+button.dt-button {
display: none;
}
--- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss
+++ a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss
@@ -26,6 +26,33 @@ table {
margin: 0 .5em 0 0;
}
}
+
+ button {
+ &.dt-button {
+ background: transparent none;
+ border: 0;
+ color: #595959;
+ font-size: 60%;
+ margin: 0 .5em;
+
+ &:hover:not(.disabled):active:not(.disabled) {
+ background: transparent none;
+ border: 0;
+ box-shadow: none;
+ color: #000;
+ }
+
+ &:hover:not(.disabled) {
+ background: transparent none;
+ border: 0;
+ color: #000;
+ }
+ }
+ }
+
+ div.dt-button-collection {
+ font-size: 70%;
+ }
}
&.invis {
--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
+++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
@@ -2279,6 +2279,16 @@ td {
min-height: unset;
padding: 0;
}
+
+ &.credit,
+ &.debit,
+ &.total {
+ text-align: right;
+
+ tfoot & {
+ color: #000;
+ }
+ }
}
.cover-image {
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
@@ -3,6 +3,7 @@
[% USE KohaDates %]
[% USE Price %]
[% USE ItemTypes %]
+[% USE TablesSettings %]
[% PROCESS 'member-display-address-style.inc' %]
[% SET footerjs = 1 %]
@@ -31,72 +32,108 @@
[% IF ( issues ) %]
-
+
Items checked out
-
- Title |
- Author |
- Call number |
- Item type |
- Date due |
- Barcode |
- Inventory number |
- Charge |
- Price |
- Status |
-
-
- [% FOREACH issue IN issues %]
- [% IF ( issue.overdue ) %][% ELSE %]
[% END %]
-
- [% issue.title | html %]
-
+
+
+ Title |
+ Author |
+ Call number |
+ Item type |
+ Date due |
+ Barcode |
+ Inventory number |
+ Charge |
+ Price |
+ Status |
+
+
+ |
+ [% FOREACH issue IN issues %]
+
+
+ [% INCLUDE 'biblio-title.inc' biblio=issue link = 0 %]
+ |
+ [% issue.author | html %] |
+ [% issue.itemcallnumber | html %] |
+ [% ItemTypes.GetDescription( issue.itype ) | html %] |
+ [% issue.date_due | $KohaDates as_due_date => 1 %] |
+ [% issue.barcode | html %] |
+ [% issue.stocknumber | html %] |
+ [% IF ( issue.charge <= 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% issue.charge | $Price %]
+ |
+ [% IF ( issue.replacementprice <= 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% issue.replacementprice | $Price %]
+ |
+ [% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %] |
+
+ [% END %]
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ Totals: |
+ [% IF ( totaldue <= 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% totaldue | $Price %]
+ |
+ [% IF ( totalprice <= 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% totalprice | $Price %]
|
- [% issue.author | html %] |
- [% issue.itemcallnumber | html %] |
- [% ItemTypes.GetDescription( issue.itype ) | html %] |
- [% issue.date_due | $KohaDates as_due_date => 1 %] |
- [% issue.barcode | html %] |
- [% issue.stocknumber | html %] |
- [% issue.charge | $Price %] |
- [% issue.replacementprice | $Price %] |
- [% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %] |
+ |
- [% END %]
-
-
- Totals: |
- [% totaldue | $Price %] |
- [% totalprice | $Price %] |
- |
-
-
- [% END %]
+
+
+ [% END %]
[% IF ( reserves ) %]
-
+
Pending holds
-
- Title |
- Author |
- Placed on |
- Expires on |
- Pick up location |
-
-
- [% FOREACH reserve IN reserves %]
+
- [% reserve.title | html %] |
- [% reserve.author | html %] |
- [% reserve.reservedate | $KohaDates %] |
- [% reserve.expirationdate | $KohaDates %] |
- [% reserve.waiting_at | html %] |
+ Title |
+ Author |
+ Placed on |
+ Expires on |
+ Pick up location |
- [% END %]
+
+
+ [% FOREACH reserve IN reserves %]
+
+ [% reserve.title | html %] |
+ [% reserve.author | html %] |
+ [% reserve.reservedate | $KohaDates %] |
+ [% reserve.expirationdate | $KohaDates %] |
+ [% reserve.waiting_at | html %] |
+
+ [% END %]
+
[% END %]
[% IF accounts && totaldue != 0 %]
-
+
Account fines and payments
@@ -107,46 +144,62 @@
Outstanding |
-
- [% FOREACH account IN accounts %]
-
- [% account.date | $KohaDates %] |
-
- [% PROCESS account_type_description account=account %]
- [%- IF account.payment_type %]
- , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %]
- [% END %]
- [%- IF account.description %]
- , [% account.description | html %]
- [% END %]
-
- [% IF ( account.itemnumber AND account.debit_type_code != 'OVERDUE' ) %]
- [% account.item.biblio.title | html %]
- [% END %]
- |
-
- [% account.note | html_line_break %]
- |
- [% IF ( account.amount < 0 ) %]
-
- [% ELSE %]
- |
- [% END %][% account.amount | $Price %]
- |
- [% IF ( account.amountoutstanding < 0 ) %]
-
- [% ELSE %]
- |
- [% END %]
- [% account.amountoutstanding | $Price %]
- |
-
- [% END %]
-
+
+ [% FOREACH account IN accounts %]
+
+ [% account.date | $KohaDates %] |
+
+ [% PROCESS account_type_description account=account %]
+ [%- IF account.payment_type %]
+ , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %]
+ [% END %]
+ [%- IF account.description %]
+ , [% account.description | html %]
+ [% END %]
+
+ [% IF ( account.itemnumber AND account.debit_type_code != 'OVERDUE' ) %]
+ [% account.item.biblio.title | html %]
+ [% END %]
+ |
+
+ [% account.note | html_line_break %]
+ |
+ [% IF ( account.amount <= 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% account.amount | $Price %]
+ |
+ [% IF ( account.amountoutstanding <= 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% account.amountoutstanding | $Price %]
+ |
+
+ [% END %]
+
- Total due |
- [% totaldue | $Price %] |
+ |
+ |
+ |
+ [% IF ( totaldue < 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ Total due:
+ |
+ [% IF ( totaldue < 0 ) %]
+
+ [% ELSE %]
+ |
+ [% END %]
+ [% totaldue | $Price %]
+ |
@@ -154,6 +207,48 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'slip-print.inc' #printThenClose %]
+ [% INCLUDE 'datatables.inc' %]
+ [% INCLUDE 'columns_settings.inc' %]
+
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
--