Bug 9282: (follow-up) remove log noise caused by authorities/ysearch.pl
authorGalen Charlton <gmc@esilibrary.com>
Thu, 10 Oct 2013 22:46:18 +0000 (22:46 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 10 Oct 2013 22:46:18 +0000 (22:46 +0000)
commit9f6999bfdb12d2dd19c454a6b54a58a3f7a6490d
treeaee6be80f94be365e76728b2f6dde007ea573961
parentc1a289a1913bebf95e31b818ad365e7b9d36c4a7
Bug 9282: (follow-up) remove log noise caused by authorities/ysearch.pl

This patch (which is incidental to the main patches for bug 9282),
improves the AJAX authority search code by fixing incorrect contruction
of the parameters to SearchAuthorities() that led to errors like this
in the Apache log when doing auto-completion searches on "main entry"
and "anywhere" in the authority finder:

   ysearch.pl: Use of uninitialized value $i in string eq ...

In the process, this patch also removes a use of the now-deprecated
Perl smartmatch operator.

To test:

[1] Verify that the main test plan for bug 9282 still works.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
authorities/ysearch.pl