Bugzilla – Attachment 37990 Details for
Bug 10172
Some links and blocks could be hidden when printing a record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 10172: Hide some uneeded stuffs on printing a record
SIGNED-OFF-Bug-10172-Hide-some-uneeded-stuffs-on-p.patch (text/plain), 2.48 KB, created by
Nick Clemens (kidclamp)
on 2015-04-16 21:15:19 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 10172: Hide some uneeded stuffs on printing a record
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2015-04-16 21:15:19 UTC
Size:
2.48 KB
patch
obsolete
>From 4a67d14a167aed638ce05edf27773ca3a7e396e2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 15 Apr 2015 12:39:05 +0200 >Subject: [PATCH] [SIGNED OFF] 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 <nick@quecheelibrary.org> >--- > 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( > "<a href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image'>", > "</a>"); >- no_images_msg += "<p>" + please_upload + '</p>'; >+ no_images_msg += "<p id='upload_image'>" + please_upload + '</p>'; > [% 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
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 10172
:
37899
|
37990
|
38231
|
39507