Hey Andy We added our own stylesheet in overlays of header-default.jsp and header-submission.jsp. That way it should effect all DSpace pages ever rendered. Of course, you can change/overlay an existing stylesheet, but for future updates and changes it is easier to maintain the local changes in a separate file.
Regards Eike -- ZHAW Zürcher Hochschule für Angewandte Wissenschaften Hochschulbibliothek Eike Kleiner Turbinenstrasse 2 Postfach CH-8401 Winterthur Tel: +41 58 934 4959 / Fax: +41 58 935 4959 [email protected]<https://mail.zhaw.ch/owa/redir.aspx?SURL=az91YNvBeNBl3GoukXdHksPOuXYou2aBaqBkI7pquyuC_-9G_SDTCG0AYQBpAGwAdABvADoAZQBpAGsAZQAuAGsAbABlAGkAbgBlAHIAQAB6AGgAYQB3AC4AYwBoAA..&URL=mailto%3aeike.kleiner%40zhaw.ch> / www.zhaw.ch/library<https://mail.zhaw.ch/owa/redir.aspx?SURL=x7Ejhhy-74lVatdvCfxOiEmzUG7jjnSO_x1bVR6JseGC_-9G_SDTCGgAdAB0AHAAOgAvAC8AdwB3AHcALgB6AGgAYQB3AC4AYwBoAC8AbABpAGIAcgBhAHIAeQA.&URL=http%3a%2f%2fwww.zhaw.ch%2flibrary> Von: [email protected] [mailto:[email protected]] Im Auftrag von Andy Gesendet: Dienstag, 19. September 2017 17:26 An: DSpace Technical Support <[email protected]> Betreff: Re: [dspace-tech] Break (carriage return) in Metadata Field - DSpace 6.x Thank you very much, Eike. This was very helpful. I altered utils.js. Where did you put your .css style sheet? Did you have to reference it in display-item.jsp? Thanks, Andy On Tuesday, September 19, 2017 at 9:18:18 AM UTC-4, eike.kleiner wrote: Hey Andy I assume you use JSPUI. Try this syntax to display line breaks within the dc.description.abstract field. .metadataFieldValue.dc_description_abstract { white-space: pre-line; } You can look up an example here: https://digitalcollection.zhaw.ch/handle/11475/1322 Our CSS: https://digitalcollection.zhaw.ch/static/css/zhaw/zhaw.css During ingest the function disableEnterKey(e) in util.js disables the enter key. You can disable this function by simply returning true: https://digitalcollection.zhaw.ch/utils.js We have this in production quite a while and it works fine but you should test the side effects of its deactivation in your setting. Hope this helps Eike -- ZHAW Zürcher Hochschule für Angewandte Wissenschaften Hochschulbibliothek Eike Kleiner Turbinenstrasse 2 Postfach CH-8401 Winterthur Tel: +41 58 934 4959 / Fax: +41 58 935 4959 [email protected]<https://mail.zhaw.ch/owa/redir.aspx?SURL=az91YNvBeNBl3GoukXdHksPOuXYou2aBaqBkI7pquyuC_-9G_SDTCG0AYQBpAGwAdABvADoAZQBpAGsAZQAuAGsAbABlAGkAbgBlAHIAQAB6AGgAYQB3AC4AYwBoAA..&URL=mailto%3aeike.kleiner%40zhaw.ch> / www.zhaw.ch/library<https://mail.zhaw.ch/owa/redir.aspx?SURL=x7Ejhhy-74lVatdvCfxOiEmzUG7jjnSO_x1bVR6JseGC_-9G_SDTCGgAdAB0AHAAOgAvAC8AdwB3AHcALgB6AGgAYQB3AC4AYwBoAC8AbABpAGIAcgBhAHIAeQA.&URL=http%3a%2f%2fwww.zhaw.ch%2flibrary> Von: [email protected]<javascript:> [mailto:[email protected]<javascript:>] Im Auftrag von Andy Gesendet: Dienstag, 19. September 2017 15:04 An: DSpace Technical Support <[email protected]<javascript:>> Betreff: [dspace-tech] Break (carriage return) in Metadata Field - DSpace 6.x Hello; We use DSpace 6.0. Is there a way to make a break or return in the metadata in the dc.description field? I tried using 'white space:pre-line;' in styles.css under .metadataFieldValue and then using .metadataFieldValue.dc.description but, neither worked. I see in documentation that there might be class files for the different metadata fields. Where are they located? I also saw mention of a styles.css.jsp but, can't find that file either. Thank you for your help. Andy -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<javascript:>. To post to this group, send email to [email protected]<javascript:>. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
