|
|
#1 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 4986
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde 4 NT
|
[GUI PLUGIN]Overdrive Link - Version 1.5.0
Many communities use Overdrive to handle their lending library services for electronic books. Checking Overdrive for books of interest can be tedious for large numbers of books and multiple libraries, especially since the libraries add to their collections over time. The purpose of the Overdrive Link user interface action plugin is to search Overdrive lending libraries for borrowable e-books that correspond to selected books in the user's calibre library. This allows the user to add entries for desired books in calibre and then to check occasionally to see if they are carried by any Overdrive libraries at which they have borrowing privileges. The plugin can also search for books from known authors that are available via Overdrive, but missing from the user's Calibre library. These can be selectively added as empty calibre books. For the plugin to be useful the user must have borrowing privileges at a lending library powered by Overdrive. Check your local community library for possible access. In addition some libraries, such as the Free Library of Philadelphia, allow e-book borrowing by non-residents for a small fee. Main Features:
Version History: Spoiler:
Special Notes:
Installation Notes:
Usage Details: Spoiler:
Implementation Notes: Spoiler:
Last edited by jhowell; 03-14-2013 at 10:08 AM. Reason: Version 1.5.0 |
|
|
|
|
|
#2 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,715
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Moderator Notice Moved to plugins. The development forum is viewed mainly by developers Just put your new plugins information (use existing PI thread as a model) into this Message with the plugin attached. PM Me and I can change the title of this thread to what the PI is about (please supply the new subject line and I will paste it in place).
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 4986
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde 4 NT
|
Original post:
I have been working on a GUI plugin for Calibre to meet a need I have to find books of interest at my local e-book lending library, powered by Overdrive. I am continuing to tinker with the software, but it has reached the point where it is useful for me and might be of use to others. This is my first software development using Python. I followed examples and borrowed code liberally from existing plugins. (Thanks kiwidude!) This plugin has only been tested under 64-bit Windows 7 with Calibre versions since 0.8.60, but I don’t see any reason why it shouldn’t work on the other platforms that Calibre supports. |
|
|
|
|
|
#4 |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
@jhowell - great idea!
I just installed your plugin, and added spl.lib.overdrive.com, and made it the first library in the list. I then added an empty book in calibre, then populated it with 'A Short History of Nearly Everything' by Bill Bryson, then searched for the book. Running in debug mode, I see that your plugin found the book with 100% confidence. However, it then crashed with the following traceback: Code:
Traceback (most recent call last): File "calibre_plugins.overdrive_link.dialogs", line 79, in do_book AttributeError: 'ApplyProgressDialog' object has no attribute 'ids' |
|
|
|
|
|
#5 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 4986
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde 4 NT
|
Thanks for the feedback. I had made a last minute change and should have tested it. A fix (version 1.0.1) is available in the first post.
Last edited by jhowell; 08-15-2012 at 11:45 AM. |
|
|
|
|
|
#6 |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
1.0.1 works as advertised.
G |
|
|
|
|
|
#7 |
|
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,033
Karma: 1025474
Join Date: Nov 2007
Location: US
Device: Sony 700; Entourage Edge, Kindle 3, Pocket Edge
|
Excellent! Will try after work...
__________________
User of both the 10" EE & 7" PE. Visit edge/pocket edge forum. calibre User Manual. |
|
|
|
|
|
#8 |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
Removing libraries in the Customize dialog doesn't remove the corresponding entries from the plugin dropdown list.
G Edit: Maybe I misunderstood the logic. Because the IDs were still associated with the book from the other libraries, maybe that's why they still show up, even though the other libraries were disabled. Last edited by GRiker; 08-14-2012 at 02:12 PM. |
|
|
|
|
|
#9 | |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 4986
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde 4 NT
|
Quote:
So selecting a book and then clicking the plugin's icon will always show the links established for that book, whether or not the library still exists in the configuration. You can remove a link by either deleting the 'odid' identifier under Ids in the Edit Metatdata dialog for the book or by putting the library back into the configuration and selecting 'Unlink selected book...' from the plugin's menu. (The unlink function only removes links for configured libraries. It leaves links to unconfigured libraries alone. I may rethink that in a future release.) |
|
|
|
|
|
|
#10 |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
If you don't normally keep the Book Details panel open (I don't), here's how to create a custom column to show books identified as available at your library by this plugin.
1) Create a custom column with a lookup name of 'at_library' and a Column heading of 'Available at Library'. Column type should be 'Column built from other columns', and the 'Show checkmarks' checkbox should be enabled. 2a) If you want the checkmarks associated with a particular Overdrive library, enter the following in the template field: Code:
{identifiers:contains(ocls.lib,Yes,)}
2b) If you want the checkmarks associated with any discovered Overdrive books, enter the following in the template field: Code:
{identifiers:contains(odid,Yes,)}
After creating the custom column, you will need to restart calibre for the changes to take place. After restarting, any books identified as available from your local library by the Overdrive Link plugin will be shown with a checkmark. G Last edited by GRiker; 08-15-2012 at 11:25 AM. Reason: Added template for any Overdrive library |
|
|
|
|
|
#11 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 4986
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde 4 NT
|
Found a bug that could potentially cause a crash of Calibre. Released version 1.0.2.
|
|
|
|
|
|
#12 |
|
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,033
Karma: 1025474
Join Date: Nov 2007
Location: US
Device: Sony 700; Entourage Edge, Kindle 3, Pocket Edge
|
@jhowell - I like it!
__________________
User of both the 10" EE & 7" PE. Visit edge/pocket edge forum. calibre User Manual. |
|
|
|
|
|
#13 | |
|
Gadget Freak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,033
Karma: 1025474
Join Date: Nov 2007
Location: US
Device: Sony 700; Entourage Edge, Kindle 3, Pocket Edge
|
Quote:
@jhowell - Couldn't this be added to the plugin so that it would be automatic and not require manual configuration.
__________________
User of both the 10" EE & 7" PE. Visit edge/pocket edge forum. calibre User Manual. Last edited by Gunnerp245; 08-15-2012 at 09:19 AM. Reason: Clarification |
|
|
|
|
|
|
#14 | |
|
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,170
Karma: 58793
Join Date: Mar 2009
Device: iPad
|
Quote:
Code:
{identifiers:contains(odid,Yes,)}
G Last edited by GRiker; 08-15-2012 at 11:25 AM. |
|
|
|
|
|
|
#15 | |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 4986
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde 4 NT
|
Quote:
Regarding the automatic creation of a custom column for library availability: While several existing plugins rely on custom columns, I don’t know of any that automatically creates a custom column. Perhaps someone with more experience with the internals of Calibre could comment on this. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 1419 | 05-20-2013 01:14 PM |
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 140 | 05-04-2013 11:27 AM |
| [GUI Plugin] EpubSplit | JimmXinu | Plugins | 89 | 05-03-2013 10:54 AM |
| [GUI Plugin] EpubMerge | JimmXinu | Plugins | 77 | 03-16-2013 09:35 AM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |