Function to find authority records matching a MARC field
authorMike Rylander <mrylander@gmail.com>
Wed, 11 May 2011 16:54:16 +0000 (12:54 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 11 Jul 2011 17:48:27 +0000 (13:48 -0400)
Open-ILS/web/js/dojo/openils/AuthorityControlSet.js

index c89d490..4fc1d0b 100644 (file)
@@ -204,6 +204,13 @@ if(!dojo._hasResource["openils.AuthorityControlSet"]) {
             this.controlSetId(old_acs);
 
             return auth_list;
+        },
+
+        findMatchingAuthorities : function (field) {
+            return fieldmapper.standardRequest(
+                [ 'open-ils.search', 'open-ils.search.authority.simple_heading.from_xml.batch.atomic' ],
+                this.bibToAuthorities(field)
+            );
         }
 
     });