Bug with Staff table in J!Research 2.1.3

11 views
Skip to first unread message

Andrea Marchionni

unread,
Mar 10, 2016, 1:30:52 PM3/10/16
to J!Research Support
Hi,

I am writing to you to report a "bug"... I don't know if it was known and overall if also J!R 3.1 is also affected.

I use the old stable version, but I ahve planning an upgrade of all my site to Joomla 3.

The bug is the follow:

I wish to show a table of our staff ordered by SURNAME with surname first. Thus I chose "Sort by lastname" in the option J!R "Staff list" menu, and the "LAstaname Firstname" in the configuration panel of J!R.

BUT, we have some people that have two words in the surname and the system showed a wrong name. For example: Alberto Lo Scalco. "Alberto" is name and "Lo Scalco" is surname, but the final result was "Scalco Alberto Lo"...

Any ideas about?

Thanks in advance

PS: my Istitute website is www.iccom.cnr.it

Andrea Marchionni

unread,
Mar 10, 2016, 1:33:36 PM3/10/16
to J!Research Support
Hi,

I forgot to say that the field in the database was right: name and surname were recorded in the right way.

I say also that if I add a comma next to the NAME, the system put first the NAME and after the SURNAME...

I am looking forward for answer...

Bye bye,
Andrea

Luis Galárraga

unread,
Mar 13, 2016, 12:34:18 PM3/13/16
to jresearc...@googlegroups.com
Hi Andreas,

I say also that if I add a comma next to the NAME, the system put first the NAME and after the SURNAME...

I guess this happens because J!Research follows (or at least should follow) the Bibtex conventions for names: http://nwalsh.com/tex/texhelp/bibtx-23.html

Regarding the bug, I have been able to reproduce it and I found a temporary solution, though I need to verify whether it has side effects, but I am almost sure it should not.

Make sure the function __toString() in file administrator/components/com_jresearch/tables/member.php looks like this:

    function __toString(){
        return "$this->lastname, $this->firstname";
    }

Before it had the firstname at the beginning. The issue was that the Bibtex standard expects the lastname before the comma, but if there is no comma, it assumes the last word is the last name, leaving no place for names with Spanish conventions (like mine for example).

I will include a fix for this issue in the new version. I am now fixing some important bugs. We should have a new version within this month. Let me know if this helps.

Best,
Luis

--
You received this message because you are subscribed to the Google Groups "J!Research Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jresearch-supp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrea Marchionni

unread,
Mar 14, 2016, 7:23:19 AM3/14/16
to J!Research Support, gala...@luisgalarraga.de
Hi Luis,

thank you very much for your fast answer!

I tried as you suggestion and the fix seems to solve the problem!

I will write if I find new bug around it.

All the best,
Andrea

Luis Galárraga

unread,
Mar 14, 2016, 7:33:57 AM3/14/16
to jresearc...@googlegroups.com
Hi Andrea,

Glad to read that. This change triggers a small bug in the autosuggestion for authors, but you should not worry. It does not affect the functionality, it is mainly a cosmetic thing. I will include the fix in the next release.

Best,
Luis
Reply all
Reply to author
Forward
0 new messages