Don't match attachments or annotations for titleCreatorYearNote search
This commit is contained in:
parent
6be2faa9c2
commit
393807f487
1 changed files with 4 additions and 0 deletions
|
@ -352,6 +352,10 @@ Zotero.Search.prototype.addCondition = function (condition, operator, value, req
|
||||||
if (condition == 'quicksearch-titleCreatorYear') {
|
if (condition == 'quicksearch-titleCreatorYear') {
|
||||||
this.addCondition('noChildren', 'true');
|
this.addCondition('noChildren', 'true');
|
||||||
}
|
}
|
||||||
|
else if (condition == 'quicksearch-titleCreatorYearNote') {
|
||||||
|
this.addCondition('itemType', 'isNot', 'attachment');
|
||||||
|
this.addCondition('itemType', 'isNot', 'annotation');
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue