View Single Post
Old 09-15-2023, 07:10 AM   #6
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,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by iamagloworm View Post
This works pretty well, however, if there is no age-level tag is copies the genre tags. Is there a way to prevent this?

My cave-man workaround is just to exclude any books missing age-level tags...

Attached is my config that mostly works:


Attachment 203771
To avoid the pre-selection you need to "get fancy".

This works for me. It depends on the tag always being nn-nn with no other leading or trailing characters. It uses the first one it finds. If it desn't find any then it returns ''

The General Program Mode template is
Code:
program:
	for t in $tags:
		if "^\d\d-\d\d$" in t then
			return t
		fi
	rof;
	return ''
The S&R is
Click image for larger version

Name:	Clipboard01.jpg
Views:	74
Size:	156.2 KB
ID:	203772
chaley is offline   Reply With Quote