Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2015, 03:22 AM   #1
ivanm
e^bored
ivanm began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
AND-ing searches

When using the Tag Browser and either Ctrl- or Shift-clicking multiple items, this joins the various queries using the OR boolean operator.

Is there any way of doing so using AND instead?

e.g. selecting two authors to find books they wrote together; or selecting a series and a saved search for "ondevice:false" to find which books aren't on your reader.

I note that the example provided in the user manual for the tag browser suggests it does work this way (using AND), though from what I can tell in reality you'll get back books that deal with Europe or history.

Last edited by ivanm; 05-05-2015 at 03:27 AM.
ivanm is offline   Reply With Quote
Old 05-05-2015, 04:27 AM   #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: 12,412
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Change how the search queries are composed using the Alter Tag Browser button. "Any" is "or" and "All" is "and".
Attached Thumbnails
Click image for larger version

Name:	Clipboard02.jpg
Views:	143
Size:	52.0 KB
ID:	137926  
chaley is offline   Reply With Quote
Advert
Old 05-05-2015, 05:43 AM   #3
ivanm
e^bored
ivanm began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
*face palm* I can't believe I didn't see that.

Is it possible to have different behaviour based upon a ctrl/shift click? (e.g. ctrl-click is AND, shift-click is OR)
ivanm is offline   Reply With Quote
Old 05-05-2015, 06:03 AM   #4
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: 12,412
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ivanm View Post
Is it possible to have different behaviour based upon a ctrl/shift click? (e.g. ctrl-click is AND, shift-click is OR)
Not without some significant coding in calibre.

Also, I question the utility given and/or precedence (and is higher than or). It isn't easy to visualize how a series of and/or clauses will evaluate, which is why it is probably a good idea to use parentheses to make things explicit. One could help out by parsing the expression then regenerating it with parens in the right places, but this adds even more complexity to the changes.

I suggest you construct the series of tests, then manually change the incorrect operators and possibly add parentheses.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-JB'ing on 3.3? CaelThunderwing Kindle Developer's Corner 0 10-29-2011 11:25 PM
OC'ing and CM7 jhempel24 Nook Developer's Corner 0 05-04-2011 05:49 AM
Intro'ing me braddles Introduce Yourself 7 06-03-2010 05:31 AM
Hi, intro-ing myself patmulholland Introduce Yourself 5 06-01-2010 06:40 PM


All times are GMT -4. The time now is 11:43 AM.


MobileRead.com is a privately owned, operated and funded community.