As discussed in
Kobo Aura HD: Importing existing shelves into Calibre, I have added a function to get the current shelves from the Kobo device into the calibre library.
This new function will read the database on the connected Kobo device, get the shelves for each book and put this into a column in the calibre library. This can be done for all books on the device, or just the selected books.
When started a dialog for options will be displayed. The options are:
- List of custom columns that can be used for the list of shelves
- "All books on device" - Select this if you want to get shelves for all books on the device. If it is not selected, only the selected books will be updated.
- "Replace column with shelves" - If this is selected, the current value in the column will be replaced with the list of shelves. If it is not, the list is appended to the current value.
Once the options have been selected, press the OK button to start. When this is done, the selected column is checked against those used in the driver configuration. If it is, a warning is displayed and you can cancel the action. If you continue at this point, the shelves are retrieved from the device and the library is updated.
Attached is a beta with the added function. If no problems are found in the next few days, I will release it. If anyone finds a problem with this, please report it with as much detail as possible. And any suggestions for improvements to the function are welcome.