pkp / pkp-lib

The library used by PKP's applications OJS, OMP and OPS, open source software for scholarly publishing.
https://pkp.sfu.ca
GNU General Public License v3.0
297 stars 442 forks source link

Multijournal. If i load custom CSS stylesheet, this CSS is loaded in another journals #6436

Open gurumelo opened 3 years ago

gurumelo commented 3 years ago

Describe the bug OJS 3.2.1-2 Multijournal. If i load custom CSS stylesheet, this CSS is loaded in another journals

To Reproduce Multijournal:

This CSS is loaded on Journal 1 and Journal 2. It rewrites styles.

Thanks.

Vitaliy-1 commented 3 years ago

Hi @gurumelo,

I've transferred the issue, as it looks like not specific to the Health Sciences theme. Hmm, I would expect such behavior, I mean apply Site level CSS to all journals on the OJS instance. @NateWr, am I mistaken when thinking that this behavior is implemented deliberately? Also, I think there was a similar topic but can't find any.

NateWr commented 3 years ago

I recall a discussion about this. I agree that it's not intuitive, but it is the way it has worked for such a long time and has become a part of some people's workarounds.

For example, some institutional hosts will have a custom footer on all of their journals, and use the site-wide stylesheet to style it. So they expect the site-wide CSS file to work across all sites.

I'm on the fence about whether to change this or not. A workaround can be done by making a small child theme of the Health Sciences theme that load the stylesheet. That approach would only load the stylesheet at the site level.