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
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.

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: 10015
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: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests