I was hoping to clarify the HTML galleys that are uploaded in OJS 3. In OJS 2.x, HTML galleys were displayed within the larger OJS theme, and included the matching header/footer/sidebar/etc. In OJS 3 (this is a dev migration to 3.0.2), it looks like HTML galleys that are uploaded are rendered as-is.
Is this the expected behaviour in OJS 3.x? And are there any plans to change this, or will this be the way HTML galley uploads will be handled now?
In OJS 2.x, we jammed the complete HTML document inside the existing OJS layout, leading to an article HTML structure that looked something likeâŠ
<html><!-- This part comes from OJS -->
<head>...</head>
<body>
<html><!-- This part comes from the HTML galley -->
<head>...</head>
<body>...</body>
</html>
</body>
</html>
Note the duplicated <html>, <head>, and <body> elements. This is illegal HTML, though browsers seem to accept and render it. The changed approach in OJS 3.x fixes this.
If youâd like to include the OJS layout in OJS 3.x HTML galleys, youâll need to include OJSâs CSS (or something OJS-like) in your HTML.
The other change with OJS 3.x is to dedicate more screen real estate to the content in both HTML and PDF views; the OJS 2.x galley layout was too inefficient with space.
Regards,
Alec Smecher
Public Knowledge Project Team
HI @asmecher,
no, we only use the available ojs plugins (html galley, bootstrap3). We upload the html galleys together with the pdf galleys and publish the files as displayed. During the upload process the additional (unecessary) html tags are generated.
Normally OJS will show an HTML galley in an iframe, but yours is embedding the content directly in the page. Itâs pretty likely that youâre using a plugin to do this. Are you sure thatâs not the case?
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher,
sorry, I think I misunderstood your question referring to the plugin. We use the âhtml galleyâ plugin, but I thougth this is a generic plugin?
At the moment, those are unofficial changes and arenât wrapped up e.g. in a theme or plugin, so your mileage may vary. However, Iâve asked one of the developers whoâs working with it whether heâd be able to have a look and possibly package it up more portably.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi! I would support @akkuâs question. Are there any other suggestions on how to display HTML-galleys like here (within the journal layout) and not like here (in a separate window)
It seems in some cases the ârightâ layout may work just âout of the boxâ
I am planning an upgrade to OJS 3 and running into this as well. If we lose all our CSS, navbar, headers, sidebar, footer, etc like we had automatically from the OJS 2, how can we upgrade? Many articles have their own custom CSS files uploaded as well, along with our custom CSS for the website itself. It would be a nightmare to edit all our previous HTML files to include all this content at this point, let alone managing updates if/when we modify our themeâs CSS over time.