From 281784fc2b10f38ec2c2be2c2bef1931ce24bf1f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 1 Aug 2016 12:33:24 -0400 Subject: [PATCH] Bug 17014 - Remove more event attributes from patron templates Content-Type: text/plain; charset="utf-8" There are many patron-related templates which still use event attributes to define events. This patch updates these templates so that events are defined in JavaScript. To test apply the patch and check out to a patron. - From the Print menu in the toolbar, choose "Print summary." The patron summary page should open and the print dialog should be automatically triggered. - From the Print menu in the toolbar, choose "Print slip." The patron slip page should open and the print dialog should be automatically triggered. - From the Print menu in the toolbar, choose "Print quick slip." The patron quick slip page should open and the print dialog should be automatically triggered. - Click the patron's "Fines" tab in the left-hand sidebar and then choose the "Account" tab. -- Click the "Print" button for an account payment (the link should point to printfeercpt.pl). A print receipt page should open and the print dialog should be automatically triggered. -- Follow the same procedure for a transaction which is not an account payment (the link should point to printinvoice.pl). - Click the "Create manual invoice" tab. -- Select one of the "type" choices. Doing so should automatically populate the "Description" field with the corresponding code. -- If necessary, define one or more values for the MANUAL_INV authorized value and confirm that those invoice types work as well. - From the patron's "Pay fines" tab, click the "Pay amount" button. In the "collect from patron" field, enter any combination of letters, numbers, and symbols. When you tab away from that field your text should be reformatted to currency format. - From the patrons home page, change the filter in the left-hand sidebar and submit it. The correct results should be returned. --- .../intranet-tmpl/prog/en/includes/slip-print.inc | 6 ++--- .../prog/en/modules/circ/printslip.tt | 2 +- .../prog/en/modules/members/maninvoice.tt | 26 ++++++++++++---------- .../prog/en/modules/members/member.tt | 5 ++++- .../prog/en/modules/members/moremember-print.tt | 5 +---- .../prog/en/modules/members/moremember-receipt.tt | 2 +- .../prog/en/modules/members/paycollect.tt | 16 ++++++------- .../prog/en/modules/members/printfeercpt.tt | 4 +--- .../prog/en/modules/members/printinvoice.tt | 7 +++--- 9 files changed, 36 insertions(+), 37 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc index 413f4bb..689375b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc @@ -2,9 +2,9 @@ [% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %] [% Koha.Preference('IntranetSlipPrinterJS') %] [% ELSE %] - function printThenClose() { + $( window ).load(function() { window.print(); setTimeout('window.close()', 1); - } + }); [% END %] - \ No newline at end of file + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt index 93ff49b..09b550b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt @@ -19,7 +19,7 @@ [% INCLUDE 'slip-print.inc' #printThenClose %] - +
[% IF plain %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt index 7d35c73..6cda5d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt @@ -4,9 +4,22 @@ [% INCLUDE 'doc-head-close.inc' %] @@ -44,19 +57,8 @@ $(document).ready(function(){ Manual invoice
  1. - - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index 06fbc75..6365044 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -109,6 +109,9 @@ $(document).ready(function() { e.preventDefault(); clearFilters(true); }); + $("#searchform").on("submit",function(){ + return filter(); + }); }); var dtMemberResults; @@ -418,7 +421,7 @@ function filterByFirstLetterSurname(letter) {
-
+

Filters

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt index f087760..312785d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt @@ -4,12 +4,9 @@ [% INCLUDE 'doc-head-open.inc' %] Summary for [% firstname %] [% surname %] ([% cardnumber %]) [% INCLUDE 'doc-head-close.inc' %] - - - [% INCLUDE 'slip-print.inc' #printThenClose %] - +

Account summary: [% firstname %] [% surname %] ([% cardnumber %])

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt index 071b750..59d8b4d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt @@ -8,7 +8,7 @@ [% INCLUDE 'slip-print.inc' #printThenClose %] - +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt index bcf56ae..6cd08f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -6,11 +6,11 @@ // - -