You are viewing the PKP Support Forum | PKP Home Wiki

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 http://forum.pkp.sfu.ca

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.

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. http://pkp.sfu.ca/ojs/demo/present/index.php/demojournal/article/view/6/11:

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: 3
Joined: Tue Nov 14, 2006 8:12 am
Location: Berlin, Germany

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/ArticleGalleyForm.inc.php 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
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 3 guests