View Single Post
Old 11-11-2012, 08:14 AM   #8
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: 11,779
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Pepin33 View Post
ˇYes! ˇThat was the answer! Works perfectly with:
Code:
program:format_number(template('[[identifiers:select(my_id)]]'), '{0:g}')
Thank you very much, chaley (and also theducks).
The following template will have better performance, something that might matter if you have thousands of books in your library.
Code:
program:format_number(select(field('identifiers'), 'my_id'), '{0:d}')
chaley is offline   Reply With Quote