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

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: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

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...)?

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

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

Let us know how that works out.


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests