OJS OCS OMP OHS

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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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">
<html>
<head>


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.
rrho
 
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.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8413
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 4 guests