OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS2.2 Doesn't allow volume 0 any more

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.

OJS2.2 Doesn't allow volume 0 any more

Postby zharel » Sun Jan 13, 2008 3:17 am

Hi,

I had in 2007 a special introductory volume, which I labeled "Volume 0 (2007)". Now with the OJS upgrade, with the new localization of the Table of Contents, I wanted to enter a French title and description to this volume. It worked, however the value 0 of the volume number is not legal any more, and I was forced to label the volume "2007". Why is this change? Is there any way to override it?

Best,

Zvi.

--
Zvi Har’El
Founding Editor
Verniana—Jules Verne Studies/Étude Jules Verne
JV.Gilead.org.il/studies
ISSN 1565-8872
zharel
 
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel

Re: OJS2.2 Doesn't allow volume 0 any more

Postby zharel » Sun Jan 13, 2008 2:09 pm

I don't know if anybody other then me is interested in volume 0, but if there is, here is the patch:

Code: Select all
--- /usr/local/src/build/ojs-2.2/classes/issue/form/IssueForm.inc.php   2007-10-03 01:38:35.000000000 +0200
+++ /home/rl/www/JulesVerne/studies/classes/issue/form/IssueForm.inc.php   2008-01-13 22:25:41.000000000 +0200
@@ -62,7 +62,7 @@
     */
    function validate($issueId = 0) {
       if ($this->getData('showVolume')) {
-         $this->addCheck(new FormValidatorCustom($this, 'volume', 'required', 'editor.issues.volumeRequired', create_function('$volume', 'return ($volume > 0);')));
+         $this->addCheck(new FormValidatorCustom($this, 'volume', 'required', 'editor.issues.volumeRequired', create_function('$volume', 'return ($volume > -1);')));
       }
 
       if ($this->getData('showNumber')) {
zharel
 
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel

Re: OJS2.2 Doesn't allow volume 0 any more

Postby jmacgreg » Sun Jan 13, 2008 7:10 pm

Hi Zvi,

I think you can still assign Volume 0, without actually resorting to a patch. Under the Issue Data page, uncheck the Volume, Number and Year identification checkboxes; check the Title checkbox; and then write in the title you want. It's a bit of a kludge, but would still get the result you want.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron