[Koha-patches] [PATCH] Bug 5172 - prefer 'other name' over 'first name' if available.

Chris Cormack chrisc at catalyst.net.nz
Tue Dec 14 08:57:23 CET 2010


* Paul Poulain (paul.poulain at biblibre.com) wrote:
> Le 13/12/2010 23:53, Robin Sheat a écrit :
> > In all the places that the user is referred to by name in the OPAC, the
> > 'other name' field is now used instead of the first name, if an 'other
> > name' has been defined.
> > +    # For the purposes of making templates easier, we'll define a
> > +    # 'showname' which is the alternate form the user's first name if 
> > +    # 'other name' is defined.
> > +    $borrower->{'showname'} = $borrower->{'othernames'} || $borrower->{'firstname'};
> mmm... unles i'm missing something, I (and probably all french
> libraries) strongly disagree with this.
> 
> for us, the "surname" is the daily used name. The "othernames" is used
> for the wife birth-name.
> For example, my wife is born "Sandrine Charlot", and is now called
> "Sandrine Poulain", resulting in :
> Surname = Poulain
> 1stname = Sandrine
> othername = Charlot
> 
> The name to display is undoubtfully the "surname". But searches can be
> done on surname and othernames, it's usefull for woman just getting
> married or divorced, to find them anyway.
> 
> Robin, any explanation about the idea behind your patch ?

Othernames is used here for the name the person prefers.

So the name might be Christopher Cormack, and othernames would be Chris.
(In koha 1.0 up until 2.0 this is how it worked also)

If its used for other things in france, then we should make this a
system preference.

Chris
> 
> -- 
> Paul POULAIN
> http://www.biblibre.com
> Expert en Logiciels Libres pour l'info-doc
> Tel : (33) 4 91 81 35 08
> 
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/

-- 
Chris Cormack
Catalyst IT Ltd.
+64 4 803 2238
PO Box 11-053, Manners St, Wellington 6142, New Zealand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: </pipermail/koha-patches/attachments/20101214/c57df6f2/attachment.pgp>


More information about the Koha-patches mailing list