Revert "Use getItemType() instead of getForm() in searchBarInit()."
authorJason Stephenson <jason@sigio.com>
Sat, 28 Apr 2012 18:39:42 +0000 (14:39 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Fri, 4 May 2012 18:38:26 +0000 (14:38 -0400)
This reverts commit 47309fd18aad422b06fad51e5588400fd38cf71b.

The reverted commit caused a problem with basic search, and fixing the
problem with basic search was deemed more important than fixing this
issue with Advanced seach.

See Launchpad bugs:

https://bugs.launchpad.net/evergreen/+bug/979158
https://bugs.launchpad.net/evergreen/+bug/788629

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/opac/skin/default/js/search_bar.js

index 4585067..1801edc 100644 (file)
@@ -33,7 +33,7 @@ function searchBarInit() {
        G.ui.searchbar.text.value = (getTerm() != null) ? getTerm() : "";
        if (!isFrontPage) G.ui.searchbar.facets.value = (getFacet() != null) ? getFacet() : "";
        setSelector(_ts,        getStype());
-       setSelector(_fs,        getItemType());
+       setSelector(_fs,        getForm());
 
        depthSelInit();