View Single Post
Old 04-06-2015, 12:30 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by jpsurf View Post
Hello!
I want to clean my metadata. A query selecting all books, where author equals publisher would save be much time. Something in the way: author:=publisher, but this is not working Whats the right syntax,
You can't do that in a search expression. It does not support relational operators. However, you can create a custom column "from other values" (Preferences / Add your own columns) that computes what you want, then search on that.

One template for the custom column could be:
Code:
{authors:'strcmp($, field('publisher'), 'No', 'Yes', 'No')'}
The column will contain Yes if author == publisher, No otherwise.
chaley is offline   Reply With Quote