View Single Post
Old 12-21-2020, 06:19 AM   #5
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Unfortunately, that removed subitems from all my books.

I just want to remove any subitems from a hierarchical item beginning with Fanfiction or Documentation and Manuals. Alternately, hiding it entirely if that's easier.

At the very least the third list_difference in the OP works, though I just have to add all the items manually.
I still don't understand what you want. Guessing, perhaps this:
Code:
program:
	g = field('#genre');
	list_re_group(g, ',', '.', '^(Fanfiction|Documentation and Manuals)($|\..*$)', '{$}', '')
It removes hierarchical items from the two items but doesn't touch any other item.
chaley is offline   Reply With Quote