OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Adding extra fields to abstract submission?

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Adding extra fields to abstract submission?

Postby mwes6675 » Mon Jan 29, 2007 6:59 pm

Hi,

For our conference we would like to have some extra fields for the abstract submission page. In particular, for the author details. Is it possible to insert extra fields such as the author's address (in addition to institution) and the author's country?

I trust this makes sense and I look forward to a reply.

Thanks,

Michael
mwes6675
 
Posts: 2
Joined: Mon Jan 29, 2007 6:51 pm

Postby asmecher » Tue Jan 30, 2007 10:37 am

Hi Michael,

This will currently require PHP modifications, although we hope to add support for easy addition of metadata fields in a future release. If you're interested, I can roughly describe the necessary changes.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8837
Joined: Wed Aug 10, 2005 12:56 pm

Postby mwes6675 » Tue Jan 30, 2007 3:59 pm

Hi Alec,

Thanks for your quick reply. I had a feeling it would require PHP modifications. If you could outline the necessary changes that would be greatly appreciated.

Cheers,

Michael
mwes6675
 
Posts: 2
Joined: Mon Jan 29, 2007 6:51 pm

Postby asmecher » Wed Jan 31, 2007 10:11 am

Hi Michael,

If you're using the most recent release of OCS 1.x and want to add an additional field to the author metadata:
  • Add two new columns to your database:
    Code: Select all
    ALTER TABLE papers ADD COLUMN my_new_column VARCHAR(255);
    ALTER TABLE papers ADD COLUMN add_my_new_column VARCHAR(255);
  • Use the "affiliation" and "add_affiliation" fields as an example for your new "my_new_column" and "add_my_new_column" fields. Search for "affiliation" and duplicate or extend the code to include the new fields. You'll need to make changes to the following files:
    • admin/editpaper.php
    • admin/invitedspeakers.php
    • admin/reviews.php
    • papers.php
    • reviews.php
    • schedule.php
    • search.php
    • viewabstract.php
    • viewappendix.php
    • viewbio.php
    • viewpaper.php
    • submitform.php
    • validate.php
    • comments.php
    • admin/masterlist.php
    • oai/include/functions.inc.php
    • rst/config.inc.php
    • rst/functions.inc.php
  • Of course, some of the above scripts might not need to be changed, depending on what behavior you'd like (i.e. whether or not it'll be included in OAI extracts, etc.)

The reason there are two table columns associated with a new field -- and this is a hare-brained design decision that someone made a long time ago -- is that the first column contains the value for the first author, and the second column contains the value for the second and subsequent authors, separated by newlines. Again, just follow the code examples for affiliation and rest assured that OCS 2.0 will not suffer from this.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8837
Joined: Wed Aug 10, 2005 12:56 pm


Return to OCS Technical Support

Who is online

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