Add lastName search condition (API only, not in the search UI)
This commit is contained in:
parent
24654a8bce
commit
f9f6e5340c
1 changed files with 14 additions and 0 deletions
|
@ -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++;
|
||||
|
@ -1822,6 +1823,19 @@ Zotero.SearchConditions = new function(){
|
|||
field: "firstName || ' ' || lastName"
|
||||
},
|
||||
|
||||
{
|
||||
name: 'lastName',
|
||||
operators: {
|
||||
is: true,
|
||||
isNot: true,
|
||||
contains: true,
|
||||
doesNotContain: true
|
||||
},
|
||||
table: 'itemCreators',
|
||||
field: 'lastName',
|
||||
special: true
|
||||
},
|
||||
|
||||
{
|
||||
name: 'field',
|
||||
operators: {
|
||||
|
|
Loading…
Reference in a new issue