View Single Post
Old 03-16-2024, 11:14 AM   #26
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,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
Unfortunately, the one in post #19 does not work for me.
Both templates already show the same error (Calibre 7.7)

But my feeling tells me that the problem is in front of the computer.
Those stored templates won't work in the template tester because they require an argument, the column name. That is why I supplied the template searches, which provide the needed argument to the stored templates.

You can also test the stored templates using the "Test" button in the Stored template dialog, but it isn't much of a test as it looks at only the currently selected books. For example, it you press the Test button and enter
Code:
get_one_book_per_field_value('authors')
you will see a 1 or an empty string for each book.
chaley is offline   Reply With Quote