Don't know if it will stay exposed, but I added a search condition for child notes (e.g. find the parent containing a child matching the specified text)

This commit is contained in:
Dan Stillman 2007-02-16 08:50:47 +00:00
parent a93c801d0e
commit 1be37c6aa7
2 changed files with 17 additions and 0 deletions

View File

@ -663,6 +663,12 @@ Zotero.Search.prototype._buildQuery = function(){
openParens++;
break;
case 'childNote':
condSQL += "itemID IN (SELECT sourceItemID FROM "
+ "itemNotes WHERE ";
openParens++;
break;
case 'fulltextWord':
condSQL += "wordID IN (SELECT wordID FROM fulltextWords "
+ "WHERE ";
@ -1168,6 +1174,16 @@ Zotero.SearchConditions = new function(){
field: 'note'
},
{
name: 'childNote',
operators: {
contains: true,
doesNotContain: true
},
table: 'items',
field: 'note'
},
{
name: 'creator',
operators: {

View File

@ -283,6 +283,7 @@ searchConditions.collectionID = Collection
searchConditions.itemTypeID = Item Type
searchConditions.tag = Tag
searchConditions.note = Note
searchConditions.childNote = Child Note
searchConditions.creator = Creator
searchConditions.thesisType = Thesis Type
searchConditions.reportType = Report Type