Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2021, 12:15 AM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,971
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Saved Searches: OR based on connected_device_name

This is more of a "wonder if this is possible" than something I actually want to do, but:

Here's the search I have right now:

Code:
(ondevice:true) OR (#onkobo:true)
Since ondevice and #onkobo always have the same value for a given book, it's a little redundant when the device is connected.

I was thinking that since connected_device_name is there (Action Chains uses it for conditionals), there might be a way to use that - use ondevice if it matches "Kobo Aura HD" and then fallback to #onkobo when it matches a null.


is this possible?

Last edited by ownedbycats; 01-29-2021 at 12:23 AM.
ownedbycats is online now   Reply With Quote
Old 01-29-2021, 05:12 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,445
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You can do this with template search. Set the field names appropriately. Ignore the error in the template editor. I need to look at why that is happening.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	72
Size:	58.2 KB
ID:	185064   Click image for larger version

Name:	Clipboard02.jpg
Views:	82
Size:	54.9 KB
ID:	185065  
chaley is offline   Reply With Quote
Advert
Old 01-29-2021, 06:57 PM   #3
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,971
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thank you.

I can also see this being useful for someone with multiple devices, if they want to do different searches dependent on which device is plugged in.

Last edited by ownedbycats; 01-29-2021 at 07:06 PM.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saved Searches: Recursing hierarchical searches ownedbycats Library Management 7 01-18-2021 05:33 AM
Saved Searches? jim3692 Sigil 3 04-26-2020 06:10 PM
Saved Searches and focus? Phssthpok Editor 2 01-07-2018 07:26 AM
Saved searches abecedarian Sigil 5 04-14-2017 06:48 PM
Where are searches saved? travger Calibre 2 08-26-2012 01:37 PM


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


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