Some libraries would like to be able to hide relator codes when displaying authorities in the OPAC and staff client. Adding a <span> with class "relatorcode" would allow this text to be hidden via CSS.
Sorry, bibliographic records, not authorities.
Created attachment 13778 [details] [review] Bug 9169 - Wrap relator code in <span> to allow for CSS customization This patch adds <span class="relatorcode"> around the display of relator codes in the OPAC and the staff client, and adds a space before the bracket (" [relatorcode]") for readability. To test, add custom CSS to OPACUserCSS and IntranetUserCSS and view a record which includes relator code data. Suggested: .relatorcode { background-color: rgb(230, 240, 242); border-radius: 3px 3px 3px 3px; color: rgb(51, 51, 51); display: inline-block; font-size: 75%; font-weight: normal; margin-left: 0.4em; padding: 0.1em 0.4em; }
Created attachment 13943 [details] [review] [SIGNED-OFF] Bug 9169 - Wrap relator code in <span> to allow for CSS customization This patch adds <span class="relatorcode"> around the display of relator codes in the OPAC and the staff client, and adds a space before the bracket (" [relatorcode]") for readability. To test, add custom CSS to OPACUserCSS and IntranetUserCSS and view a record which includes relator code data. Suggested: .relatorcode { background-color: rgb(230, 240, 242); border-radius: 3px 3px 3px 3px; color: rgb(51, 51, 51); display: inline-block; font-size: 75%; font-weight: normal; margin-left: 0.4em; padding: 0.1em 0.4em; } Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
QA comment * tiny patch, touches XSLT only, no side effect risk * passes koha-qa.pl passed QA (QUESTION TO MAGNUS : don't you need the same patch for NORMARC ?)
Created attachment 14241 [details] [review] Bug 9169 - Wrap relator code in <span> to allow for CSS customization This patch adds <span class="relatorcode"> around the display of relator codes in the OPAC and the staff client, and adds a space before the bracket (" [relatorcode]") for readability. To test, add custom CSS to OPACUserCSS and IntranetUserCSS and view a record which includes relator code data. Suggested: .relatorcode { background-color: rgb(230, 240, 242); border-radius: 3px 3px 3px 3px; color: rgb(51, 51, 51); display: inline-block; font-size: 75%; font-weight: normal; margin-left: 0.4em; padding: 0.1em 0.4em; } Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This patch has been pushed to master.
Pushed to 3.10.x will be in 3.10.2
Pushed to 3.8.x, will be in 3.8.9
(In reply to comment #4) > (QUESTION TO MAGNUS : don't you need the same patch for NORMARC ?) No, it does not look like NORMARC uses relator codes. But thanks for thinking about us! :-)
I think a followup would be usefull for Unimarc. I will make a new bug for it. M. Saby