From 401a95a02957d2c0dc0f822233e84f73ac83a83b Mon Sep 17 00:00:00 2001 From: rjy7 Date: Fri, 25 Jun 2010 19:13:47 +0000 Subject: [PATCH] NIHVIVO-646 Reimplement uri filtering in AutoCompleteController so it's part of the query, instead of removing from query results afterward --- productMods/edit/forms/js/addAuthorsToInformationResource.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index 83f03ada..23b23fe4 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -148,6 +148,8 @@ var addAuthorForm = { // NB For some reason this doesn't delete the value from the last name // field when the form is redisplayed. Need to do in initFormView. this.hideFields(this.lastNameWrapper); + this.hideFields(this.firstNameWrapper); + this.hideFields(this.middleNameWrapper); // Cancel restores form to initial state this.cancel.unbind('click'); @@ -170,7 +172,7 @@ var addAuthorForm = { var existingAuthorUris = addAuthorForm.getExistingAuthorUris(); jQuery.each(existingAuthorUris, function(index, element) { - url += '&filter=' + element; + url += '&excludeUri=' + element; }); $('#lastName').autocomplete({