Reviewer Interest

OJS 2.4.8

A user profile is edited to display the reviewer interest in alphabetical order. Upon saving the profile, OJS reorders the interest. Could you explain whether this is coded behaviour. It seems OJS is reordering the interests listed in popularity?

Example: MS/GB, Neurology, Stroke, Spinal cord injuries, TBI
After saving: Neurology, Stroke, TBI, Spinal cord injuries, MS/GB

Any insights will be appreciated.

Hi @tretief

The interests are saved in the DB table controlled_vocab_entry_settings.
The users can share the same interest, which is represented in the DB table user_interests.
The interests will probably be gotten form the DB ordered by their IDs.
Thus, the order of the interests for an user depends when an interest keyword was inserted into the DB for the first time.

I am not sure: if you wish to display them in the alphabetical order in the form, maybe you can change the code i.e. sort the array returned from the function at this place: pkp-lib/InterestManager.inc.php at ojs-2_4_8-3 · pkp/pkp-lib · GitHub

Best,
Bozana

Hi @bozana

Appreciate the guidance - we are looking into creating the list displaying alphabetically. How would one go about ‘bolding’ the text of an interest?

Example in profile: MS/GB, Neurology, Stroke, Spinal cord injuries, TBI
After saving profile: Neurology, Stroke, TBI, Spinal cord injuries, MS/GB

We would like to advise our editors what is the primary research interest of a reviewer, by bolding the interest field. At least this was one idea we thought of explorig.

Any guidance?

Best, Trudie