View Single Post
Old 05-25-2022, 11:33 AM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,024
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I wanted to display links the details pane depending on which ids were available. Here's the original template before I realized it didn't work as intended:

Code:
program:

	first_non_empty(
		if $publisher=='Fanfiction.net' then id = select($identifiers, 'ffnet') fi,
		if $publisher=='Archive of Our Own' then id = select($identifiers, 'ao3') fi,
		id = select($identifiers, 'goodreads'),
		id = select($identifiers, 'ff'),
		id = select($identifiers, 'google'),
		id = select($identifiers, 'url')
		)
Attached Thumbnails
Click image for larger version

Name:	2022-05-25 12_41_31-calibre — __ My Books __ Currently Reading __.png
Views:	139
Size:	316.8 KB
ID:	193972  

Last edited by ownedbycats; 05-25-2022 at 11:47 AM.
ownedbycats is offline   Reply With Quote