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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2019, 05:45 PM   #1
SMNonMR
Member
SMNonMR began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Aug 2014
Device: Kindle Keyboard, Nook, and Android. Oh My!
How to make a custom column URL clickable in CC?

Hello! I'd like to take advantage of the new feature in the Calibre Content Server where metadata is now editable. To that effect, I've made a custom column with a link that goes to the story on my server. If I can get it to work, I'd click the link in the Companion app, it would directly open the right webpage from the server, and then I could edit it as needed. (I pretty much just want to input the star rating before I forget.)

So far, I can see my new links in CC but I cannot figure out how to make the link clickable. No matter what format I've tried, it's just text. I've tried it with HTML formatting, as a straight link, and with the "Url:" prefix. In every case, CC displayed text that I cannot click.

For reference, this is my current custom column template that looks nice in Calibre but is not working for CC: <a href="http://192.168.1.14:8080/#book_id={id}&library_id=Calibre_Library&panel=boo k_details">{title}</a>

I'm obviously missing something. Can anyone help me? What format does a URL have to be in Calibre Companion to be clickable? I don't even mind what the link looks like. I just want a version that I can click.

Thanks so much!
SMNonMR is offline   Reply With Quote
Old 10-07-2019, 07:25 PM   #2
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 9,020
Karma: 2737842
Join Date: Jan 2010
Location: UK
Device: Many android devices
The only way to get a clickable link in the current version of CC is to put the HTML into a comment that is "interpreted as HTML". This means that you can't use a template but must instead use plain text.

What does work is to add both a composite custom column containing the books ID and a comment column interpreted as HTML. You would copy the ID value to the clipboard using the template tester, edit the comment column, paste the URL you want, then replace the ID part with what you copied. I would use constant text for the {title} such as "Edit Metadata". You could set the comment column value for all books using a command line script or perhaps a library-closed plugin if you can write such a thing.

Yes, this is a pain because you must do it for every book, but it gets you there. The ID won't change so hard coding it isn't a problem.

You might suggest to Sam that composite columns marked as "display as HTML" be scanned in CC for links.
chaley is offline   Reply With Quote
Old 10-08-2019, 09:08 AM   #3
SMNonMR
Member
SMNonMR began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Aug 2014
Device: Kindle Keyboard, Nook, and Android. Oh My!
Thanks Chaley! I'll give it a try. I think this solution might be beyond my abilities but maybe I can work it out.

I have a very large set of ever-changing books so anything too manual is probably not going to be the timesaver I was trying to achieve.
SMNonMR 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
Adding custom column with any lookup-name gives me empty column as a result? Ahu Lee Library Management 16 06-09-2019 01:14 PM
Move selected data from series column to a new custom column fvdham Library Management 3 06-02-2017 04:49 PM
How to make custom column for Goodreads shelves? Lily7 Library Management 5 08-25-2015 07:44 AM
Custom column returns value based on value of another custom column? calvin-c Calibre 3 09-14-2013 03:24 PM
How can I make an image clickable, and have it redirect you? krausj ePub 4 05-02-2013 08:35 AM


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


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