From 9263b59758c58a9971cb790ed14a574c3ccde752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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: Brendan Gallagher --- koha-tmpl/opac-tmpl/bootstrap/css/print.css | 4 ++++ koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 6 +++--- koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc | 4 ++-- koha-tmpl/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 a1034f1..bd2c6fb 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 904c232..f385727 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 %]
-
+