View Single Post
Old 09-05-2010, 10:03 PM   #3
timlegge
Addict
timlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than mom
 
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
Quote:
Originally Posted by chaley View Post
I assume you are asking about something calibre does, and not what the kobo does?
Yes

[snip]

Quote:
Originally Posted by chaley View Post
When a device is plugged in: if a device supports collections, then the 'books' interface method *must* ensure that the book.device_collections contains a list of the collections of which the book is a member. If it does not, and if metadata management is set to manual, then the collections will be lost. In addition, the GUI will not be able to display the information.
I am okay there, the Kobo has one collection the "I'm Reading" list (although it may be possible to work with a few other things) that is held as ReadStatus in the sqlite database. When I process the books, I update the device_collections. Unfortunately, at the moment it is not getting stored in the metadata.

Quote:
Originally Posted by chaley View Post
If Metadata management is manual, then the user can add and remove collections on the device view. After editing, calibre modifies book.device_collections and calls rebuild_collections with that book (or books). Rebuild_collections must do whatever is necessary to make the device's collections match the contents of the 'device_collections' attribute. It is not necessary (nor desirable) to call booklist.get_collections
How do you add or remove collections on the device view? The only menu item I have is manage collections and it seems to only allow me to remove collections from all books or rename a current collection. Did I miss setting a value to enable a menu item?

Quote:
Originally Posted by chaley View Post
If metadata management is set to either automatic or on_send, then collections are built exclusively from the calibre attributes specified in the device customization. Custom field attributes are being added real-soon-now. The user cannot add or remove collections on the device view.
So, if I have a tag applied to the book for "I'm Reading" (and its configured to look at the tags) any books with the I'm Reading tag will have its metadata set to "I'm Reading" I see the menu disappear for Manage Collections when I select the On Send or Auto so I see how that part works.

Quote:
Originally Posted by chaley View Post
The Sony drivers are a good but complicated example of how collection management works. It is very possible that some sony-only stuff has crept into the general code. Don't hesitate to point that out. It would be best to try to avoid creating another collection management structure.
Yes, I have been studying the prs505 driver. Basically, I plan to implement with rebuild_collections and the current collection management...

Tim
timlegge is offline   Reply With Quote