Bugzilla – Attachment 37517 Details for
Bug 11574
Clean up printing of lists in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11574 - Clean up Printing Lists
PASSED-QA-Bug-11574---Clean-up-Printing-Lists.patch (text/plain), 12.79 KB, created by
Katrin Fischer
on 2015-04-05 23:01:07 UTC
(
hide
)
Description:
[PASSED QA] Bug 11574 - Clean up Printing Lists
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-04-05 23:01:07 UTC
Size:
12.79 KB
patch
obsolete
>From 8116359f1c20a1c7b551c6c5bff87300372aedf0 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Sat, 4 Apr 2015 16:43:40 -0400 >Subject: [PATCH] [PASSED QA] Bug 11574 - Clean up Printing Lists >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Removes extraneous stuff from prints - toolbars, breadcrumbs, etc. > >To test: > >1. make a list >2. print it to a file (from OPAC), observe wasted paper >3. apply patch >4. print list, compare >5. if you like it, sign off. ;) > >Patch cleans up OPAC list printing as expected. > >Signed-off-by: Marc Véron <veron@veron.ch> > >NOTE: Made functional again. Turns out my issues were a result of > cached CSS pages. Tested in IE and Firefox successfully. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/css/print.css | 234 +------------------------ > koha-tmpl/opac-tmpl/bootstrap/less/print.less | 240 ++++++++++++++++++++++++++ > 2 files changed, 241 insertions(+), 233 deletions(-) > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/less/print.less > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/print.css b/koha-tmpl/opac-tmpl/bootstrap/css/print.css >index bd2c6fb..5d9b744 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/print.css >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/print.css >@@ -1,233 +1 @@ >-.noprint { >- display : none; >-} >- >-a:link { >- color : #000066; >- text-decoration: none; >-} >- >-a:visited { >- color : #000066; >- text-decoration: none; >-} >- >-a:hover { >- color : #993300; >- text-decoration: none; >-} >- >-a[href]:after { display:none; } >- >-body { >- background-color : #FFF; >- color : #333333; >- font-family : arial, geneva, sans-serif; >- font-size : 14px; >- margin : 0px 0px 0px 0px; >- word-wrap : break-word; >-} >- >-caption { >- color : #000066; >- font-size : 18px; >- font-weight : bold; >- margin-top : 5px; >- text-align : left; >-} >- >-div.table { >- width : 100%; >-} >- >-form { >- margin : 0px; >- padding : 0px; >-} >- >-h1 >- { >- color : #000066; >- font-size : 22px; >- font-weight : bold; >- margin-bottom : 3px; >- margin-top : 3px; >-} >- >-h2 { >- color : #000066; >- font-size : 20px; >- font-weight : bold; >- margin-bottom : 3px; >- margin-top : 3px; >-} >- >-h3 { >- color : #000066; >- font-size : 18px; >- font-weight : bold; >- margin-bottom : 3px; >- margin-top : 3px; >-} >- >-h4 { >- color : #000066; >- font-size : 16px; >- font-weight : bold; >- margin-bottom : 3px; >- margin-top : 3px; >-} >- >-h5 { >- color : #000066; >- font-size : 15px; >- font-weight : bold; >- margin-bottom : 1px; >- margin-top : 1px; >-} >- >-h6 { >- color : #000066; >- font-size : 14px; >- font-weight : bold; >- margin-bottom : 1px; >- margin-top : 1px; >-} >- >-p { >- margin-top : 0px; >-} >- >-table { >- background-color : #FFFFFF; >- border-bottom : 0px solid #CCCCCC; >- border-collapse : collapse; >- border-left : 0px solid #CCCCCC; >- margin : 3px 0px 5px 0px; >- padding : 0px; >- width : 99%; >-} >- >-td { >- background-color : #FFF; >- border-bottom : 1px solid #CCCCCC; >- border-right : 1px solid #CCCCCC; >- padding : 5px 5px 5px 5px; >- vertical-align : top; >-} >- >-td:last-child { >- background-color : #FFF; >- border-bottom : 1px solid #CCCCCC; >- border-right : 0px solid #CCCCCC; >- padding : 5px 5px 5px 5px; >- vertical-align : top; >-} >- >-th { >- background-color : #E9E9E9; >- border-bottom : 1px solid #CCCCCC; >- border-right : 1px solid #CCCCCC; >- font-weight : bold; >- padding : 5px 5px 5px 5px; >-} >- >-th:last-child { >- background-color : #E9E9E9; >- border-bottom : 1px solid #CCCCCC; >- border-right : 0px solid #CCCCCC; >- font-weight : bold; >- padding : 5px 5px 5px 5px; >-} >- >-tr.highlight { >- background-color: #e9e9e9; >-} >- >-body#basket tr.highlight { >- background-color : transparent; >-} >- >-body#basket a { >- font-weight : bold; >-} >- >-body#basket table { >- border-top : 1px solid #EEE; >- border-left : 1px solid #EEE; >-} >-body#basket td, >-body#basket th { >- background-color : transparent; >- padding : 2px; >-} >- >-body#basket th { >- background-color : #EEE; >-} >- >-body#basket th, >-body#basket th[scope=col] { >- text-align : center; >- vertical-align : middle; >-} >- >-body#basket th[scope=row] { >- font-size : 89%; >- text-align : right; >- vertical-align : top; >- width : 10%; >-} >- >-body#basket p { >- font-size : 85%; >- margin : .2em 0; >- text-indent : .5em; >-} >- >-.error { >- font-weight: bold; >-} >- >-.ex { >- font-family : "Courier New", Courier, monospace; >-} >-.inline { >- display : inline; >-} >- >-.screen { >- display : none; >-} >- >-#bookcover { >- float:left; >- margin:0pt; >- padding:0pt; >-} >- >-#members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action, .list-actions, .ft, #facetcontainer,.results_summary.actions,.koha_url,.yui-b { >- display : none; >-} >- >-#userresults { >- position : absolute; >- right : 0px; >- word-wrap : break-word; >- display : block; >-} >- >-div#userupdate input,div#userupdate textarea { >- display : inline; >- border : 0; >-} >- >-#yui-main, >-#yui-main .yui-b, >-.yui-t1 #yui-main .yui-b { >- display : block !important; >- margin : 0 !important; >- padding : 0 !important; >- width : auto !important; >- float : none !important; >-} >+.noprint{display:none}a:link{color:#006;text-decoration:none}a:visited{color:#006;text-decoration:none}a:hover{color:#930;text-decoration:none}a[href]:after{display:none}body{background-color:#fff;color:#333;font-family:arial,geneva,sans-serif;font-size:14px;margin:0 0 0 0;word-wrap:break-word}caption{color:#006;font-size:18px;font-weight:bold;margin-top:5px;text-align:left}div.table{width:100%}form{margin:0;padding:0}h1{color:#006;font-size:22px;font-weight:bold;margin-bottom:3px;margin-top:3px}h2{color:#006;font-size:20px;font-weight:bold;margin-bottom:3px;margin-top:3px}h3{color:#006;font-size:18px;font-weight:bold;margin-bottom:3px;margin-top:3px}h4{color:#006;font-size:16px;font-weight:bold;margin-bottom:3px;margin-top:3px}h5{color:#006;font-size:15px;font-weight:bold;margin-bottom:1px;margin-top:1px}h6{color:#006;font-size:14px;font-weight:bold;margin-bottom:1px;margin-top:1px}p{margin-top:0}table{background-color:#fff;border-bottom:0 solid #ccc;border-collapse:collapse;border-left:0 solid #ccc;margin:3px 0 5px 0;padding:0;width:99%}td{background-color:#fff;border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:5px 5px 5px 5px;vertical-align:top}td:last-child{background-color:#fff;border-bottom:1px solid #ccc;border-right:0 solid #ccc;padding:5px 5px 5px 5px;vertical-align:top}th{background-color:#e9e9e9;border-bottom:1px solid #ccc;border-right:1px solid #ccc;font-weight:bold;padding:5px 5px 5px 5px}th:last-child{background-color:#e9e9e9;border-bottom:1px solid #ccc;border-right:0 solid #ccc;font-weight:bold;padding:5px 5px 5px 5px}tr.highlight{background-color:#e9e9e9}body#basket tr.highlight{background-color:transparent}body#basket a{font-weight:bold}body#basket table{border-top:1px solid #eee;border-left:1px solid #eee}body#basket td,body#basket th{background-color:transparent;padding:2px}body#basket th{background-color:#eee}body#basket th,body#basket th[scope=col]{text-align:center;vertical-align:middle}body#basket th[scope=row]{font-size:89%;text-align:right;vertical-align:top;width:10%}body#basket p{font-size:85%;margin:.2em 0;text-indent:.5em}.error{font-weight:bold}.ex{font-family:"Courier New",Courier,monospace}.inline{display:inline}.screen{display:none}#bookcover{float:left;margin:0;padding:0}#members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action,.list-actions,.ft,#facetcontainer,.results_summary.actions,.koha_url,.yui-b{display:none}#userresults{position:absolute;right:0;word-wrap:break-word;display:block}div#userupdate input,div#userupdate textarea{display:inline;border:0}#yui-main,#yui-main .yui-b,.yui-t1 #yui-main .yui-b{display:block !important;margin:0 !important;padding:0 !important;width:auto !important;float:none !important}.navbar,#navigation,.pages,.actions,#toolbar,#selections-toolbar,#remove-selected,.breadcrumb,#members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action,.list-actions,.ft,#facetcontainer,.results_summary.actions,.koha_url,.yui-b{display:none}.row-fluid{margin-top:30px} >\ No newline at end of file >diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/print.less b/koha-tmpl/opac-tmpl/bootstrap/less/print.less >new file mode 100644 >index 0000000..d6ff894 >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/bootstrap/less/print.less >@@ -0,0 +1,240 @@ >+.noprint { >+ display : none; >+} >+ >+a:link { >+ color : #000066; >+ text-decoration: none; >+} >+ >+a:visited { >+ color : #000066; >+ text-decoration: none; >+} >+ >+a:hover { >+ color : #993300; >+ text-decoration: none; >+} >+ >+a[href]:after { display:none; } >+ >+body { >+ background-color : #FFF; >+ color : #333333; >+ font-family : arial, geneva, sans-serif; >+ font-size : 14px; >+ margin : 0px 0px 0px 0px; >+ word-wrap : break-word; >+} >+ >+caption { >+ color : #000066; >+ font-size : 18px; >+ font-weight : bold; >+ margin-top : 5px; >+ text-align : left; >+} >+ >+div.table { >+ width : 100%; >+} >+ >+form { >+ margin : 0px; >+ padding : 0px; >+} >+ >+h1 >+ { >+ color : #000066; >+ font-size : 22px; >+ font-weight : bold; >+ margin-bottom : 3px; >+ margin-top : 3px; >+} >+ >+h2 { >+ color : #000066; >+ font-size : 20px; >+ font-weight : bold; >+ margin-bottom : 3px; >+ margin-top : 3px; >+} >+ >+h3 { >+ color : #000066; >+ font-size : 18px; >+ font-weight : bold; >+ margin-bottom : 3px; >+ margin-top : 3px; >+} >+ >+h4 { >+ color : #000066; >+ font-size : 16px; >+ font-weight : bold; >+ margin-bottom : 3px; >+ margin-top : 3px; >+} >+ >+h5 { >+ color : #000066; >+ font-size : 15px; >+ font-weight : bold; >+ margin-bottom : 1px; >+ margin-top : 1px; >+} >+ >+h6 { >+ color : #000066; >+ font-size : 14px; >+ font-weight : bold; >+ margin-bottom : 1px; >+ margin-top : 1px; >+} >+ >+p { >+ margin-top : 0px; >+} >+ >+table { >+ background-color : #FFFFFF; >+ border-bottom : 0px solid #CCCCCC; >+ border-collapse : collapse; >+ border-left : 0px solid #CCCCCC; >+ margin : 3px 0px 5px 0px; >+ padding : 0px; >+ width : 99%; >+} >+ >+td { >+ background-color : #FFF; >+ border-bottom : 1px solid #CCCCCC; >+ border-right : 1px solid #CCCCCC; >+ padding : 5px 5px 5px 5px; >+ vertical-align : top; >+} >+ >+td:last-child { >+ background-color : #FFF; >+ border-bottom : 1px solid #CCCCCC; >+ border-right : 0px solid #CCCCCC; >+ padding : 5px 5px 5px 5px; >+ vertical-align : top; >+} >+ >+th { >+ background-color : #E9E9E9; >+ border-bottom : 1px solid #CCCCCC; >+ border-right : 1px solid #CCCCCC; >+ font-weight : bold; >+ padding : 5px 5px 5px 5px; >+} >+ >+th:last-child { >+ background-color : #E9E9E9; >+ border-bottom : 1px solid #CCCCCC; >+ border-right : 0px solid #CCCCCC; >+ font-weight : bold; >+ padding : 5px 5px 5px 5px; >+} >+ >+tr.highlight { >+ background-color: #e9e9e9; >+} >+ >+body#basket tr.highlight { >+ background-color : transparent; >+} >+ >+body#basket a { >+ font-weight : bold; >+} >+ >+body#basket table { >+ border-top : 1px solid #EEE; >+ border-left : 1px solid #EEE; >+} >+body#basket td, >+body#basket th { >+ background-color : transparent; >+ padding : 2px; >+} >+ >+body#basket th { >+ background-color : #EEE; >+} >+ >+body#basket th, >+body#basket th[scope=col] { >+ text-align : center; >+ vertical-align : middle; >+} >+ >+body#basket th[scope=row] { >+ font-size : 89%; >+ text-align : right; >+ vertical-align : top; >+ width : 10%; >+} >+ >+body#basket p { >+ font-size : 85%; >+ margin : .2em 0; >+ text-indent : .5em; >+} >+ >+.error { >+ font-weight: bold; >+} >+ >+.ex { >+ font-family : "Courier New", Courier, monospace; >+} >+.inline { >+ display : inline; >+} >+ >+.screen { >+ display : none; >+} >+ >+#bookcover { >+ float:left; >+ margin:0pt; >+ padding:0pt; >+} >+ >+#members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action, .list-actions, .ft, #facetcontainer,.results_summary.actions,.koha_url,.yui-b { >+ display : none; >+} >+ >+#userresults { >+ position : absolute; >+ right : 0px; >+ word-wrap : break-word; >+ display : block; >+} >+ >+div#userupdate input,div#userupdate textarea { >+ display : inline; >+ border : 0; >+} >+ >+#yui-main, >+#yui-main .yui-b, >+.yui-t1 #yui-main .yui-b { >+ display : block !important; >+ margin : 0 !important; >+ padding : 0 !important; >+ width : auto !important; >+ float : none !important; >+} >+ >+.navbar, #navigation, .pages, .actions, #toolbar, #selections-toolbar, #remove-selected, .breadcrumb, #members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action, .list-actions, .ft, #facetcontainer,.results_summary.actions,.koha_url,.yui-b { >+ display : none; >+} >+.row-fluid { >+ margin-top: 30px; >+} >-- >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 11574
:
24474
|
24482
|
24483
|
25044
|
25883
|
37499
| 37517