Format of HTML galleys

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 3
Joined: Tue Nov 14, 2006 8:12 am
Location: Berlin, Germany

Format of HTML galleys

Postby rrho » Wed Nov 15, 2006 6:35 am

As far as I can see, when importing HTML galleys, they will only be automatically recognised as such and included in the article page (instead of used as the article page) if they are a complete HTML file.

This does, however, produce invalid XHTML code, since it produces a second instance of <html> and <head> (and so on) in the code, as in the demonstration journal, e.g.

Code: Select all

<div id="content">
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Is there any way I can get rid of this? I love having the journal header above (as in the example), but I also need valid code.

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Wed Nov 15, 2006 8:40 am

Hi rrho,

This is something we'll definitely be addressing in the future; in the meantime, I'd suggest relaxing the check that determines whether or not an uploaded galley is HTML. You can find this in classes/submission/form/ at approx. line 141:

Code: Select all

$fileType = $articleFileManager->getUploadedFileType($fileName);
I'd suggest using a snippet of code to check the file extension instead.

Alec Smecher
Open Journal Systems Team

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests