View Single Post
Old 06-04-2021, 11:54 PM   #12
Bradles
Zealot
Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.
 
Bradles's Avatar
 
Posts: 112
Karma: 35586
Join Date: Nov 2020
Location: Perth, Western Australia
Device: Apple Books & Kobo Libra H20
LibraryThing Custom Columns

Here are a couple of custom columns I added that link to the LT website. (See attached images for configuration.)

LT Find: Direct link to your book on librarything.com, or search if it doesn't exist.

Template

Code:
program:
    id = select(field('identifiers'), 'ltid');
    if id then
        strcat('<a href="https://www.librarything.com/work/book/', id , '">', field('title'), '</a>')
    else
        strcat('<a href="https://www.librarything.com/title/', field('title'), ' ', field('author'), '">', field('title'), '</a>')
    fi;

LT Add: Direct link to your book on librarything.com, or an "add books" search using Title + Author.

Template

Code:
program:
    id = select(field('identifiers'), 'ltid');
    if id then
        strcat('<a href="https://www.librarything.com/work/book/', id , '">', field('title'), '</a>')
    else
        strcat('<a href="https://www.librarything.com/addbooks?search=', field('title'), ' ', field('author'), '">', field('title'), '</a>')
    fi;
If you add tags when adding books you need to enter the tags and re-search.
Attached Thumbnails
Click image for larger version

Name:	LT Find Column.png
Views:	784
Size:	65.1 KB
ID:	187491   Click image for larger version

Name:	LT Add Column.png
Views:	775
Size:	68.1 KB
ID:	187492  
Bradles is offline   Reply With Quote