![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
Clickable Book IDs on Book details pane
Is it possible to add clickable Book Ids on the Book Details pane (right side of the UI)?
Or else, can I make clickable references using the Calibre URL scheme in some field? I have tried adding <calibre://show-book/mylib/100> in comments, but it isn't clickable. Use case would be to create a custom column for "Related Titles" or "See this", then add some Book IDs, that could be clicked on the details pane to select the linked titles. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,137
Karma: 42930575
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Theoretically I think this would be possible if you use a tag-like column to store the book IDs and then a composite (taglike?) HTML column to build them into URLs. I'm not sure how it'd work in practice.
Take a look at this post, though it's using the built-in identifiers rather than a custom column to build from: https://www.mobileread.com/forums/sh...12&postcount=2 Last edited by ownedbycats; 09-20-2022 at 10:21 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
It never ceases to amaze me how many Calibre "hidden" features I keep forgetting and rediscovering.
I knew there was a template editor for custom columns, but couldn't find it... ![]() The secret portal is on the right-click, as shown in attached cap! |
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
The most I was able to do, so far, was create custom columns for isbn and amz identifiers, using the approach from your referenced post:
Code:
{identifiers:select(isbn)} ![]() In trying to guess how to do this, I got template errors for {select(book_id)} and {select(id)}... The search id:"=22" returns "book number 22" in the library. Shouldn't {select(id)} work? ![]() edit: all I needed was simply {id} in the template field. Now, on to the tricky part... edit 2: Well, while it was nice to have the built-in 'id' show up in details panel (which wasn't selected in "displayed metadata"), I think what I wanted is too difficult to implement without some plugin interaction. Last edited by Comfy.n; 09-21-2022 at 01:44 AM. |
![]() |
![]() |
![]() |
#5 | |
null operator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,085
Karma: 22590181
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
With the values I entered, this HTML is generated Code:
<p><a href="calibre://show-book/_hex_-54657374/311"><span style="color: #6cb4ee">The Fishing Fleet</span></a></p> |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
Quote:
![]() Hey BR, what programs do you recommend for screenshots? While I love MWSnap, for its auto-saving template and other features, I miss annotations/drawing capabilities. Last edited by Comfy.n; 09-21-2022 at 02:09 AM. |
|
![]() |
![]() |
![]() |
#7 |
null operator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,085
Karma: 22590181
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Today I mainly use Windows snip and sketch, and annotate with IrfanView. Before S&S came along I used Greenshot. If S&S had autosave it would be perfect - for me.
BR |
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
Very nice to see that IV has that arrow feature in the Paint Dialog, I think that's essential for screenshot annotation. If XnView had that, it would be perfect :P
|
![]() |
![]() |
![]() |
#9 |
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 5057547
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Another way to do this is to generate the links directly in a composite column. An example template is attached.
This template depends on there being a column 'Text behaves like tags' named #comp2 that contains the book ids of interest. (I reuse existing test column names.) The template in column #comp3 (composite, contains html) generates a comma-separated list of clickable links from the book ids in #comp2. See the screen capture. You would normally hide #comp3 in the book list. You would of course change the lookup names to the columns you made. Note also the column #comp2. This contains the template {id} so I can easily see them. Having this is up to you. It certainly isn't necessary. Once set up, this is easier than pasting links into comments. The list of ids in the column is easily editable, with the resulting links automatically generated. Here is the template. It requires calibre 6.5. Code:
program: j = ''; for id in $#mytextmult: if j then j = j & ', ' fi; j = j & '<a href="' & 'calibre://show-book/_hex_-' & to_hex(current_library_name()) & '/' & id & '">' & id & '</a>' rof Enhancement: the template could verify that the id actually exists, which can happen because of an input error or deleting a book. If the id doesn't exist then a message is displayed. Something like this: Code:
program: j = ''; for id in $#mytextmult: if j then j = j & ', ' fi; id_exists = book_count('id:' & id, 0); if id_exists != 1 then j = j & 'No such id ' & id else j = j & '<a href="' & 'calibre://show-book/_hex_-' & to_hex(current_library_name()) & '/' & id & '">' & id & '</a>' fi rof |
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
I ended up creating three custom columns:
Note: after clicking the calibre URL, the Related Title gets selected. But I noticed that, when there's an active query on the library (search bar contains any expression), it doesn't get visually selected, unless it is one of the results of that expression Last edited by Comfy.n; 09-21-2022 at 06:37 AM. |
![]() |
![]() |
![]() |
#11 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
Quote:
![]() I'm going to test that ASAP. |
|
![]() |
![]() |
![]() |
#12 | |
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 5057547
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
<a href="calibre://show-book/mylib/{#rel_id}">{#rel_id}</a> |
|
![]() |
![]() |
![]() |
#13 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
Quote:
I had tried inserting the <a> tag before, but for some reason it didn't "take". ![]() Later I'll have more time to play with all these custom columns you've remarkably contributed to Calibre. Last edited by Comfy.n; 09-21-2022 at 06:25 AM. |
|
![]() |
![]() |
![]() |
#14 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 2636542
Join Date: Sep 2020
Device: Calibre E-book viewer/ PW3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#15 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,451
Karma: 48895676
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to style (CSS) Custom columns/fields in Book details pane? What are their IDs? | 01100001 | Library Management | 4 | 09-16-2022 11:06 AM |
book details pane | tracis035 | Calibre | 7 | 11-04-2016 12:00 AM |
Is there a way to change the color of the clickable links in the book details pane? | nalyd | Calibre | 3 | 07-08-2016 02:38 AM |
Calibre:Book Cover size in Book Details side pane & Edit Metadata Individually window | Volfer | Calibre | 3 | 01-05-2016 01:56 PM |