From: senator Date: Mon, 8 Nov 2010 20:44:43 +0000 (+0000) Subject: Backport r18662 from trunk: don't try to render dropdown of all bib IDs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e6b86994d61162f251928750dd2a03d39f0ad75f;p=working%2FEvergreen.git Backport r18662 from trunk: don't try to render dropdown of all bib IDs git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18663 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 5174cda7ba..53be741093 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/));