]> git.evergreen-ils.org Git - Evergreen.git/commit
For more predictable authority browse results, use startwith until browse is sorted out
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 29 Jan 2011 18:03:26 +0000 (18:03 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 29 Jan 2011 18:03:26 +0000 (18:03 +0000)
commit0064786e48203d8e396713d4b2fcef11adc19393
treef5ecfa1f73f81ee3b47aec76b414781750502e30
parent49c49165312f1f9159e4569e64c1235d6a85ed11
For more predictable authority browse results, use startwith until browse is sorted out

authority_tag_sf_browse() was returning unexpected results when only a small
set of authority records was loaded. This may be an indication of a corner
case, but until we sort that out the more straightforward startwith should
be used.

Also, chop the final character of the incoming search value to ensure
that an exact match is returned on page 0 instead of page -1. For example,
'Bacon, Jono.' becomes 'Bacon, Jono' for the search. (The right thing to
do, come to think of it, is probably to naco_normalize the incoming value;
perhaps next patch).

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19331 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
Open-ILS/xul/staff_client/server/cat/marcedit.js