jethro-pmm icon indicating copy to clipboard operation
jethro-pmm copied to clipboard

Pagination of non-Western names

Open jjss46 opened this issue 5 years ago • 7 comments

Hi,

I'm from Hong Kong. We use Chinese to input First name and Last name for Persons and for Families Name. The filter for these 2 sections are A-M and M-Z. This causes the records in Chinese cannot be displayed.

Please advise how to fix it so the records can be shown.

Thanks Jeff

jjss46 avatar Jan 01 '20 15:01 jjss46

Hi Jeff, thanks for raising this. A church here in Sydney is using jethro with lots of Korean names so I've just asked them how it's working for them. If needed I can alter this page to cope with chinese pagination. in the meantime, I think this and families > list all are the only pages affected by this problem. So you should be OK to use the rest of Jethro.

tbar0970 avatar Jan 02 '20 23:01 tbar0970

It turns out the Korean church isn't using Jethro for Korean names. I'll work on making the pagination multi-lingual-aware. Can you point me to any standards for how to paginate lists of Chinese names?

tbar0970 avatar Jan 22 '20 02:01 tbar0970

For Chinese Name, we use Last name to paginate.

Also for Chinese, we display Last Name and then First Name, (no space between the last name and first name). a bit different from English name. For example, 陳大文。 "陳"is the last Name. "大文"is the First Name. When display, there is no space between the Last Name and First Name. I think it will be good to have an option to select how to display name system wise.

jjss46 avatar Jan 23 '20 09:01 jjss46

Thanks. Yes, for Chinese, "last name" and "first name" are not good labels!

In your conf.php file you can add the following to rename them:

define('PERSON_FIRST_NAME_LABEL', 'Given name');
define('PERSON_LAST_NAME_LABEL', 'Family name');

I'll work on fixing the pagination issue first. Controlling the order of names system-wide will be harder.

tbar0970 avatar Jan 24 '20 11:01 tbar0970

But another question re pagination: In English we have 26 letters to divide by. In Chinese, I believe it's many many more possible characters that a name could start with! How does dividing into pages work?

tbar0970 avatar Jan 24 '20 11:01 tbar0970

Hi Jeff

I just ran a test and entered a person 陈 陈 into one of my systems. They came up in the first page of Persons > List All and Families > List All. So they're not invisible. Are you seeing some different behaviour on your system? Database character sets can be a factor; my system has DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci for the _person and family tables. Are you using something differrent?

tbar0970 avatar Feb 18 '20 23:02 tbar0970

Maybe I have to update my version.

I think you can use the last name to do the pagination.

jjss46 avatar Feb 25 '20 10:02 jjss46