www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f9f6e5340c386814124713029908ef35b609e9bc
parent 24654a8bceed0a5f4d7ecdfaa14e6dde10e906e4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat,  4 Apr 2009 20:52:44 +0000

Add lastName search condition (API only, not in the search UI)


Diffstat:
Mchrome/content/zotero/xpcom/search.js | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js @@ -1150,6 +1150,7 @@ Zotero.Search.prototype._buildQuery = function(){ break; case 'creator': + case 'lastName': condSQL += "creatorID IN (SELECT creatorID FROM creators " + "NATURAL JOIN creatorData WHERE "; openParens++; @@ -1823,6 +1824,19 @@ Zotero.SearchConditions = new function(){ }, { + name: 'lastName', + operators: { + is: true, + isNot: true, + contains: true, + doesNotContain: true + }, + table: 'itemCreators', + field: 'lastName', + special: true + }, + + { name: 'field', operators: { is: true,