How to change "$familyFirst" tag in edit user

We need to change fullName from familyFisrt = faulse to familyFirst = true.
Is there any way to edit fullname in user edit ?

What application are you using?
OJS 3.3.0-20

self resolved

We wanted that alphabet name in ja_JP locale is shown little differently from kanji name.

By editing Identity.inc.php as the following, we had the expected results.
If (AppLocale::getLocale() == ‘ja_JP’){
$familyFirst = true;
}
if ($familyFirst) {
if (ctype_alnum($familyName.$givenName)){
return ($familyName != ‘’?“$familyName, " :‘’) . $givenName;
}else{
return ($familyName != ‘’?”$familyName " :‘’) . $givenName;
}
} else {
return $givenName . ($familyName != ‘’?" $familyName" :‘’);
}

Hi @kawasaki,

This is filed in Github here:

https://github.com/pkp/pkp-lib/issues/6500

I’d suggest watching that issue for changes (and of course PRs are always welcome if you are able to solve the issue more generally).

Meanwhile, thanks for sharing the work-around!

Thanks,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 11 days. New replies are no longer allowed.