[Koha-patches] [PATCH] BUG-2393: ENHANCEMENT: SearchMember() uses "cardnumber%" wildcard - if other search-types fail

henridamien.laurent henridamien.laurent at biblibre.com
Thu Jul 31 16:12:21 CEST 2008


paul POULAIN a écrit :
> Ryan Higgins a écrit :
>   
>> I agree it is better to have the staff learn to use '%' in the query 
>> if they want.
>> Mason, I'd suggest for the library that wants this, to use a bit of 
>> javascript to
>> append it to the query.  As Joe mentioned, and I mentioned in the 
>> bugzilla enhancement
>> record, a 'starts with' just doesn't make sense for most libraries 
>> around these parts;
>> the more often desired behavior is to be able to type in the _last_ 
>> few digits of
>> the card number.
>>
>> So it shouldn't default to a cardnumber starts-with anyway, imo. 
>>
>> Maybe a better solution is to add a 'staff user js' syspref, which 
>> would make it easier
>> to attach a local function to alter the patron search queries?
>>     
> Couldn't we use the already existing QueryAutoTruncate ?
>   
My experience with IndependentBranches is that it is bad to have a
system preference that does many things.
I had rather have 10 system preferences that allows to add 10 well
defined things than have one system preference for 2 different parts of
Koha QueryAutoTruncate is for catalogue, either create a new system
preference for Patrons : PatronSearchAutoTruncate

My 2cts.

-- 
Henri-Damien LAURENT
BibLibre SARL
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
tel : +33 4 67 65 75 50






More information about the Koha-patches mailing list