View Single Post
Old 05-04-2024, 03:15 PM   #982
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 162
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by chaley View Post
Yes, you can use template-based collections with column-based collections.
You need a "rule" per publisher. For me, the clearest and easiest way is this:
Code:
program:
	switch_if(
		$publisher == 'BEL Editions', 'BEL',
		$publisher == 'Bibebook', 'dp',
		$publisher == 'Baen', 'Baen',
		$publisher == 'Tom Doherty Associates', 'TOR',
		'')
Notes:
  • You can have as many "rules" as you want.
  • The equals comparison is case insensitive.
  • The '' at the end is the default if no comparison matches. You might want to use an actual value there.
  • Having a collection name appear twice, for example in both a column and in the template result, isn't a problem.
Brilliant! That's exactly what I need. Thank you very much for your help.
Mister L is offline   Reply With Quote