OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Any ojs journal with html full text + images?

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.

Any ojs journal with html full text + images?

Postby msaghaei » Thu Jul 20, 2006 1:26 am

Dear OJS support team

I searched some of OJS Journals to find a journal with html full text which has also included images, I was unable to find a one. All had simple html (without images). I think there may be inadequate documentation on the preparation and uploading of html files and images in OJS. Also the posts about this topic seems relatively complicated. where can I find some simple guide to this and also the url of an ojs journal as an example.

Thanks,

Mahmood Saghaei
msaghaei
 
Posts: 119
Joined: Sun Jan 08, 2006 1:01 pm

Postby asmecher » Thu Jul 20, 2006 8:53 am

Hi Mahmood,

Here are a few notes that might help with this:
  • In the HTML code, the image tags should refer to files in the current directory, such as <img src="my_image.gif"/>.
  • The filename should also be quoted as above. (Most HTML creation packages will do this automatically.)
  • The image name is case-sensitive (e.g. my_image.gif is not the same as My_Image.gif), so be careful to make sure that it is correct.
  • In OJS, under Layout, upload each HTML image there.
This should be all that's required -- if you have any further questions, please post here.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

Postby kstranac » Thu Jul 20, 2006 9:16 am

Hi,

You can see an example of this in action in our demonstration journal:
http://pkp.sfu.ca/ojs/demo/present/inde ... /view/6/11

You'll find an image between the second and third paragraph.

We'll look into improving the documentation around this.

Kevin Stranack
PKP Support Team
kstranac
Site Admin
 
Posts: 74
Joined: Wed Sep 21, 2005 3:31 pm

Postby msaghaei » Thu Jul 20, 2006 9:26 am

Hi Alec

Thank you. It seems straightforward. Does it mean, first I should upload the images and keep record of the reproduced file names by the ojs system and then incorporate these names into the html file, or it is enought to refer to images by their names in my computer?

Regards,

Mahmood Saghaei
msaghaei
 
Posts: 119
Joined: Sun Jan 08, 2006 1:01 pm

Postby asmecher » Thu Jul 20, 2006 9:46 am

Hi Mahmood,

Use the original filenames from your local computer; OJS will take care of renaming them and changing their references in the HTML document.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

Postby msaghaei » Thu Jul 20, 2006 11:07 am

Dear Alec

Thank you for reply. During initial test of OJS 2.1.1.0 on localhost I encountered following problem regarding HTML images upload.

Images upload in 'Edit Galley: HTML Galley Files' does not work. I enabled the debug in config.inc.php and received this error:

Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/ojs/lib/adodb/adodb.inc.php:379) in /var/www/html/ojs/classes/template/TemplateManager.inc.php on line 187.

Server: localhost
OJS Version: 2.1.1.0
db: mysql 4.1.11
OS platform: Linux
PHP version: 5.0.4
Apache version: Apache/2.0.54 (Fedora)

Almost exactly the same error with OJS 2.1.0.1 on the same machine:
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/ojsold/ojs/lib/adodb/adodb.inc.php:379) in /var/www/html/ojsold/ojs/classes/template/TemplateManager.inc.php on line 179


Regards,

Mahmood Saghaei
msaghaei
 
Posts: 119
Joined: Sun Jan 08, 2006 1:01 pm

Postby asmecher » Thu Jul 20, 2006 11:39 am

Hi Mahmood,

That warning message by itself isn't a problem; it's caused by the debugging information and is harmless. When you say that the image upload isn't working, how do you mean? Have you double-checked that the public directory (and all of its contents) is writeable by the web server?

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

Postby msaghaei » Thu Jul 20, 2006 1:16 pm

Hi ALec

By not working I mean that after browsing for an image and clicking the upload, the screen refresshes and nothing happen. The Images table remains empty. I double checked the public directory it (and all of its contents) is writable by the world.

Regards,

Mahmood Saghaei
msaghaei
 
Posts: 119
Joined: Sun Jan 08, 2006 1:01 pm

Postby asmecher » Thu Jul 20, 2006 1:32 pm

Hi Mahmood,

This is probably an indication that OJS is having trouble identifying what type of file the image is; in this case, OJS should be reporting an error message. (I've created a Bugzilla entry for this. See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2341.)

Check to see that PHP's mime_content_type function is properly configured. See http://ca3.php.net/manual/en/function.mime-content-type.php for information on this. In particular, make sure that the directives mentioned in php.ini at the above URL are properly configured.

Regards,
Alec Smecher
Open Journal Systems Team
Last edited by asmecher on Wed Dec 13, 2006 12:16 pm, edited 1 time in total.
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

Postby msaghaei » Sat Jul 22, 2006 7:12 am

Hi Alec

Thank you very much for your help. The only thing that my php.ini needed was a
mime_magic.debug = On
and a system restart.
I tested the html function, really its great and I can not beleave it is so easy.

Regards,
Mahmood Saghaei
msaghaei
 
Posts: 119
Joined: Sun Jan 08, 2006 1:01 pm

batch upload galley images via ftp

Postby soj » Mon Nov 06, 2006 10:23 am

If I have a large pile of images for an article (namely equation gifs) can I upload via FTP, so that the system still be able to ultilize the images?

TIA!

soj
http://www.ejssm.org
http://www.insojourn.com
soj
 
Posts: 151
Joined: Fri Oct 28, 2005 1:53 pm
Location: Norman OK USA

Postby asmecher » Mon Nov 06, 2006 2:02 pm

Hi Soj,

If you FTP images into the journal's public files directory (typically in public/1 for journal ID 1), you can use image tags like the following in your HTML galleys:
Code: Select all
<img src="ojs://public/filename_here.gif"/>
OJS will rewrite these into the journal's public files directory.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

HTML galley proof

Postby soj » Tue Nov 07, 2006 10:03 am

Thanks! Should the images be displayed in the HTML Galley proof? Mine are not attm. I uploaded via the Layout Editior page. The orgininalHTML Galley called images with an image file path of "image.gif." (html file and images in the same folder) Images render fine once published, btw.

TIA - soj
soj
 
Posts: 151
Joined: Fri Oct 28, 2005 1:53 pm
Location: Norman OK USA

Postby asmecher » Thu Nov 09, 2006 4:01 am

Hi Soj,

Yes, they should be displayed there too. What are the URLs being rewritten to in the Proof Galley page?

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

Postby Cornelius » Thu Dec 21, 2006 7:57 am

Hello everybody,

I'm also trying to upload images with an HTML version - so far to no avail. A few questions:

"In OJS, under Layout, upload each HTML image there."

As Layout Version, Galley or Supp. files? I'm assuming as supp. files, but it doesn't say so anywhere, at least as far as I can see.

"If you FTP images into the journal's public files directory (typically in public/1 for journal ID 1), you can use image tags like the following...."

I went for that approach first, not via FTP but through
Home > Journal Management > Files Browser

I didn't find a public dir for the journal, though things probably look different when looking at the actualy directory structure through FTP. Next I uploaded the images to /articles/14/public (same dir the HTML resides in) assuming a normal <img src="image.png" /> would work... sadly it didn't.

Any thoughts?
Cornelius
 
Posts: 12
Joined: Thu Dec 21, 2006 6:37 am

Next

Return to OJS Technical Support

Who is online

Users browsing this forum: dagoski, Google [Bot] and 3 guests