Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2011, 11:54 AM   #1
rogue_librarian
Guru
rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.
 
rogue_librarian's Avatar
 
Posts: 973
Karma: 4269175
Join Date: Apr 2010
Location: Europe
Device: Pocketbook Basic 613
invert search for custom fields (GUI)

If would like Calibre to display all records with a custom field different from a given resulst, i.e. a Boolean NOT.

I have
Code:
#my_field:"=foo"
working as expected. How would I search for fields other than foo? For a single letter a regular expression might work, something like
PHP Code:
#my_field:"~[^X]" 
but for a string?

Is there an easy way to tell Calibre to display #my_field except if it contains "foo"?
rogue_librarian is offline   Reply With Quote
Old 07-25-2011, 12:01 PM   #2
chaley
"chaley", not "charley"
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: 5,902
Karma: 1216548
Join Date: Jan 2010
Location: France
Device: Many android devices
not #my_field:"=foo"
chaley is offline   Reply With Quote
 
Advertisement
Old 07-25-2011, 12:01 PM   #3
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,250
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by rogue_librarian View Post
If would like Calibre to display all records with a custom field different from a given resulst, i.e. a Boolean NOT.

I have
Code:
#my_field:"=foo"
working as expected. How would I search for fields other than foo? For a single letter a regular expression might work, something like
PHP Code:
#my_field:"~[^X]" 
but for a string?

Is there an easy way to tell Calibre to display #my_field except if it contains "foo"?
have you tried putting a "not" in front of your (string) search term?
theducks is offline   Reply With Quote
Old 07-25-2011, 12:15 PM   #4
rogue_librarian
Guru
rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.rogue_librarian ought to be getting tired of karma fortunes by now.
 
rogue_librarian's Avatar
 
Posts: 973
Karma: 4269175
Join Date: Apr 2010
Location: Europe
Device: Pocketbook Basic 613
I did, it was the first thing I tried, and I could've sworn it didn't work. Now it looks as though it actually does. Thank you, I guess foolish is as foolish does...

Last edited by rogue_librarian; 07-25-2011 at 01:49 PM.
rogue_librarian is offline   Reply With Quote
Old 07-25-2011, 12:36 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,250
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by rogue_librarian View Post
I did, it was the first thing I tried, and I could've sworn it didn't work. Not it looks as though it actually does. Thank you, I guess foolish is as foolish does...
Use the Tag Browser to help construct query code (custom fields are there)
choose match any or match all at the bottom of the list area
1 click (Green Plus) include
2 click (Red minus) Not
hold ctrl key down to allow additional terms.
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
copy between libs, keep custom fields drMerry Library Management 1 05-24-2011 07:56 PM
Edit MultiData Search and Replace to multiple fields Doug-W Library Management 1 02-22-2011 04:17 PM
Catalogs & Custom Fields nynaevelan Library Management 14 10-27-2010 05:55 PM
Calibre beta available that fully integrates custom fields chaley Calibre 206 10-03-2010 03:28 AM
Sony collections and custom fields: how to handle duplicates? chaley Calibre 13 09-02-2010 05:11 PM


All times are GMT -4. The time now is 12:38 PM.


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