Removed the type filter on the person_names query in searchMemberDbLookup, so that members can be found by their aliases.
Added an "Also known as: ..." section to the profile page, which displays a list of informal names for a member, if they have aliases.
Added corresponding tests and fixtures to PageTest.php and SearchTest.php.
Fixed existing testSearchPageMP and testSearchPageMultipleCons tests in SearchTest.php. A change in the formatting of the HTML broke these at some point, and I suspect it went unnoticed since those tests are in the "xapian" group, which are excluded from the GitHub Actions workflow.
To use this functionality, you would insert an alias record into the person_names table, including all the names that you want users to be able to search for.
For example, to give Baroness Grey-Thompson her common name, you would:
type
filter on theperson_names
query insearchMemberDbLookup
, so that members can be found by their aliases.PageTest.php
andSearchTest.php
.testSearchPageMP
andtestSearchPageMultipleCons
tests inSearchTest.php
. A change in the formatting of the HTML broke these at some point, and I suspect it went unnoticed since those tests are in the "xapian" group, which are excluded from the GitHub Actions workflow.To use this functionality, you would insert an alias record into the
person_names
table, including all the names that you want users to be able to search for.For example, to give Baroness Grey-Thompson her common name, you would:
So that the table would look like:
This would also add "Also known as: Tanni Grey-Thompson" to the Baroness' profile page, under her existing member summary.
Helps address #1608 and #72.