View Single Post
Old 12-11-2021, 06:36 PM   #213
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,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by dunhill View Post
Hello people could you help me with a template. I want to concatenate the publisher's series with the serial number. What should I put on the note sheet?
Already very grateful
What is the serial number? Your image shows the series, the series index, and a number 3. Where does the 3 come from?

EDIT: never mind, I see it now. You want something like
Code:
program:
	if $series then
		if $#series then
			strcat($series, ' [', $series_index, '/', $#series_index, ']')
		else
			strcat($series, ' [', $series_index, ']')
		fi
	fi
where my custom series lookup name #series is replaced by the lookup name of your custom series column. Also, I might have the order of the numbers reversed.

EDIT 2: This also works, should you prefer Single Function Mode templates.
Code:
{series}{series_index:| [|}{#series_index:|/|]}{#series_index:test(,])}

Last edited by chaley; 12-11-2021 at 07:17 PM.
chaley is offline   Reply With Quote