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 10-23-2011, 04:47 PM   #1
WendyR14
Junior Member
WendyR14 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2011
Device: kindle; ipad; netbook
Question Using OnDevice to set the value of a custom column

I wonder if anyone could give me some help. I've just begun to explore customising Calibre and I'm finding it tricky; I spotted a throw away comment in a thread (sorry can't find it now) where the poster said breezily that they used a custom column to record which books are loaded onto their Kindle so that they know what's what even when the device isn't connected.

Just what I want I thought.

I found this post http://www.mobileread.com/forums/sho...03&postcount=6 and that of course work well to do it manually. But I feel sure that I should be able to set it automatically using the ondevice() funtion explained in the user manual and mentioned here http://www.mobileread.com/forums/sho...6&postcount=15

I guess I need a composite column but does it need to behave like a tag or not; or does it not matter? I presume I need to put the expression into the template box - but what exactly do I need to type into there?

Ideally I should like my new column to be updated when I connect my device so that if I delete things from the kindle itself the value of the column reflects that, and of course the value needs to persist after I unplug the device.
WendyR14 is offline   Reply With Quote
Old 10-23-2011, 05:23 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,907
Karma: 1217216
Join Date: Jan 2010
Location: France
Device: Many android devices
There is no (easy) way to automatically record "ondevice" in a way that persists after you disconnect the device. You can do such things in a plugin, but I don't know of one that does it.

The usual solution is to select all books and set the custom column to false using edit metadata (bulk). Next search for ondevice:true while the device is connected, select all and use edit metadata to set the custom column to true.
chaley is offline   Reply With Quote
 
Advertisement
Old 10-23-2011, 05:25 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,259
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by WendyR14 View Post
I wonder if anyone could give me some help. I've just begun to explore customising Calibre and I'm finding it tricky; I spotted a throw away comment in a thread (sorry can't find it now) where the poster said breezily that they used a custom column to record which books are loaded onto their Kindle so that they know what's what even when the device isn't connected.

Just what I want I thought.

I found this post http://www.mobileread.com/forums/sho...03&postcount=6 and that of course work well to do it manually. But I feel sure that I should be able to set it automatically using the ondevice() funtion explained in the user manual and mentioned here http://www.mobileread.com/forums/sho...6&postcount=15

I guess I need a composite column but does it need to behave like a tag or not; or does it not matter? I presume I need to put the expression into the template box - but what exactly do I need to type into there?

Ideally I should like my new column to be updated when I connect my device so that if I delete things from the kindle itself the value of the column reflects that, and of course the value needs to persist after I unplug the device.
You are making way too much out of it

Make a True/False column (mydevice) in the Library if one does not exist.
Connect your device and wait for the device task to finish.

Stage 1) un-mark previous saved status for missing/removed from device books.
Enter this search:
Code:
ondevice:false and formats:true
(change true to a specific format if that is what you choose) and press Enter

1) Clear previous values if it was previously used by Selecting All (ctrl+A).
Bulk Meta-data edit: Custom metadata tab: set mydevice to No
OK

Stage 2) Mark those found on the device.
Set the search:
Code:
ondevice:true
2) Set values for on device books Selecting All (ctrl+A).
Bulk Meta-data edit: Custom metadata tab: set mydevice to Yes
OK


you have now saved your current status
theducks is online now   Reply With Quote
Old 10-23-2011, 09:03 PM   #4
uli
Member
uli has a complete set of Star Wars action figures.uli has a complete set of Star Wars action figures.uli has a complete set of Star Wars action figures.
 
Posts: 13
Karma: 296
Join Date: Jun 2011
Location: Montreal
Device: Kobo, Calibre
Thumbs up

Since ondevice does not persist if you restart Calibre, I use the Reading List plugin to keep track of what books are on my device when disconnected.

Instead of 'send to device' shortcut I remap it to send to 'reading list'. Next setup the program to manually/automatically 'Replace device with list, add new items only' (this adds/removes except overwrites because in my case it would remove the 'im_reading' collection the kobo uses).

When disconnected you call up the reading list, add/remove books to sync later. Reading List can also add a tag so you can do fancy stuff like column coloring, etc.
uli 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
help with custom column Noughty Library Management 4 10-15-2011 06:31 AM
Can custom book data be displayed in a custom column? kiwidude Development 9 03-02-2011 06:35 AM
Need help with this custom Column. Rie142 Library Management 2 02-20-2011 10:51 AM
custom column i need a little help shinken Calibre 3 09-15-2010 04:41 AM
Custom Column Problem MSJim Calibre 7 09-08-2010 06:07 PM


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


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