[Bug 6901] New: Add CSS classes/ids to OPAC and staff XSLT views
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Bug #: 6901 Summary: Add CSS classes/ids to OPAC and staff XSLT views Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Templates AssignedTo: katrin.fischer@bsz-bw.de ReportedBy: katrin.fischer@bsz-bw.de QAContact: koha-bugs@lists.koha-community.org At the moment it's hard to change the appearance of one specific field on the OPAC and staff detail pages. Another problem is, that you can't hide fields easily. Some libraries might want to the 'Show analytics' links, but it's not possible right now. I propose to add CSS classes and ids to both XSLT files so you can use CSS to hide and change things. For OPAC and staff differently named elements should be used, so you can change them separately. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> 2011-09-21 20:08:59 UTC --- Created attachment 5519 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5519 sample records with original script for testing -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> 2011-09-21 20:10:59 UTC --- Created attachment 5520 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5520 Bug 6901: Add classes to XSLT detail view in STAFF This patch adds css classes to the fields in XSLT staff and intranet view so you can use OpacUserCss and IntranetUserCss system preferences for formatting and hiding fields. The css classes are names like the labels with additional underscores where necessary. Example: publisher { display:none; } other_title { font-weight: bold; } Note: This patch also fixed display of additional authors in field 880 (original scripts like Hebrew). This was found as a side effect of testing, where the existence of an author in 880 would break the XSLT. Also moves some CSS from a style attribute into the CSS file for 880 fields. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> 2011-09-21 20:43:14 UTC --- Created attachment 5521 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5521 Bug 6901: Add classes to XSLT detail view in OPAC This patch adds css classes to the fields in XSLT OPAC view so you can use OpacUserCss system preference for formatting and hiding fields. The css classes are named like the labels with additional underscores where necessary. Example: .publisher { display:none; } .other_title { font-weight: bold; } Note: Patch also moves some hard-coded CSS from Utils into the CSS file (only apples for 880 fields) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 --- Comment #4 from Liz Rea <wizzyrea@gmail.com> 2011-09-21 20:47:43 UTC --- Created attachment 5522 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5522 Bug 6901: Add classes to XSLT detail view in STAFF This patch adds css classes to the fields in XSLT intranet views. Use OpacUserCss and IntranetUserCss system preferences for altering the styling of and hiding fields. The css classes are named like the labels with additional underscores where necessary. Example: .publisher { display:none; } .other_title { font-weight: bold; } Note: This patch also fixes the display of additional authors in field 880 (original scripts like Hebrew). This small additional problem was found as a side effect of testing, where the existence of an author in 880 would break the XSLT. Also moves some CSS from a style attribute into the CSS file for 880 fields. Signed-off-by: Liz Rea <lrea@nekls.org> -- minor commit message edits (requested by KF) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5521|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5521|1 |0 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5520|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 --- Comment #5 from Liz Rea <wizzyrea@gmail.com> 2011-09-21 21:10:44 UTC --- Created attachment 5523 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5523 [Signed Off] Bug 6901: Add classes to XSLT detail view in OPAC This patch adds css classes to the fields in XSLT OPAC view so you can use OpacUserCss system preference for formatting and hiding fields. The css classes are named like the labels with additional underscores where necessary. Example: .publisher { display:none; } .other_title { font-weight: bold; } Note: Patch also moves some hard-coded CSS from Utils into the CSS file (only apples for 880 fields) Signed-off-by: Liz Rea <lrea@nekls.org> -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5521|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent CC| |wizzyrea@gmail.com Patch Status|--- |Signed Off -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ian.walls@bywatersolutions. | |com Patch Status|Signed Off |Passed QA --- Comment #6 from Ian Walls <ian.walls@bywatersolutions.com> 2011-09-22 12:13:04 UTC --- Cleanly and consistently applies CSS class matching label name. XSLT and CSS only change, so marking as Passed QA -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz Patch Status|Passed QA |Patch Pushed --- Comment #7 from Chris Cormack <chris@bigballofwax.co.nz> 2011-09-24 07:50:41 UTC --- Pushed, please test -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6901 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org