You are viewing the PKP Support Forum | PKP Home Wiki

supplementary file change "type" options

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

supplementary file change "type" options

Postby theodore » Thu Jul 19, 2012 4:47 pm

Although i read on older topics that it is impossible to modify the dropdwonmenu options, I succesfully managed to change the default dropdown menu with the many useless types to the ones I want.
I modified the "author class" (AuthorSubmitSuppFileForm.inc.php) and the local\en_us\author.xml to make corrected referrence to <message key="author.submit.suppFile.____myType___">My Type</message>.
Now when the author adds supplementary files, the dropdown menu "type" presents my choices.

the problem:
this doesn't happen when the EDITOR edits the metadata and the dropdown menu searches the default references which do not exist anymore. But I cannot fnd where this old encryption is remained so as to change it also for the editor...
The dropdown menu for the editor has choices like this one:

If you want further details to help, pls ask!
Posts: 37
Joined: Wed May 16, 2012 8:52 am

Re: supplementary file change "type" options

Postby theodore » Fri Jul 20, 2012 11:51 am

nevermind, I found it!

it was in the file "\classes\submission\form\SuppFileForm.inc.php"
I changed also this one and now works!

Posts: 37
Joined: Wed May 16, 2012 8:52 am

Return to OJS Development

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests