From 21d05006c0f9cf6456fbf3d92c6a52378381f554 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Sat, 31 Jan 2015 18:41:08 +0200 Subject: [PATCH] Bug 12399 - opaccredits printing at top on printable version This patch introduces a new class "noprint" in koha-tmpl/opac-tmpl/bootstrap/css/print.css With this class, unwanted elements can be hidden when printing. To test: In OPAC, do a search with many results (> 1 Page) Print page or do a print preview See that footer elements are not displayed correctly (as of screenshot in comment #1) and that on top of page 2 the language selector overlays the list Apply patch Repeat steps above. Verify that printed page looks much nicer now by hiding unwanted elements (including e.g. RSS icon, toolbar etc.) This mechanism can be used on other pages as well. Signed-off-by: Brendan Gallagher Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/css/print.css | 4 ++++ koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- .../opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 6 +++--- .../opac-tmpl/bootstrap/en/includes/page-numbers.inc | 4 ++-- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 10 +++++----- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/print.css b/koha-tmpl/opac-tmpl/bootstrap/css/print.css index a1034f129b..bd2c6fb5e0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/print.css +++ b/koha-tmpl/opac-tmpl/bootstrap/css/print.css @@ -1,3 +1,7 @@ +.noprint { + display : none; +} + a:link { color : #000066; text-decoration: none; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 904c232a41..f38572735c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -1,6 +1,6 @@ [% USE Koha %]
-
+