From 50083316e5e97990f80f828b64d8a99244da6732 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 15 Apr 2015 12:39:05 +0200 Subject: [PATCH] [PASSED QA] Bug 10172: Hide some uneeded stuffs on printing a record When printing a record from the OPAC or the staff interface, some uneeded blocks are displayed. OPAC: 1/ Browse results 2/ The view tags (Normal, MARC, ISBD) Intranet: 1/ Marc view link 2/ The Please upload one image link Test plan: On a record detail page (staff and OPAC), print the page and confirm these blocks no longer appear. Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/css/print.css | 8 +++++++- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/css/print.css | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/print.css b/koha-tmpl/intranet-tmpl/prog/en/css/print.css index 239059c..c71c62b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/print.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/print.css @@ -322,4 +322,10 @@ fieldset { } #cataloguing_additem_itemlist { overflow : visible !important; -} \ No newline at end of file +} + +#catalogue_detail_marc_preview, +p#upload_image +{ + display: none; +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index a392e1a..7fa0dcc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -86,7 +86,7 @@ function verify_images() { var please_upload = _("Please %supload%s one.").format( "", ""); - no_images_msg += "

" + please_upload + '

'; + no_images_msg += "

" + please_upload + '

'; [% END %] $('#images').html(no_images_msg); diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/print.css b/koha-tmpl/opac-tmpl/bootstrap/css/print.css index bd2c6fb..be622a6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/print.css +++ b/koha-tmpl/opac-tmpl/bootstrap/css/print.css @@ -231,3 +231,8 @@ div#userupdate input,div#userupdate textarea { width : auto !important; float : none !important; } + +#views, +#ulactioncontainer { + display: none; +} -- 1.9.1