Quote:
Originally Posted by Comfy.n
It works in the template editor, showing "Yes" for a given value when a book whose author's notes contain the string is currently selected.
However when I paste the template in the search bar, it returns no results, so I must be doing something the wrong way
|
Works for me when using the advanced search template search builder running from latest source (with the fix). This example finds any note containing the letter 'a'.
Template:
Code:
program:
first_author = sublist($authors, 0, 1, '&');
note = get_note('authors', first_author, '1');
if 'a' in note then
ans = 'Yes'
else
ans = ''
fi;
ans
The template search dialog:
Note that the template search generated by the dialog contains more than just the template.