You are viewing the PKP Support Forum | PKP Home Wiki

Exclusive ID

OJS development discussion, enhancement requests, third-party patches and plug-ins.

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.

Exclusive ID

Postby jamilatta » Mon Feb 21, 2011 5:35 am

Hi everybody,

We have developed in our old version a feature to mask the IDs of each evaluation process inserted in the OJS. This mask intends to present to each journal their own sequence of ids for each job. This development was a demand of the SciELO Journal (www.scielo.br/www.scielo.org) editors to facilitate the identification of each job not only for their content but through a sequential number.

We intend to keep this development in the new version once the editor consider this feature important to control their workflow. But to transfer and keep this development we would like to accomplish this in a sustainable way and incorporating it in the new version of OJS.

As we do not intent to keeping a different version from OJS, we would like to develop this feature together and with your consent and the PKP community.

This development consists in a new table in OJS database to create a multiple key with the original OJS ID, journal ID, mask ID for each job.

The development of this feature in the old version is on: git@github.com: scieloorg / Submission.git

We'd like to discuss the best way to implement this feature in the newer version of OJS.


SciELO Team.
Posts: 2
Joined: Mon Feb 21, 2011 5:31 am

Re: Exclusive ID

Postby asmecher » Mon Feb 21, 2011 9:33 am

Hi all,

Here's a couple of paragraphs from an email discussion about the same feature:
Rather than introducing a new table, I'd suggest adding a new column to the articles table. You may be able to use database sequences to have a journal-unique ID created automatically on insert, though it'll be a little bit tricky to do this in a way that'll work for both PostgreSQL and MySQL (which would be required for us to distribute it as part of OJS).

Then, to separate the internal IDs from the presentation IDs, I'd suggest introducing a new function to lib/pkp/classes/submission/Submission.inc.php called getPresentationId(). On standard installations, it would call getId and return the result. On your installation, it would get the alternate ID.
Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests