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

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2012, 11:14 PM   #1
jhowell
Groupie
jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.
 
jhowell's Avatar
 
Posts: 192
Karma: 59999
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde PW II
[GUI PLUGIN]Overdrive Link - Version 1.24.0

UI Plugin to Link Books in calibre to Lending Libraries

Many communities use OverDrive, 3M Cloud Library, (Baker & Taylor) Axis 360, EBSCOhost, Enki Library, Freading, Hoopla and OneClickdigital to handle their lending library services for e-books and audiobooks. Some lending libraries use multiple service providers, with different book collections available though each. E-book lending is also available from Amazon, Open Library, Oyster and Scribd. Checking libraries for books of interest can be tedious for large numbers of books and multiple libraries, especially since libraries add to their collections over time.

The purpose of the Overdrive Link user interface action plugin is to search lending libraries for borrowable e-books and audiobooks 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 lending library at which they have borrowing privileges.

The plugin can also detect books that are not available in the lending library's collection, but can be recommended for future acquisition by the library, and provides access to the web page from which the recommendation can be made.

The plugin can also discover books from known authors or about particular subjects missing from the user's calibre library. These can be selectively added as "empty" calibre books.

The plugin is also able to search on-line bookstores to determine whether a title is available in e-book form and provides links to the web pages from which purchases can be made.

For the plugin to be useful the user must have borrowing privileges at a lending library powered by one of the supported service providers. Check your local community library for possible access. In addition some libraries, such as the Free Library of Philadelphia, allow borrowing by non-residents for a small fee.


Main Features:
  • Searching of OverDrive, 3M Cloud Library, Amazon, Axis 360, EBSCOhost, Enki Library, Freading, Hoopla, OneClickdigital, Open Library, Oyster and Scribd powered lending libraries for e-books and audiobooks matching selected books from the calibre library.
  • Detection of books that can be recommended to a library for acquisition or purchased from a store.
  • Detection of books by known authors that are missing from the calibre library.
  • Detection of books that are missing from the calibre library using topic keywords.
  • Creating links from calibre books to web pages from where they can be borrowed, recommended or purchased.
  • Searching for and selecting calibre books based on previously established links.
  • Display of links in the Id section of the book details panel or the plugin menu.
  • Unlinking of books on demand.
  • Configuration of lending libraries and search parameters.
  • Help display with additional information.

Usage Details:
Spoiler:


Library Configuration

Library and other configuration options can be accessed using the Customize plugin menu choice.

The plugin supports multiple lending libraries. Individual libraries and their relative priorities are set in the plugin's configuration. Each library is identified by a short, unique name (chosen by the user), its service provider and a library-id. Configured libraries will only be used for searching and unlinking if they are enabled in the configuration by checking the first column.

The default configuration contains some sample libraries that can be enabled for searching. Additional libraries can be added as needed using the (+) button and existing libraries can be removed using the (-) button.


OverDrive

OverDrive is the largest provider of lending library services. Books are available in EPUB and PDF formats via Adobe Digital Editions and Kindle formats via Amazon. Audiobooks are also available. Some OverDrive libraries allow recommendation of books for future acquisition.

You can find libraries supported by OverDrive by selecting the Library Search tab at http://search.overdrive.com. For OverDrive powered libraries the library-id is the host name of the library web site (e.g.: freelibrary.lib.overdrive.com for the OverDrive site of the Free Library of Philadelphia). This can be found by examining the browser address bar after surfing to the library.

Some OverDrive libraries require a user to sign in before the catalog of the library can be searched. Also, OverDrive Advantage allows individual lending libraries that are members of a consortium with a shared collection to have additional titles that are only available when their patrons are signed in. A list of branches with Advantage titles can be found at the page ODAdvantage.htm on your library website.

The plugin configuration has optional fields for the user's credentials for each lending library: branch ID number, library card number and PIN. Entering this data is not required and will only be useful if your lending library has OverDrive Advantage titles or requires a sign in before allowing searches.

If you choose to configure your library credentials in the plugin, then a library card number is required. Some, but not all, libraries also require entry of a branch ID and/or PIN during sign in.

If your library normally prompts for the selection of a specific branch during sign in, the corresponding branch ID number will need to be entered as part of the configuration. This number can sometimes be found by observing the URLs being accessed during a manual sign in to the library. Look for something in the form of:

https://secure29.libraryreserve.com/library2go.lib.overdrive.com/80F91AB0-A5FE-41B7-8704-B2BEBE3A39E8/10/438/en/SignIn2.htm?branchid=120&URL=MyAccount.htm

As an alternative, you can enter your library card and PIN in the plugin configuration, but leave the branch ID field blank, check the first column to enable the library, and then perform a search for any book. The sign in process will fail, but the log of the search should contain a list of valid branches for the consortium along with their corresponding branch ID numbers.

Some libraries do not require a PIN or additional data field beyond the library card number. In those cases leave the PIN field blank in the configuration.


3M Cloud Library

Some lending libraries use 3M Cloud Library in addition to, or instead of, OverDrive. Books are available in EPUB and PDF formats via an application compatible with Adobe Digital Editions. Audiobooks will be available from some libraries starting in August 2014. 3M supports recommendation of books for future acquisition at some libraries.

You can find libraries supported by 3M by using Lookup your library at http://3m-ssd.implex.net/cloudapps. The library-id can be found by going to the library web site and examining the browser address bar for the portion of the URL following /library/. For the Brooklyn Public Library the web site is http://ebook.3m.com/library/bpl/ and so the library-id is bpl.


Amazon

Amazon Kindle Unlimited allows borrowing up to ten e-books at a time with no holds or waits for a monthly fee. The Amazon Kindle Owners' Lending Library is available to Amazon Prime members and allows borrowing of one e-book per month on a registered kindle device. Both services offer a similar, limited collection of books from which to choose.

When configuring, the library-id should be prime for the Kindle Owners' Lending Library, unlimited for Kindle Unlimited, kuwn for Kindle Unlimited with Narration, w4v.store for purchasable e-books supporting Whispersync for Voice, or store for all purchasable Kindle e-books. Prefix the library-id with uk- for Amazon UK. Multiple collections can be searched by creating separate library entries for each in the configuration table.

Searches at Amazon do not always provide complete results, so books may sometimes appear to be removed and re-added to collections when nothing has actually changed. Also, editions of public domain works are added and removed frequently leading to many changes found for those books.

The general configuration option Set amazon identifiers when links to Amazon Kindle editions are added causes the amazon book identifier to be updated to point to kindle editions discovered during search.

Somewhat faster searches can be performed at Amazon US by supplying developer credentials for the Amazon Product Advertising API in the library configuration. The card number should be set to your access key ID and the card pin set to the corresponding secret key. You can register to become an Amazon Product Advertising API developer at https://affiliate-program.amazon.com...i/sign-in.html.

Currently, only the US Amazon site at http://www.amazon.com and the the UK Amazon site at http://www.amazon.co.uk are supported by the plugin. Searching the Kindle Owners' Lending Library is not supported for Amazon UK.


Axis 360

Axis 360 provides access to a variety of titles, including a large collection of children's books. Books are available in EPUB and PDF formats via Adobe Digital Editions, and also in Blio e-book format and Acoustik audiobook format.

Find libraries using http://btol.com/axis360/find-a-library.htm. The library-id can be found by inspecting the host name in the browser address bar for the portion preceding axis360.baker-taylor.com. For the Orange County (Florida) Library System the Axis 360 web site is http://ocls.axis360.baker-taylor.com/ and so the library-id is ocls.


EBSCOhost

EBSCOhost provides research databases mainly for academic libraries, but also supports e-books and audiobooks. These are mostly reference books and public domain titles, but can include popular books published by Random House. Books may be read online and some are available to download in EPUB or PDF format via Adobe Digital Editions. Audiobooks formats are MP3, WMA and M4B.

Access to the catalog of books for a library requires authentication. EBSCOhost supports a variety of authentication methods and the correct one must be used for each library. Some libraries require the user to be physically present for access. Some require a patron id to be assigned by library staff. Some require the user to sign in at the main library site, which then redirects the web browser to EBSCOhost.

The branch-id in the configuration selects the type of authentication used to sign in to the EBSCOhost library. It may take some experimentation to determine the authentication needed for a particular library. Only a subset of the authentication methods used by EBSCOhost are supported by the plugin.
  • athens - Athens Authentication - Not supported
  • cpid - Patterned ID - Library card number and pin.
  • custuid - Patron ID - Library-specific user id and password.
  • ip - IP Address - Sign in allowed only from a computer located at the library or via VPN.
  • lib=http://... - Library controlled - A login page at the main library site redirects to EBSCOhost after sign in. Login pages vary by library. This plugin may need changes to support some of these.
  • shib - Shibboleth Authentication - not supported
  • uid - User ID and Password - EBSCO user id and password
  • url - Referring URL - Use lib=... for this type of authentication.
  • user - Personal User Authentication - EBSCO user id and password

The library-id must match the EBSCOhost customer id assigned to the library. This can sometimes be obtained from the URL used for library access. For example, Fairfax County Public Library is accessed via:

http://search.ebscohost.com/CPIDLogin.asp?custid=s4132146&profile=ehost&defaultdb=nlebk

The card-number and pin fields in the configuration must be set to the user's id and password for the EBSCOhost library.

Due to the need for authentication, clicking links created by the plugin in calibre to open a book's page at an EBSCOhost library will not work if the user is not already signed in to the proper library in their web browser. It also will not work if EBSCOhost is accessed via a proxy URL provided by the library.


Enki Library

Enki Library provides access to a collection of mostly indie-publisher e-books available through multiple library systems in California. Books are in EPUB and PDF formats, delivered via Adobe Digital Editions.

The library-id, card number and pin should all be left blank in the configuration. The web site to access Enki Library is http://enkilibrary.org.


Freading

Freading provides access to many older titles. Books are available in EPUB and PDF formats via Adobe Digital Editions. It allows a set number of checkouts per week, based on a credit system, with no holds or waits. It appears that the same e-book collection is available at all libraries, however this may not always be the case.

Find libraries using http://www.freading.com/libraries/chooser. The library-id can be found by inspecting the host name in the browser address bar for the portion preceding freading.com. For the Free Library of Philadelphia the Freading web site is http://freelibrary.freading.com and so the library-id is freelibrary.


Hoopla

Hoopla provides access to audio and video media, including audiobooks, playable using a web browser or a proprietary app. The addition of e-books is planned for sometime in 2014. It allows a set number of checkouts per month with no holds or waits. It appears that the same audiobook collection is available at all libraries, however libraries can block access to more expensive titles to reduce cost. Users must register at http://www.hoopladigital.com/register using their library credentials and establish an account (email address and password) to use the system.

If the library-id, card number and pin are all left blank in the configuration then searches will be performed without signing in to Hoopla. Users may instead configure the plugin to sign in to search based on their specific library's collection. The card-number and pin fields in the configuration must be set to the user's email address and password registered with Hoopla. If the library-id is left blank in the configuration the plugin will provide a list of valid library-id's when a search is attempted. The library-id should then be changed to the proper one from the list.


OneClickdigital

OneClickdigital provides access to audiobooks and a small selection of e-books. Audiobooks are playable using a proprietary app. E-books are in EPUB format using Adobe Digital Editions DRM.

The library-id can be found by inspecting the host name in the browser address bar for the portion preceding oneclickdigital.com. For the Austin (TX) Public Library the OneClickdigital web site is http://austinpublictx.oneclickdigital.com and so the library-id is austinpublictx. For those outside of the US enter the full host name as the library-id. For example, essex.oneclickdigital.eu.


Open Library

Open Library provides access to a very large collection of books. Books are available for borrowing in EPUB and PDF formats via Adobe Digital Editions. The PDFs contain scanned page images from print books and the EPUBs are generally of low quality with many OCR errors.

There is a small collection of public domain books available to anyone, called the Lending Library. There is also a much larger collection of books available to patrons of specific libraries, called In Library. Participating libraries can be found at https://openlibrary.org/libraries. Another collection contains accessible books for the disabled. The library-id should be set to the collection to be searched: lendinglibrary, inlibrary or printdisabled.


Oyster

Oyster provides access to e-books readable using a web browser or a proprietary app. It allows unlimited reading with no holds or waits for a monthly fee. It is currently available only in the US.

The library-id, card number and pin should all be left blank in the configuration.


Scribd

Scribd provides access to e-books and audiobooks via a web browser or a proprietary app. It allows unlimited reading with no holds or waits for a monthly fee. Book availability varies by country. Scribd supports recommendation of books for future acquisition. (This plugin supports only published e-books and audiobooks, not user uploaded documents.)

The library-id should be left blank in the configuration. If the card number and pin are all left blank in the configuration then searches will be performed without signing in and Scribd will attempt to determine your country of origin automatically. Users can see the titles available to them by setting the card-number and pin fields in the configuration o the user-id and password registered with Scribd. Login with Facebook credentials is not supported.


Searching for Books

To search for books at configured libraries first highlight the desired book entries within calibre and the choose Search for selected books from the plugin's menu. Searches can take a long time and so are done as jobs. After the search completes, a summary of results is shown. If accepted by the user, identifiers are added to the calibre book metadata for each match found to provide a link back to the lending library web page for that book. These links can be later used to open that web page, either through the plugin's menu or the book details panel.

The Select previously linked books / Available books plugin menu item shows books available for borrowing from any of the configured lending libraries. When selected, these books will have a plugin menu choice of Borrow book from libraryname or Borrow audiobook from libraryname which opens a web browser to the page from which the user can borrow that book.

Only one link per book will be shown under Ids: in the book's details, corresponding to the highest priority library (first in configuration) from which the book is available. A plus sign after the library name indicates that the book is also available from other lending libraries (or in other editions) and the additional links can be found in the plugin menu. A '#' before the library name indicates that the link is to an audiobook.


Discovering Books Missing from calibre

Selecting the plugin menu choice Search for books by selected authors will cause the search to look for the specific books selected and to also save a list of books by the author(s) of the selected books that are found at enabled lending libraries, but not present in the user's calibre library. (Note: Calibre books that are not selected when a search is started are excluded from search by the plugin. If some books by a particular author are selected and others are not when a search is started, then any links found for the non-selected books will be discarded.)

Selecting the plugin menu choice Discover books by keyword will cause the search to look for books that match the selected keywords(s) in their title (or description for some providers), but are not present in the user's calibre library. Keywords are configured using Customize plugin, one set of keywords per line. Examples of keywords are sherlock holmes and megapack. The discover-by-keyword menu choice will not appear unless at least one set of keywords is configured.

After search completion, these results can be accessed using the Manage discovered books choice from the plugin's menu. A table of books is presented and the user can choose the action to be taken for each: add to the calibre library as an "empty" book with minimal metadata (author, title, series, publisher, publication date, isbn, odid, odrid and odpid), ignore so that undesirable books do not appear in subsequent searches, and discard which will eliminate the book from the search results, but allows it to appear again in subsequent searches.

Books previously marked to be ignored can be displayed again using the Show Ignored button. The Update Existing button can be used to check if any of the listed books were recently added to calibre and if so mark them to be updated in calibre (by adding links and missing metadata) and then discarded from the list of discovered books.


Recommending Unavailable Books for Library Acquisition

The search configuration option Check for books that can be recommended for acquisition (slow) will cause subsequent searches to do an additional check to find books not currently in the library's collection, but potentially available to recommend for acquisition. (Some books may be detected that are not truly available for library acquisition due to restrictions by the publisher, such as geographic restrictions.)

The Select previously linked books / Recommendable plugin menu item shows books not currently available in any of the configured lending libraries. When selected, these books will have a plugin menu choice of Recommend book to libraryname which opens a web browser to the page from which the user can issue a recommendation for the library to acquire that book.

Some libraries do not support book recommendations.


Searching for Books Available for Purchase

When the Amazon kindle book store is configured as a search library, the books that are found are listed by the plugin as purchasable.

The Select previously linked books / Purchasable books plugin menu item shows books linked by this search. When selected, these books will have a plugin menu choice of Purchase book from libraryname which opens a web browser to the page from which the user can purchase that book. This can be used to quickly determine which calibre book entries are available in Kindle format via Amazon.


Author Name Variants

The plugin searches for matching books using the primary (first) author of the selected calibre books. Searches are done multiple times with variants of the author's name to improve results, e.g., replacing middle names with initials. This usually works well, but can produce extraneous results for common author names and can miss results for pseudonyms and unusual name variants.

A configuration option (Max authors to search per book) can be used for increase the number of authors searched for books with multiple authors, such as collaborations and anthologies. This increases the likelihood of finding a match at some providers (such as Open Library), but slows the search process. The additional authors will also be used for the discovery of new books.

In order to provide more control over author name searching and matching the plugin configuration has a place for optional Author name variants. These are entered one author per line with the author name as it appears in your calibre library first and any variants on the name to be used for searching following, separated by '&' characters. For example: Stephen King & Richard Bachman

If only a single name is entered then that only that name will be used in searching and no variants will be generated automatically. For example, entering just John Joseph Adams will cause searches for books by that author to exclude books by John Adams or John J. Adams.

Placing an author name in square brackets will prevent searches using that name, even if books by that author are selected for searching. For example: [Deepak Chopra]

For a match to occur between a calibre book and a library book an author listed for one must appear in the author list of the other.


Title Variants

You can adjust the titles of your books in calibre to improve matching by the plugin. When matching book titles, text in parentheses or following a colon is optional and a vertical bar ('|') can be used to separate alternate titles for the same book. Some examples of usage:

A book with an optional subtitle with match with or without it: The Ancestor's Tale: A Pilgrimage to the Dawn of Life

A book that was published under multiple titles can match either one: The Barbie Murders (And Other Stories) | Picnic On Nearside

A book title that has an optional prefix: (The Adventures of) Huckleberry Finn

A book title sometimes prefixed with the series name in library catalogs will match either way if entered in calibre with parenthesis: (High Druid of Shannara) Jarka Ruus

Note that in book matching the plugin will treat the the series name as an optional prefix to the title in order to properly match books that are listed that way at libraries, so the above case is usually handled automatically.


Caching of Book Details

As part of searching, the plugin accesses the web page for each book found by the search in order to obtain all of the information needed for filtering results and matching against calibre books. A cache of library book details is kept in a database file in order to avoid accessing these pages multiple times. Using the cache provides much faster results when searches for books are repeated, but introduces a small chance that outdated information may be used if the book details are updated at the library, which rarely happens.

In order to balance speed against accuracy the plugin defaults to keeping book information in the cache for a maximum of 90 days. This can be changed using the plugin configuration option Days to cache library book info. Setting this to zero disables the cache and setting it larger causes information to be kept longer.


Display of Links

Links to libraries are shown in search results and in the discovered book table with the following special characters: "@" indicates a link to an available book, "!" indicates a link to a recommendable book, and "$" indicates a link to a purchasable book. Links to audiobooks contain "#", while links to e-books do not.


Viewing Links as a Custom Column

You can create a custom column in calibre to show books found to be available from a lending library. Choose Preferences -> Add your own columns -> Add custom column. Enter a Lookup name of has_odid and a Column heading of OD (or any other description you desire.) The Column type should be Column built from other columns, select Show checkmarks and Sort/search column by should be set to Yes/No. Enter the following in the Template field:

{identifiers:contains(odid:,Yes,)}

Replace odid with odrid for recommendable books or odpid for purchasable books.

You will need to restart calibre for the change to take effect.


Removing Links to Lending Libraries

Removing a lending library from the plugin's configuration has no effect on calibre books that have already been linked to that library. The only noticeable difference is that the links to an unconfigured library will be shown with a default name (based on the provider and library-id) rather than the previously configured name for the library. So selecting a book and then clicking the plugin's icon will always show the links established for that book, whether or not the lending library still exists in the configuration.

You can remove links by either deleting the odid, odrid and odpid identifiers under Ids in the Edit Metadata dialog for the book or by selecting Unlink selected book from the plugin's menu. (The unlink function only removes links for unconfigured libraries and enabled libraries. It leaves unchanged any links to libraries that are configured, but not marked as enabled.)


Restore Default Configuration

The following steps can be used to restore the default configuration for the plugin: From the main Calibre screen select: Preferences -> Miscellaneous -> Open calibre configuration directory. Navigate to the plugins subdirectory and delete the file Overdrive*Link.json.

The library book information cache can be cleared by deleting the file Overdrive*Link*Cache.db in the same directory.


Behind the scenes

The plugin searches each configured library website for matching e-books and audiobooks using variants of the name of the author of the selected calibre books. By default only the primary (first) author is searched, but a configuration option (Max authors to search per book) allows searching for multiple authors for the same book.

If the configuration option to search for recommendable books has been selected then an additional search to find those books is done, increasing search time.

The results returned by a library search request usually do not contain enough information to properly identify books, so a request is made to get the details for each book, unless they were already cached due to a prior search.

The search results are matched against the selected books and a link is created for each matched book. Fuzzy matching is used to detect matches even when there are minor differences. This may sometimes result in missed matches or association of the wrong books.

If the menu choice to save discovered books was used then any search results that do not match books already present in the user's calibre library are retained for examination by the user.

Links to books discovered at libraries are stored in calibre as identifier metadata. The identifier for a book available in a library's collection is odid, the identifier for a book recommendable for acquisition by a library is odrid and the identifier for a book that can be purchased by the user is odpid.

The format of these is book_id@provider_id/library_id for e-books and book_id#provider_id/library_id for audiobooks, where book_id is the identifier used by the provider to identify an edition of a book (e.g.: 36 character content reserve identifier for OverDrive), provider_id identifies the provider of library services (none for OverDrive, '3m' for 3M Cloud Library, 'ak' for Amazon, 'ax' for Axis 360, 'eh' for EBSCOhost, 'en' for Enki Library, 'fr' for Freading, 'ho' for Hoopla, 'ocd' for OneClickdigital, 'ol' for Open Library, 'oy' for Oyster, 'sc' for Scribd) and library_id identifies the specific library.

If a book is available in multiple editions or from multiple libraries there will be additional links, separated by ampersands. For example:

odid:35b81988-9323-4ea9-8a5f-ce92cab0a004@freelibrary.lib.overdrive.com&a1f9399 8-aeb1-4562-9c5d-eceda2243b6d#digitalbooks.brooklynpubliclibrary.or g&ZnJlYWQ6OTc4MDQ4NjExMDUzMDpl@fr/ocls&dot8az9@3m/bpl

A search for identifiers:"=odid:" can be done to find all books in calibre that are available at any lending library. A search for identifiers:"=odrid:@freelibrary.lib.overdrive.com " will show only e-books recommendable at that specific library. Commonly used searches can be performed through the plugin's menu under Select previously linked books. Regular expressions may need to be used for more complex search cases.

The list of discovered books is stored in a hidden part of the calibre library database. This data can be examined in the file metadata_db_prefs_backup.json in the calibre library folder.

The plugin contains an embedded metadata plugin that provides the clickable links in the book details panel for available books. It can be disabled in the main plugin's configuration if this feature is not desired.


Version History:
Spoiler:


Version 1.24.0 - 26 Nov 2014

Handle format name changes at OverDrive that were causing searches to fail. (Elimination of the "Adobe" prefix and addition of library-specific prefixes in some cases.)

Handle Scribd books that go directly to the reading page, without showing the book details. (This happens for some graphic novels.)

Report a warning if a search to discover books by an author detects new links for an existing calibre book by the author, not selected when the search was started. (If you want the links to be added, redo the search with that book selected.)

Detect OverDrive web pages with incorrect HTML (unterminated CDATA sections) and allow them to be parsed properly.

Log more details during search.

Show progress bar if queuing multiple jobs causes a delay.

Small performance improvement in handling large numbers of discovered books.


Version 1.23.1 - 08 Nov 2014

Fix narrator sometimes listed as author for audiobooks at Scribd.

Fix occasional errors while searching due to new default filtering of books containing adult content by Amazon. (These books will not be filtered in plugin search results.)


Version 1.23.0 - 07 Nov 2014

Support searching for audiobooks at Scribd.

Display the search results summary before the detailed job completion log when "View log" is selected in the search completion popup. (The "View log" dialog box can be resized to be more readable than the small search completion pop-up.)

To reduce the size of the search completion popup, the search result summary will no longer be shown by default. The "Show details" button can be used to display the summary. The previous behavior can be restored by selecting "Show result summary in popup" in the plugin configuration.

Shorten the label on the search completion pop-up button from "Yes (without discovered)" to "Non-* only".

Fix search by keyword results being improperly filtered for Scribd and Oyster.

Allow the plugin to be added to the device toolbar.


Version 1.22.1 - 28 Oct 2014

Support additional changes at Amazon that were causing some searches to fail.


Version 1.22.0 - 27 Oct 2014

Add support for e-book lending service Oyster. (Results may be incomplete for some authors due to limitations in the maximum number of results returned by Oyster web search.)

Separate the contents of the search completion summary with blank lines for better visibility in calibre 2.7 and later. (The narrow pop-up often causes individual lines of results to be wrapped.)

Support recent changes at Amazon that were causing some searches to fail.

Show the plugin icon in the search completion pop-up. (calibre 2.7 and later)

Eliminate warning messages for incorrect website behaviors that are known to occur frequently.

Prevent an author name from appearing multiple times for the same book.


Version 1.21.0 - 22 Oct 2014

Support recent changes at Freading that were causing searches to fail.

Add compatibility with completion dialog changes expected in calibre 2.7. With that calibre version it will no longer be possible to change the size or position of the completion dialog. (calibre versions prior to 1.17 are no longer supported.)

Retry OverDrive sign in if URLError Name or service not known occurs during form submission.

Log when searching is skipped because a provider supports none of the configured book formats.

Eliminate logging of library card number during OverDrive sign in.


Version 1.20.0 - 09 Oct 2014

Handle sign in to OverDrive libraries that use external authentication, such as WILBOR (West/Central Iowa Libraries Building Online).

Add pacing of Scribd queries to reduce the chance of being throttled. Add a long delay between queries when throttling is detected.

For Scribd report changes in the number of search results for different pages of the same result set as a warning instead of an error since it happens frequently. (Scribd search results may be incomplete.)


Version 1.19.0 - 01 Oct 2014

Allow searching for purchasable e-books supporting "Whispersync for Voice" at Amazon. (Use library-id w4v.store)

Show all searched books for which no results were found in the "UNCHANGED LINKS" section of the search summary report.

Show configuration errors in red below the table of libraries when editing the library configuration.

Change the search algorithm for Scribd to provide more complete results. This will increase search time in some cases.

Provide corrections for a few books that have known bad metadata at various library sites.

Fix bug that caused Scribd books cached by older plugin releases to be missed by searches.

Fix some cases of links not being removed for discovered books that later become unavailable.


Version 1.18.0 - 24 Sep 2014

Allow searching Kindle Unlimited at Amazon UK.


Version 1.17.3 - 24 Sep 2014

Bug fixes: Fixed incorrect reporting of some previously discovered books with multiple authors as being newly discovered. Treat Scribd book samples as unavailable books. Fixed searching for both e-books and audiobooks in same search at 3M. Escape html in job log.


Version 1.17.2 - 21 Aug 2014

EBSCOhost search debugging.


Version 1.17.1 - 20 Aug 2014

EBSCOhost login debugging.


Version 1.17.0 - 20 Aug 2014

Allow discovery of books based on multiple authors of selected books (instead of just the first author of each book) when "Max authors to search per book" is set greater than one.

Sort e-book links before audiobook links in search results and discovered book table.

Handle EBSCOhost access via a proxy URL.

Minor bug fixes and internal improvements.


Version 1.16.0 - 26 July 2014

Add Kindle Unlimited with Narration as a searchable collection at Amazon. To use add a library with the provider of Amazon and library-id of kuwn.

Prevent searching for books when a search for the same book is already in progress.

Fix bug: When the "Maximum authors per search job" configuration option was at its default value of 0 (no splitting), each author's books was split into an individual search job. For anyone who likes that behavior, it can be achieved by setting the option to 1 instead of 0.

Fix bug where search results from one job could be repeated in another job.


Version 1.15.2 - 24 July 2014

Fix support for Freading, broken by recent changes made at the Freading website.


Version 1.15.1 - 23 July 2014

Fix bug causing Kindle Unlimited searches to not return correct results.


Version 1.15.0 - 23 July 2014

Changed both Amazon and Open Library to require the collection to be searched to be set as the library-id in the plugin configuration. For libraries configured using a previous release of the plugin, prime will be assumed for Amazon and inlibrary will be assumed for Open Library. Update your library configuration if something else is desired.

Added a menu choice, Check and repair book links, which will check the link identifiers for books in the calibre library and discovered books for problems. Any incorrect links will be listed with the option to correct them.

Users of previous versions of this plugin should use Check and repair book links prior to doing any new searches in order to migrate Amazon and Open Library links to be compatible with this plugin version.

Add support for Amazon Kindle Unlimited. (US only.)

Added provider Enki Library.

Fix support for Amazon Kindle Owner's Lending Library (US), which was broken by web site changes made by Amazon.

Remove the configuration option to search for purchasable books. This is replaced by the ability to configure the US Amazon store as a searchable "library".

Add a cache of library books details for faster results when searches for the same books are repeated from time to time.

Treat a failure to get a consistent set of results from Amazon as a warning, instead of an error, since this occurs frequently.

Use regular expression search for Select previously linked books in cases where using the default, sub-string, search method could result in incorrect books being selected.

Minor bug fixes.


Version 1.14.0 - 11 July 2014

Moved to the 'new' calibre database API for better performance. (Requires calibre 1.0 or later.)

Add support for PyQt5 as required for the upcoming calibre 2.0.

Fix bug causing recommendable links to not be removed when a book becomes available at a library.

Retry sign in to an OverDrive library when it fails due to an authentication server problem.

Added plugin tweak "overdrive_link_ignore_login_failure = True", which will cause searches to be performed even if sign in to a library fails.

List links to e-books before audiobooks in plugin menu.


Version 1.13.1 - 08 July 2014

Fix "TypeError: lending_library_search_job() got an unexpected keyword argument 'log'" when not configured to allow multiple search jobs to run simultaneously.


Version 1.13.0 - 08 July 2014

Added providers EBSCOhost, Hoopla and Scribd.

Allow non-US domains for OneClickdigital.

Preliminary support for audiobooks at 3M Cloud Library. (They are expected to become available in August 2014.)

Better support for multiple author books, such as collaborations and anthologies, with a configuration option to control how many of a calibre book's authors are used for searching.

Search by title at Freading for books with multiple authors since Freading doesn't always list authors for those books.

Improve book matching to handle the case of a series name being used as a prefix to book titles. (e.g.: Worldwar: In the Balance and Worldwar: Tilting the Balance)

Add more choices of searchable book format. When searches are done for only e-book or only audiobook formats then pre-existing links for the other type will no longer be removed.

Support the Amazon Product Advertising API for faster searches.

Include a count of warnings in the search completion dialog and add a configuration option to include warning messages in the search completion report.

Minor fixes: Reduce occurrences of reports of excessive library links and report them as warnings instead of errors. Create submenus for large numbers of book links. Combine metadata for discovered books from different library providers. Sort discovered books in search results. Increase pacing delay between Amazon queries. Fix minor bugs.


Version 1.12.3 - 05 June 2014

Fix Freading search results truncated to first 16 due to website changes.


Version 1.12.2 - 30 May 2014

Fix search errors resulting from OverDrive website changes. (Expected # results but found only 0)


Version 1.12.1 - 15 May 2014

Make sure that an error message is displayed upon failure to queue a job completion dialog box.

Fix error (AttributeError: mechanize._mechanize.Browser instance has no attribute replace) when signing in to a library with a branch id.


Version 1.12.0 - 06 May 2014

Starting with this release of the plugin, links to audiobooks and e-books will be kept independently of each other. This makes it possible to search for calibre books with links of one type or the other and to tell which type of links a particular book has by using the plugin menu. Links to audiobooks are indicated in search results and in the discovered books table with a prefix of "#". Menu choices are available to search for calibre books linked to audiobooks. (Links to audiobooks generated by previous versions of the plugin will be treated the same as e-books. New searches will update existing links. Make sure the configuration option "Unlink books if no longer found by search" is set.)

Do author name searches at Freading in both "last, first" and "first last" formats to detect books that are listed at Freading either way.

Handle recent changes to 3M library sites that were causing search failures. (The changes were apparently made to support audiobooks, however no 3M libraries appear to have any audiobooks in their collections at this time.)

Do author name searches with and without accented characters. Previously accented characters were always replaced. This improves searches at 3M.

Excessive links to a single lending library for the same book may indicate that multiple library books have been incorrectly matched to a single calibre book. This sometimes occurs for books of a series all listed under the same name. An excessive number of links will now be reported as an error during search. (Note: There may be cases where a large number of links occur legitimately. For example, classic public domain books are available in a large number of editions. These errors should be ignored.)

Miscellaneous bug fixes: Detect which 3M libraries support recommendations. Fix occasional "Unpaired info" error for 3M books. Fix occasional "ValueError invalid literal for int with base 10". Match abridged/unabridged editions for audiobooks. Retry when Amazon occasionally returns an empty book page. Prevent excessive stripping of book subtitles. Fix reporting of OverDrive branch ids for consortia.


Version 1.11.0 - 21 Apr 2014

Added provider Axis 360.

Handle OverDrive sites that require a session to be established before performing a search (Toronto Public Library).

Support Overdrive sites that require sign in before allowing searches (school libraries).

Treat books with identical isbn as matches, even if titles or authors don't match.

Miscellaneous bug fixes and minor improvements.


Version 1.10.2 - 12 Mar 2014

Handle change made by Overdrive to search results page format.


Version 1.10.1 - 05 Mar 2014

Bug fixes for Amazon support.

Performance improvements.


Version 1.10.0 - 11 Feb 2014

Support additional provider, Amazon Kindle Owners' Lending Library, for US Amazon Prime members. Can search for books that can be borrowed or purchased from Amazon. Can update the 'amazon' book identifier.

Ability to configure author name variants to improve search and match accuracy.

Preserve the dialog box size and position, column sizes and sort order for Manage discovered books.

Show links for recommendable (!) and purchasable ($) books in the discovered books dialog.

Simpler book matching algorithm, eliminating the match confidence configuration parameter.

Faster book matching and handling of discovered books.

Rename associated metadata plugin from "Overdrive Link Helper" to "Overdrive Link".

Miscellaneous bug fixes.


Version 1.9.0 - 24 Dec 2013

Support additional lending library service providers OneClickdigital and Open Library.

Discovery of books by searching using keywords. Useful for finding books about a particular topic regardless of the author.

Remember the size and position of the search results dialog box and display result details immediately without the need to click the Show Details button. (Requires calibre version 1.17 or later.)

Support old-style Overdrive web sites, such as the Boston Public Library, by using search.overdrive.com. This is slower and less accurate than the algorithm used for new-style library sites.

Use worldcat.org to find author names for books in cases where Freading returns none.

Reduce likelihood of incorrectly matching words in titles that sound similar.


Version 1.8.0 - 06 Nov 2013

In addition to Overdrive, supports lending library providers 3M Cloud Library and Freading.

Reverted back to having 'Search for books by selected authors' as a menu choice instead of a configuration option.

After searching to discover new books by selected authors, discovered books are proceeded by '*' in the details and the confirmation dialog now allows the discovered book results to be discarded by choosing "Yes (without discovered)".

Improve searching for anthologies.

Prevent Roman numbers in titles from matching similar numerals.

Unlink was removing links for disabled libraries, which should remain.


Version 1.7.1 - 26 Oct 2013

Fix bugs searching authors with multiple initials or apostrophes in names

Fix error when updating discovered books: NameError: global name 'add_olinks' is not defined

Fix occasional error with previously linked books: ValueError: Olink crid must be a UUID

Reduce visible HTML tags in job details when running as a ParallelJob


Version 1.7.0 - 24 Oct 2013

Searching for books is now done using the individual Overdrive library websites instead of search.overdrive.com. This is faster and produces more complete search results.

Added the search configuration option "Check for books that can be recommended for acquisition (slow)". This causes each subsequent search to perform an additional check for books recommendable for acquisition by a library, but not currently available in the library's collection. The 'odrid' book identifier has been added to store links to these books at Overdrive libraries. Selecting any of the recommendable books that have been linked by a search will enable the menu choice of "Recommend book to libraryname", which will open a web browser to the page that the user can use to issue a recommendation for the library to acquire the book.

Replaced the "Search Overdrive for books by selected authors" menu item and "Save discovered unavailable books" configuration option with the new search configuration option, "Discover more books by authors of selected books". During search, this will save information about any newly discovered books by the authors of the selected books that are not currently present in calibre. The menu choice to manage this list has been renamed from "Manage Search-by-authors results" to "Manage discovered books".

In search results the links to available books in the library collection are displayed as "@libraryname" and links to books that can be recommended for acquisition are displayed as "!libraryname".

The submenu choices of "Select previously linked books" have been changed. "Select all previously linked books" is now "Select all available books". There is a new section with "Select all recommendable books" and select recommendable books at individual libraries. The recommendable books choices will not select books that are available from a library.

Renamed the configuration option "Allow multiple simultaneous jobs" to "Allow search jobs to run simultaneously".

Renamed the configuration option "Automatically select modified books" to "Mark changed books". This option will mark books that have been modified by the plugin, but will no longer cause a search for the marked books to be performed afterwards.

Eliminated the configuration options "Exclude books with tags matching" and "Proxy URL".


Version 1.6.0 - 18 Jun 2013

Handle parsing of recent change to Overdrive library websites

Option to split large searches into multiple jobs

Option to exclude books from search based on tags

Option to change search language, defaults to English

Option to save discovered, but unavailable, books to be excluded from future searches


Version 1.5.0 - 14 Mar 2013

"Discard Existing" changed to "Update Existing" in the "Manage Search-by-authors results" dialog (Updates Overdrive links of corresponding calibre books that were manually added subsequent to a search.)

Optional configuration of a SOCKS proxy to be used when searching Overdrive

More frequent updates to search job status and progress


Version 1.4.0 - 13 Feb 2013

Support Overdrive library consortia that require a branch to be selected during sign in

Fix exception when changing the priority of a newly configured Overdrive library


Version 1.3.2 - 15 Jan 2013

Fix incorrect handling of authors in last,first format in some cases

Find book matches by including partial title when a search by only author exceeds the search limit


Version 1.3.1 - 06 Jan 2013

Fix exception when attempting to configure a new library


Version 1.3.0 - 29 Dec 2012

Optional sign in with user's credentials to detect additional books available through Overdrive Advantage

Handle further changes in the Overdrive website redesign

Extend timeouts for slow responding websites


Version 1.2.2 - 06 Dec 2012

Handle changes at Brooklyn Public Library website

Additional default sample libraries


Version 1.2.1 - 20 Sep 2012

Bug fix for occasional error in menu display


Version 1.2.0 - 19 Sep 2012

Generate the menu actions ahead of time for compatibility with keyboard shortcuts and the Favourites Menu plugin.

Show both regular search and search for other available books by author in the plugin menu.

Performance improvements in 'Manage Search-by-author results' dialog.


Version 1.1.0 - 06 Sep 2012

Added searching by author for available Overdrive books that are missing from the calibre library.

Improvements to the fuzzy matching algorithm for titles and authors.

Reorganization of configuration options.

Reorganization of search results report.


Version 1.0.2 - 14 Aug 2012

Bug fix. (Prevent possible crash!)


Version 1.0.1 - 14 Aug 2012

Bug fix. (object has no attribute 'ids')


Version 1.0.0 - 14 Aug 2012

Initial release.



Special Notes:
  • Requires calibre version 1.17.0 or later.

Installation Notes:
  • Download the attached zip file, install the plugin and restart calibre as described in the Introduction to plugins thread.
  • Select Customize plugin from the plugin menu (or via Preferences -> Plugins).

Attached Files
File Type: zip Overdrive Link.zip (340.0 KB, 1108 views)

Last edited by jhowell; 11-26-2014 at 03:33 PM. Reason: Version 1.24.0
jhowell is offline   Reply With Quote
Old 08-14-2012, 01:25 AM   #2
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,235
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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).
theducks is offline   Reply With Quote
 
Advertisement
Old 08-14-2012, 12:29 PM   #3
jhowell
Groupie
jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.
 
jhowell's Avatar
 
Posts: 192
Karma: 59999
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde PW II
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.
jhowell is offline   Reply With Quote
Old 08-14-2012, 02:03 PM   #4
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
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'
G
GRiker is offline   Reply With Quote
Old 08-14-2012, 02:31 PM   #5
jhowell
Groupie
jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.
 
jhowell's Avatar
 
Posts: 192
Karma: 59999
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde PW II
Quote:
Originally Posted by GRiker View Post
...
However, it then crashed with the following traceback:
...
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 12:45 PM.
jhowell is offline   Reply With Quote
Old 08-14-2012, 02:45 PM   #6
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
1.0.1 works as advertised.

G
GRiker is offline   Reply With Quote
Old 08-14-2012, 02:46 PM   #7
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,129
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, PE, Note 8
Excellent! Will try after work...
Gunnerp245 is offline   Reply With Quote
Old 08-14-2012, 02:57 PM   #8
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
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 03:12 PM.
GRiker is offline   Reply With Quote
Old 08-14-2012, 03:39 PM   #9
jhowell
Groupie
jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.
 
jhowell's Avatar
 
Posts: 192
Karma: 59999
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde PW II
Quote:
Originally Posted by GRiker View Post
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.
Removing an Overdrive library from the plugin's configuration has no effect on books that have already been linked to that library. The only noticible difference is that the links to an unconfigured library will be shown with a default name (based on the host name) rather than the previously configured short name for the library.

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.)
jhowell is offline   Reply With Quote
Old 08-14-2012, 05:12 PM   #10
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
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,)}
'ocls.lib' should be replaced with the first part of the web address of your library. You can see these addresses in the Customize dialog of the plugin. They are unique for each Overdrive library.

2b) If you want the checkmarks associated with any discovered Overdrive books, enter the following in the template field:
Code:
{identifiers:contains(odid,Yes,)}
3) 'Sort/search column' should be set to 'Yes/No'

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 12:25 PM. Reason: Added template for any Overdrive library
GRiker is offline   Reply With Quote
Old 08-14-2012, 06:31 PM   #11
jhowell
Groupie
jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.
 
jhowell's Avatar
 
Posts: 192
Karma: 59999
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde PW II
Found a bug that could potentially cause a crash of Calibre. Released version 1.0.2.
jhowell is offline   Reply With Quote
Old 08-15-2012, 10:15 AM   #12
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,129
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, PE, Note 8
@jhowell - I like it!
Gunnerp245 is offline   Reply With Quote
Old 08-15-2012, 10:18 AM   #13
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,129
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, PE, Note 8
Question

Quote:
Originally Posted by GRiker View Post
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. G
@GRiker - Thanks! I was going to ask how to do just that. But what if more than one Overdrive library was used?

@jhowell - Couldn't this be added to the plugin so that it would be automatic and not require manual configuration.

Last edited by Gunnerp245; 08-15-2012 at 10:19 AM. Reason: Clarification
Gunnerp245 is offline   Reply With Quote
Old 08-15-2012, 12:21 PM   #14
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by Gunnerp245 View Post
@GRiker - Thanks! I was going to ask how to do just that. But what if more than one Overdrive library was used?
You can change the logic of the template to show a check mark whenever there's any odid content associated with the book:
Code:
{identifiers:contains(odid,Yes,)}
I'll edit my original post to reflect this alternative.

G

Last edited by GRiker; 08-15-2012 at 12:25 PM.
GRiker is offline   Reply With Quote
Old 08-15-2012, 12:27 PM   #15
jhowell
Groupie
jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.jhowell never is beset by a damp, drizzly November in his or her soul.
 
jhowell's Avatar
 
Posts: 192
Karma: 59999
Join Date: Nov 2011
Location: Florida
Device: iPad 2, Kinde PW II
Quote:
Originally Posted by Gunnerp245 View Post
@GRiker - Thanks! I was going to ask how to do just that. But what if more than one Overdrive library was used?

@jhowell - Couldn't this be added to the plugin so that it would be automatic and not require manual configuration.
I’d also like to thank GRiker for the custom column idea. It does make the presence of library links much more visible.

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.
jhowell 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
[GUI Plugin] FanFictionDownLoader JimmXinu Plugins 3596 Today 01:14 PM
[GUI Plugin] EpubMerge JimmXinu Plugins 186 12-16-2014 01:17 PM
[GUI Plugin] EpubSplit JimmXinu Plugins 151 11-07-2014 12:06 PM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 286 10-30-2014 10:25 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


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


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