From: senator Date: Mon, 8 Nov 2010 20:44:06 +0000 (+0000) Subject: Acq: in acq search, avoid trying to create a dropdown from every bib ID in X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3d348a2c46de103b8582ed654bb4a5bb3cb70a61;p=evergreen%2Fbjwebb.git Acq: in acq search, avoid trying to create a dropdown from every bib ID in the system, providing a normal text input field instead (or search by file of terms). git-svn-id: svn://svn.open-ils.org/ILS/trunk@18662 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/acq/search/unified.js b/Open-ILS/web/js/ui/default/acq/search/unified.js index 5174cda7b..53be74109 100644 --- a/Open-ILS/web/js/ui/default/acq/search/unified.js +++ b/Open-ILS/web/js/ui/default/acq/search/unified.js @@ -140,7 +140,11 @@ function TermSelectorFactory(terms) { w.updateCount(); } ); - } else if (term.hint == "acqlia") { + } else if (term.hint == "acqlia" || + (term.hint == "jub" && term.field == "eg_bib_id")) { + /* The test for jub.eg_bib_id is a special case to prevent + * AutoFieldWidget from trying to render a ridiculous dropdown + * of every bib record ID in the system. */ wStore[widgetKey] = dojo.create( "input", {"type": "text"}, parentNode, "only" ); @@ -306,8 +310,9 @@ function TermManager() { can_do_fuzzy = false; can_do_in = true; } else if (term.datatype == "link") { - can_do_fuzzy = (self.getLinkTarget(term) == "au"); - can_do_in = false; /* XXX might revise later */ + var target = self.getLinkTarget(term); + can_do_fuzzy = (target == "au"); + can_do_in = (target == "bre"); /* XXX might revise later */ } else if (typeof(w.declaredClass) != "undefined") { can_do_fuzzy = can_do_in = Boolean(w.declaredClass.match(/form\.Text|XULT/));