06-30-2011, 09:25 PM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2011
Device: Kindle 3
|
Adding new ids links in right-side box and Book Details window
I searched on "Identifiers" and didn't find an answer for this, so if I missed the answer I apologize in advance.
What I would like to do is add some new identifier links to the right-side box (and by association the Book Details window) in the Calibre window. Right now, it will shows links for Amazon.com, ISBN, and Google. How can I add links for new Identifiers like 'baen' or 'isfdb'. Examples: ISFDB is the Internet Speculative Fiction Database. All publications are assigned a number that is used in the URL like this: http://www.isfdb.org/cgi-bin/pl.cgi?277373. That url will pull up the book 1632 by Eric Flint. I would like to be able to add 'isfdb:277373' into the Ids fields and have a link for the ISFDB site show in Identifiers on the right-side box (and Book Details window). For the Baen webscription site, the links look like this: http://www.webscription.net/p-379-1632.aspx. So the identifier in the Ids field would look like 'baen:p-379-1632'. Is this something I can do myself, or is this something that needs to be hardcoded. I tried looking everywhere I could think of, but couldn't find any information about this. If a template could be set up for the links, that would be best, because then people could add in links for any web sites they wanted. Thanks in advance, Gary |
06-30-2011, 11:31 PM | #2 |
creator of calibre
Posts: 43,749
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If there is a metadata download plugin for your sites, it should do the trick for you. If not, there's no way to do it short of adding code to calibre.
|
07-01-2011, 01:59 AM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2011
Device: Kindle 3
|
I'm not sure if I'm not understanding you, or you're not understanding me I don't want to download any data. I simply want to create a link that shows up in the Ids: line of the Book Details. For example, putting 'amazon:B00338QEUG' in the Ids field will create the link Amazon.com that shows in the Ids in Book Details. The link can be clicked on to open it up in a browser.
Per your reference to Metadata download plugins, I looked in Preferences -> Plugins for 'Metadata download plugins' but the only ones that started with Metadata were 'Metadata reader', 'Metadata source', and 'Metadata writer' and none of the plugins had 'download' in the title. Can you tell me which plugins create the Google, Amazon.com or Worldcat.org links like in this example?: If I can look at one for an example, I should be able to create my own. Unless they are hardcoded? Also, are there any other Ids that currently work to create links? I couldn't find a list. Thanks. |
07-01-2011, 08:19 AM | #4 |
Addict
Posts: 288
Karma: 1003542
Join Date: May 2011
Device: Google Nexus 7 16GB
|
Just create a new column, call it ISFDB.
Set it to show in Book Details, and move it up under Ids: Then add the links to the column |
07-01-2011, 08:37 AM | #5 | |
Grand Sorcerer
Posts: 11,694
Karma: 6240117
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
There is no guarantee that the plugins do support link creation, but the author of the plugin might want to know if that plugin is missing something. The built-in amazon, douban, and google plugins do, and I am quite sure the kiwidude's plugins do as well. If you want to create new identifier IDs and have them be made into links, then you need to either change calibre's source or provide a metadata plugin that knows how to convert that ID type into a link. |
|
07-01-2011, 07:32 PM | #6 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2011
Device: Kindle 3
|
Quote:
I created a new column that uses the template: {identifiers:select(isfdb)|http://www.isfdb.org/cgi-bin/pl.cgi?|} This lets me use 'isfdb' in the Ids field, so it's easy to use in the tag browser. However, the problem is that the resulting text, e.g. isfdb:280792 which produces Code:
http://www.isfdb.org/cgi-bin/pl.cgi?280792 I looked but couldn't find a function to convert text into a URL. I found a to_HTML() function, but that didn't appear to do what I need. Is it possible to have a to_URL() function be added into Calibre, please? I have to think the code for creating the current links for Google, Amazon.com etc. could be used? Or is it already there to access and I didn't find it? Thanks. |
|
07-01-2011, 08:24 PM | #7 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2011
Device: Kindle 3
|
Oh! I just checked out the changelog for 0.8.8 and saw this...
Quote:
|
|
07-01-2011, 08:42 PM | #8 |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2011
Device: Kindle 3
|
THANK YOU KOVID! :)
WOO HOO! Thanks for adding the HTML markup change into version 0.8.8! You rock, Kovid!
Here's the template I used for ISFDB: Code:
{identifiers:select(isfdb)|<a href="http://www.isfdb.org/cgi-bin/pl.cgi?|">ISFDB</a>} Last edited by Scifibookguy; 07-01-2011 at 09:06 PM. |
07-01-2011, 10:16 PM | #9 |
creator of calibre
Posts: 43,749
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're welcome But, you should thank chaley, that was his idea.
|
07-02-2011, 12:00 AM | #10 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2011
Device: Kindle 3
|
Thanks to chaley!
Quote:
Seriously, though, thanks to Charles also I'll get some money to both Charles and Kovid when I get my next disability check. Now for another request... There's really no reason to show the URL in the main window, so I have the new columns squished down to a minimum width just to know if something in is the field or not. It makes knowing which books still need the ISFDB or Baen link easier to see on the main window. But if the "Show Checkmark" checkbox option could be changed to work with a field being empty or not (or a "Show Checkmark If Not Empty" option is added, or perhaps a "Show Checkmark if HTML code is used" option), for whether to show an X or a checkmark, it would look a lot nicer in the display Right now, I have to add a second column for each id and check for empty Yes or No, to get a checkmark or X displayed. It's not an imperative request, just something that would be nice Maybe some time when you're bored you could make the change... Thanks! *EDIT* Actually, I found that either a green checkmark, or nothing (rather than the red X) looks best, so I went with this for the second column: Code:
{#isfdb:test(yes, )} Last edited by Scifibookguy; 07-02-2011 at 12:19 AM. |
|
07-02-2011, 03:51 AM | #11 |
Grand Sorcerer
Posts: 11,694
Karma: 6240117
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle web browser open links in same window | yifanlu | Kindle Developer's Corner | 65 | 02-05-2014 12:11 PM |
Displaying Book Details display in main window | pnwuser | Library Management | 3 | 01-25-2011 12:46 PM |
Book Details Window Problem | Blossom | Calibre | 11 | 11-14-2010 01:45 AM |
Opening links in a new window | dhbailey | Feedback | 1 | 03-22-2007 04:01 PM |