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
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.
zharel
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel
Contact:

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
Contact:

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')) {

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

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


Return to “OJS Technical Support”

Who is online

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