supplementary files and 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
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.
Dragone
Posts: 45
Joined: Fri Apr 01, 2005 2:21 am
Location: Italy

supplementary files and images

Postby Dragone » Thu Mar 13, 2008 7:45 am

Hi to all
I have three questions about supplementary files and images
My ojs version is OJS 2.2

1. I have to add some supplementary files (mp3) to some html articles
- I have enabled the unique identifiers in setup 4.3
- I have uploaded my files in "supplementary files" (of an html article)
- I have written

Code: Select all

<a href="ojs://suppfile/(article id)/(file id)">xxxx</a>

in my html file
and all works
My question is: is there an easier way to link supplementary files to an html file?
I have a lot of supplemetary files and that way seems to me very intricate
Furthermore I have to invent the unique identifier because my journal doesn't use it

2. I have noticed that in the html files the code

Code: Select all

<a href="ojs://suppfile/(article id)/(file id)">xxxx</a>

was replated whith the absolute url http://myurl/xxx/(article id)/(file id)
But, if I change the url of my installation (because I change server, ecc)
the url in the html file will automatically change or not?

3. Where can I set up the available file format for the images in the galley?

Thanks in advance for your help
Daniela

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

Re: supplementary files and images

Postby jmacgreg » Thu Mar 13, 2008 12:15 pm

Hi Daniela,

We've been receiving multiple queries regarding uploading non-image-based media files with HTML galleys; in light of that, I've submitted a feature request, which you can view here:

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

No guarantee if or when this would be considered, but keep an eye on it just the same.

Regarding question 2: I believe the absolute URL is generated on the fly, and not changed in the HTML file you've uploaded; so, provided you have a similar setup on the other server, you shouldn't have a problem.

I'm not exactly sure what you mean by question 3: would you be able to expand further?

Thanks,
James

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

Re: supplementary files and images

Postby jmacgreg » Thu Mar 13, 2008 12:45 pm

Hi Gabriela,

There's also another way you can add images, detailed here in point 2:

viewtopic.php?f=8&t=1553&p=4739

Linking to files within OJS using "ojs://"-type linking isn't well-documented at the moment, but hopefully it will be soon.

Cheers,
James

Dragone
Posts: 45
Joined: Fri Apr 01, 2005 2:21 am
Location: Italy

Re: supplementary files and images

Postby Dragone » Wed Mar 19, 2008 3:18 am

Thanks for your help

so, untill the resolution of the bug http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3303

which is the best way to upload MP3 files to an html galley?

Another question:
When I upload a html galley I can upload images in the "Images" box. But, what type of images can be uploaded
(bmp, gif, jpg, ecc....)?
where can I set up the type of images can be uploaded in the galley?

Thanks again
Daniela

smiri
Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: supplementary files and images

Postby smiri » Wed Mar 19, 2008 4:41 pm

Hi Daniela,

I believe the allowed formats are: .gif, .jpg, or .png

I don't think you can change these formats unless you do quiet a bit of coding to change the code where it checks for these image types.

I will double check for you however to make sure.

Regards,

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: supplementary files and images

Postby asmecher » Thu Mar 20, 2008 8:18 am

Hi Daniela,

The best approach would probably be to upload these files as Supplementary Files -- using a particular format of URL in your HTML (e.g. ojs://suppfile/[articleId]/[suppFileId]), you can link to them without having to hard-code a particular URL. Custom identifiers for articles and supplementary files come in handy here as you won't know the database IDs in advance.

Regards,
Alec Smecher
Public Knowledge Project Team


Return to “OJS Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 1 guest