Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-13-2020, 10:42 AM   #1
SallyK
Enthusiast
SallyK began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2010
Device: Kobo GloHD
Problem with title link custom column

For the last few years I've been using a custom column which somebody posted here, which makes the title as it appears in the sidebar a link to where the text was downloaded from.

Recently I've started getting an error message, instead of the link, and I was hoping somebody might be able to help me with what I need to change to make it work again. Thank you to anyone who can help.

The error message I'm getting is:
EXCEPTION: Formatter: Missing closing parenthesis near ';'

and the custom column command is:
Code:
{identifiers:'
    strcmp(
        assign(title, field('title'));
        substr($, 0, 4),
        'url:',
        title,
        strcat('<a href="', substr($, 4, 0), '">', title, '</a>'),
        title,
    )
'}
SallyK is offline   Reply With Quote
Old 12-13-2020, 12:31 PM   #2
chaley
Grand Sorcerer
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: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
That template worked because of a (fixed) bug in the template language.

Use this instead
Code:
{identifiers:'
    title = field('title');
    strcmp(
        substr($, 0, 4),
        'url:',
        title,
        strcat('<a href="', substr($, 4, 0), '">', title, '</a>'),
        title
    )
'}
chaley is offline   Reply With Quote
Advert
Old 12-18-2020, 09:00 AM   #3
SallyK
Enthusiast
SallyK began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2010
Device: Kobo GloHD
Ah, I wondered if it was something like that - I tried tweaking it, but simply don't know enough to be able to get it to work. Thank you for giving me an updated version, it's very much appreciated.
SallyK is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Column Title Only tarisea Library Management 3 09-14-2015 04:07 PM
Remove nested title in a custom column leftright Library Management 6 01-23-2015 11:11 PM
Creating a Custom Column Link a_daley Library Management 5 02-16-2014 06:56 AM
Custom column problem Statch Calibre 6 06-14-2013 03:03 PM
Is it possible to sort a custom column like authors or title? arspr Library Management 2 03-15-2011 05:44 PM


All times are GMT -4. The time now is 07:52 AM.


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