OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Possible to customize field set-up for each track?

Are you a Director, Presenter, Reviewer or Conference Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael

Forum rules
This forum is meant for general questions about the usability of OCS from an everyday user's perspective: conference managers, presenters, and directors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OCS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OCS:

1. Read the documentation. We've written documentation to cover from OCS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OCS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OCS Technical Support subforum; if you have a development question, try the OCS Development subforum.

Possible to customize field set-up for each track?

Postby jyoy » Thu Feb 20, 2014 11:07 am

Dear all,

Are there ways to customize each track differently with its field setup customized?
For example, if there are two tracks, Music and Paper, I would like to have submission types of composition, installation, and so on under Music track while Paper track would have types such as proposal and presentation. Also, I am curious if there is a way to customize other fields of each track as well (e.g. checkbox items that users do not need to check mandatorily to proceed his or her submission).

Best wishes,
Jaeseong You
jyoy
 
Posts: 2
Joined: Thu Feb 20, 2014 9:21 am

Re: Possible to customize field set-up for each track?

Postby asmecher » Thu Feb 20, 2014 11:36 am

Hi jyoy,

This will take some custom development; I can describe the process at a high level if you're familiar with PHP/MySQL.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9210
Joined: Wed Aug 10, 2005 12:56 pm

Re: Possible to customize field set-up for each track?

Postby jyoy » Thu Feb 20, 2014 11:47 am

Hello, Mr.Smecher
Sure, I would greatly appreciate it if you can kindly explain the process.
jyoy
 
Posts: 2
Joined: Thu Feb 20, 2014 9:21 am

Re: Possible to customize field set-up for each track?

Postby asmecher » Thu Feb 20, 2014 12:11 pm

Hi jyoy,

One complication is that currently, during the submission process, the track, session type, and submission checklist all appear on the same form. If you want session type and checklist to be dependent on the track, then it's probably best to split that form into two pieces, and have the user first choose the track and on the following page choose the session type and agree to the checklist.

Aside from that, what you'll need to do is locate the checklist and session type options where they currently exist in the setup pages, and move them into track configuration. If you're using a Linux or MacOSX box you should be able to do something like this to search the code...
Code: Select all
find . -type f -exec fgrep -l submissionChecklist "{}" ";"
This will list all occurrences of "submissionChecklist". Removing the ones you can ignore (e.g. in the locale and cache files):
  • registry/schedConfSettings.xml: This is a set of defaults; you can ignore this.
  • plugins/generic/tinymce/TinyMCEPlugin.inc.php: This is where TinyMCE (a rich text editor) is enabled for the submission checklist field. It'll need minor adaptation if you want TinyMCE on this field.
  • pages/about/AboutHandler.inc.php and templates/about/submissions.tpl: This is where the submission checklist is fetched from settings and presented in the "About" page. You'll need to adapt this to fetch from the section instead of the scheduled conference.
  • templates/author/submit/step1.tpl and classes/author/form/submit/AuthorSubmitStep1Form.inc.php: This is where the submission checklist is fetched from settings and presented to the author during submission. You'll need to adapt this to fetch from the section instead of the scheduled conference.
  • templates/manager/schedConfSetup/step2.tpl, classes/manager/form/schedConfSetup/SchedConfSetupStep2Form.inc.php, and pages/manager/SchedConfSetupHandler.inc.php: These are where the Conference Manager configures the submission checklist. You'll want to move the parts that relate to the submission checklist into the track configuration, which will be templates/manager/tracks/trackForm.tpl, classes/manager/form/TrackForm.inc.php, and pages/manager/TrackHandler.inc.php (respectively).
  • classes/install/Upgrade.inc.php (This is old upgrade code and you can ignore it)
The scheduled conference settings currently get stored in the sched_conf_settings table, managed by SchedConfSettingsDAO.inc.php. Track settings get stored in track_settings, managed by TrackDAO.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9210
Joined: Wed Aug 10, 2005 12:56 pm

Re: Possible to customize field set-up for each track?

Postby jturner » Tue Mar 11, 2014 1:26 pm

Mr. Smecher,

Would it also be possible to alter the OCS SQL database to contain track-dependent settings and to pull from these in the track classes and pages that populate user interface for tracks? I'm on the same research team as Jaesong You and we're attempting to change the inner workings of OCS as little as possible, so if it would be possible to simply alter the database and insert a few lines of custom code into the class files, that's probably the option that we'd opt for.

Best,

John Turner
jturner
 
Posts: 3
Joined: Tue Mar 11, 2014 1:21 pm

Re: Possible to customize field set-up for each track?

Postby asmecher » Wed Mar 12, 2014 9:52 am

Hi John,

Yes, you could do this either at the SQL level (e.g. making sched_conf_settings and conference_settings a view that potentially brings in section_settings) or at the PHP level (having the model for fetching settings try the section level before the conference level).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9210
Joined: Wed Aug 10, 2005 12:56 pm


Return to OCS Conference Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest