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.
Created attachment 5519 [details] sample records with original script for testing
Created attachment 5520 [details] [review] 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.
Created attachment 5521 [details] [review] 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)
Created attachment 5522 [details] [review] 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)
Created attachment 5523 [details] [review] [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>
Cleanly and consistently applies CSS class matching label name. XSLT and CSS only change, so marking as Passed QA
Pushed, please test