Bugzilla – Attachment 8273 Details for
Bug 7646
Printing w/o the SQL Code showing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7646: Add "do not print SQL" link to reports
Bug-7646-Add-do-not-print-SQL-link-to-reports.patch (text/plain), 1.97 KB, created by
Jared Camins-Esakov
on 2012-03-19 13:16:19 UTC
(
hide
)
Description:
Bug 7646: Add "do not print SQL" link to reports
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-03-19 13:16:19 UTC
Size:
1.97 KB
patch
obsolete
>From 55f1cfa393d84547327424ee7ceb079c592c5d4f Mon Sep 17 00:00:00 2001 >From: Shane <shane.sammons@gmail.com> >Date: Mon, 5 Mar 2012 22:16:09 -0500 >Subject: [PATCH] Bug 7646: Add "do not print SQL" link to reports >Content-Type: text/plain; charset="UTF-8" > >I have made modifications to the template file. It added a text link to remove >the SQL statement from the print view. Thus saving the need to use CSV/TSV >exports. > >The print text will not show on the print out as is. I added a little .noprint >class to the template file. Then I added my text with a print dialog and class >change JS. > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > .../en/modules/reports/guided_reports_start.tt | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index 137fdbf..fcb2595 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -19,6 +19,12 @@ > <style type="text/css"> > #sql { width: 90%; height: 9em;} > </style> >+<style type="text/css" media="print"> >+/* ### FIX ME, PUT ME IN MAIN CSS IF USED OFTEN! */ >+.noprint { >+display: none; >+} >+</style> > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> > >@@ -493,6 +499,7 @@ canned reports and writing custom SQL reports.</p> > [% END %] > > [% IF ( execute ) %] >+<a href="javascript:window.print()" OnClick="document.getElementById('sql_output').className += ' noprint';" class="noprint">Print w/o SQL</a> > <h1>[% name %]</h1> > [% IF ( notes ) %]<p>[% notes %]</p>[% END %] > [% IF ( unlimited_total ) %]<p>Total number of rows matching the (unlimited) query is [% unlimited_total %].</p>[% END %] >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7646
:
8025
|
8106
|
8108
|
8109
|
8273
|
37779
|
37790
|
37926
|
37945
|
38043
|
41093