Hi,

the author parameter to biblio_db_search only considers lastnames. I.e., calling
biblio_db_search('author', 'Stephen King')
will not succeed because biblio_build_query adds
$where[] = " bcd". $bcc .'.lastname RLIKE "[[:<:]]%s[[:>:]]" ';

Doesn't make much sense to me, so I wrote this little patch changing lastname to name. Let me know what you think!

cu,
Frank

Comments

Frank Steiner’s picture

StatusFileSize
new643 bytes

Oh sorry, file got empty somehow. Here's the patch.

acherp’s picture

Frank, in order for Biblio to search on lastnames in profile pages, does the profile need to have a field profile_lastname or simply lastname or what? I am puzzled by the way Biblio posts lists of publications to profile pages. Aleh

Frank Steiner’s picture

As far as I know, the profile page doesn't care about the authors name at all. I lists the biblio entries that were created by the user, no matter what the author names are. It doesn't call biblio_db_search the way I do above, so this patch doesn't affect the profile page listing.

Frank Steiner’s picture

Status: Needs review » Fixed

Fixed in beta9. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.