You’ve got the front end (template and form) classes extended properly, but you’ll also need to extend the back end (DAO and data object) accordingly. Have a look at the UserDAO::getAdditionalFieldNames function; you’ll need to add the new field there.
Rather than using $user->getData and $user->setData, I’d suggest also adding getDegree and setDegree functions to the User class.
Public Knowledge Project Team
Problem solved! I changed the field from InputText to <Select> and it makes more sense.
It is amazing how easily OJS could be customized (considering you know what you are doing and with the help of this forum!)
Thank you for your response.
Regarding the new added fields to Author_Setting table, I have to make them searchable; but, I couldn’t find the corresponding class or functions that does the job. I want to include the item in the MySql query that is run on database (no change in template/interface files for now).
Please help me about what functions or classes should be modified and I will do the coding.
Thanks for the response.
I have to implement localized author and user names in OJS (I used this guide).
I have done the required coding for inserting localized data in database; now I need to retrieve them in the search page.
the User search in Management page is not so important for now and it can be done later. But, as you may guess it is very important to search the journal by author names.
Currently, authors’ firstname, middlename and lastname are saved in author_settings table as localized data (like affiliation for example).
I thought the search handler would search this table for localized names like the affiliation field; but, it doesn’t. and I can’t find the query to search author_settings table for authors’ name instead of the author table.
It seems that getPhraseResults function in ArticleSearchDAO.inc.php is the corresponding function. But, I couldn’t figure out how to modify it.
please help me on this search field and if I am on the right trail.
I’m facing the same problem. What did you do to fix the problem ? I mean, what did you do to store the field value on the database ? I have done all the steps mentioned here, but no success!