OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Galley file label not recognized (DOCX)

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

Moderators: jmacgreg, michael, John

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.

Galley file label not recognized (DOCX)

Postby ramon » Fri Nov 18, 2011 5:52 am

Hello all,

Although it shouldn't be used as a publishing format, a conference I helped implement OCS for has some DOCX files as galleys.
However, the label is not being recognized as DOCX, adding the "Untitled" label instead.
I asked the support to check the mime_type configurations and they said everything was according to Debian setup.

Searching for the mime_types, I found that there is Operating System mime file configuration and an Apache mime file configuration.
Which one should be configured correctly to fix this problem? Or OJS does not support DOCX as galley labels (unlikely, but it doesn't hurt to ask...)?
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: Galley file label not recognized (DOCX)

Postby JasonNugent » Sun Nov 20, 2011 1:13 pm

Hey Ramon,

Looking through the code, it seems as though you get labels for HTML galleys, PDF, Postscript, XML, Audio, and Slideshow (for powerpoint). These labels are set in PaperGalleyForm.inc.php by looking at the uploaded file type returned by PaperFileManager (which subclasses FileManager). If none of these labels apply, the "Untitled" label is used for the galley display.

Michael has done a lot of work on this, and some of these patches may be useful.

http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6876

Let us know how that works out.

Cheers,
Jason
JasonNugent
Site Admin
 
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest