Use the configured set of authority browse axes in the authority browse interfaces
authorMike Rylander <mrylander@gmail.com>
Thu, 12 May 2011 15:10:42 +0000 (11:10 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 12 May 2011 15:10:42 +0000 (11:10 -0400)
Open-ILS/web/js/ui/default/cat/authority/list.js
Open-ILS/web/templates/default/cat/authority/list.tt2

index 2500872..c602139 100644 (file)
@@ -14,6 +14,7 @@ dojo.require('openils.CGI');
 dojo.require('openils.PermaCrud');
 dojo.require('openils.XUL');
 dojo.require('openils.widget.OrgUnitFilteringSelect');
+dojo.require("openils.widget.PCrudAutocompleteBox");
 dojo.requireLocalization("openils.authority", "authority");
 var auth_strings = dojo.i18n.getLocalization("openils.authority", "authority");
 
index 67a1fa7..cfc341f 100644 (file)
     </span>
     <span style="white-space: nowrap;">
         <label for="authAxis">Authority type: </label>
-        <select type="text" name="authAxis" value="" dojoType="dijit.form.FilteringSelect" trim="true" id="authAxis" propercase="false" style="width: 10em;">
-            <option value="authority.author">Author</option>
-            <option value="authority.subject">Subject</option>
-            <option value="authority.title">Title</option>
-            <option value="authority.topic">Topic</option>
-        </select>
+        <input
+            id="authAxis"
+            name="authAxis"
+            jsId="authAxis"
+            dojoType="openils.widget.PCrudAutocompleteBox"
+            fmclass="aba"
+            searchAttr="name"
+            fetchProperties="{ sort: [{attribute:'name'}] }"
+            propercase="false"
+            hasDownArrow="true"
+            store_options="{ honor_retrieve_all:true }"
+            trim="true"
+        />
     </span>
 <!-- Not currently useful - see authOUListInit() above -->
 <!--    <label for="authOU">Library: </label><select dojoType="openils.widget.OrgUnitFilteringSelect" id="authOU" name="authOU" searchAttr="shortname" labelAttr="shortname"></select> -->