You are viewing the PKP Support Forum | PKP Home Wiki

Figures in html galleys

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

Figures in html galleys

Postby lednakashim » Tue Jan 11, 2011 3:00 pm

This is a best practices inquiry.

How does your journal insert images into html galleys?

The way I am currently doing it is manually making a separate folder via ftp that containes images and linking to that folder in html via <img src="folder/issue/article/image/"> />. Is there some more elegant solution that uses come content management features that I am not aware of?
Posts: 33
Joined: Wed Dec 29, 2010 10:23 pm

Re: Figures in html galleys

Postby jmacgreg » Fri Jan 14, 2011 11:15 am

Hi lednakashim,

There are a few different ways you can upload images with an HTML galley. If your galleys include a large number of images, then creating a separate directory and FTPing them as you have been doing might be the most efficient way to go. You can also upload images during the HTML galley upload process -- after you upload an HTML galley, you are presented with an HTML Galley Edit page, which includes an image upload section. Images uploaded here can be linked to by the following tag:

<img src="uploadedImage.jpg" alt="...." />

... so you don't have to specify a directory.

You can also use the Articles XML Import/Export plugin to upload large amounts of content, including images. More information on this plugin (and others) can be found here: http://pkp.sfu.ca/wiki/index.php/Import ... rting_Data.

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Figures in html galleys

Postby paul » Thu May 23, 2013 12:52 pm

I tried uploading two images to HTML galley. The first image was successfully uploaded but the second one got an error message:

DB Error: Duplicate entry '566' for key 'article_html_galley_images_pkey'

Any fix?

Posts: 97
Joined: Thu Dec 06, 2007 9:58 pm

Re: Figures in html galleys

Postby paul » Thu May 23, 2013 1:09 pm

I changed the article_html_galley_images_pkey from unique to index. It seems working. Not sure if this will have other consequence. This is the first time I am testing the HTML version of article. Please advise. Thanks.
Posts: 97
Joined: Thu Dec 06, 2007 9:58 pm

Re: Figures in html galleys

Postby asmecher » Thu May 23, 2013 3:30 pm

Hi Paul,

That database error seems to imply that there is/was a single-column unique index, which shouldn't be the case; see dbscripts/xml/ojs_schema.xml for the proper definition of that index (which should contain two columns).

Alec Smecher
Public Knowledge Project Team
Posts: 9901
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 2 guests