Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-16-2023, 02:23 PM   #1
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Group Search issue with Calibre 7.2

After my Grouped Search for authors I get this

Click image for larger version

Name:	Screenshot 2023-12-16 200859.jpg
Views:	1028
Size:	61.7 KB
ID:	205241

It still works, but it looks strange and it only happens with authors who have aliases.
The search is based on authors and #aliases from chaley https://www.mobileread.com/forums/sh...77#post4333077

Author without aliases
Click image for larger version

Name:	Screenshot 2023-12-16 202150.jpg
Views:	1131
Size:	13.5 KB
ID:	205242

Edit after Post was moved: I only noticed it with Calibre 7.2

Last edited by Wiggo; 12-16-2023 at 03:33 PM.
Wiggo is offline   Reply With Quote
Old 12-16-2023, 05:17 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Normal grouped searches are working for me
7.2 on W10
theducks is offline   Reply With Quote
Advert
Old 12-16-2023, 09:12 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There werent any changes to searching in 7.2
kovidgoyal is offline   Reply With Quote
Old 12-16-2023, 11:40 PM   #4
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
I assume not even with Calibre 7.0, but it must come from something.

Have you looked at the screenshot? It looks really strange.
Wiggo is offline   Reply With Quote
Old 12-17-2023, 12:08 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Let's wait for chaley to see it.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-17-2023, 12:31 AM   #6
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,474
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Wiggo View Post
After my Grouped Search for authors I get this

Attachment 205241

It still works, but it looks strange and it only happens with authors who have aliases.
The search is based on authors and #aliases from chaley https://www.mobileread.com/forums/sh...77#post4333077

Author without aliases
Attachment 205242

Edit after Post was moved: I only noticed it with Calibre 7.2
Is pen-names a custom column? Then there should be # before the column name.
Sirtel is online now   Reply With Quote
Old 12-17-2023, 12:41 AM   #7
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
No it isn’t. As the title says it’s a grouped search
Wiggo is offline   Reply With Quote
Old 12-17-2023, 08:26 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: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
It is doing what it is designed to do. The pen names template produces a list of calibre search links designed to be shown in book details, which is what you see in the search box.

What are you expecting it to do?
chaley is offline   Reply With Quote
Old 12-17-2023, 09:52 AM   #9
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
As I wrote, it still works, only the new look of the search phrase irritates me.

In the past group search with aliases looked like the second screenshot too.



At least I think that's what it was like. Memories are sometimes deceptive, but I should have noticed something like that.
Wiggo is offline   Reply With Quote
Old 12-17-2023, 10:32 AM   #10
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I am confused. As I said, it is doing what the post you referenced says it should do. That post makes no reference to grouped searches.
  1. How did you generate the value in the search box? Neither of the templates in the post you mention can populate the search box. Instead they are designed to make clickable links in book details.
  2. What grouped search? If you made one, what is its definition?
  3. Quote:
    Originally Posted by Wiggo View Post
    As I wrote, it still works, only the new look of the search phrase irritates me.

    In the past group search with aliases looked like the second screenshot too.



    At least I think that's what it was like. Memories are sometimes deceptive, but I should have noticed something like that.
    #pen_names contains search links. It can't have worked if shown like this image because it won't match #pen_name's contents.

    This image shows the contents of #pen_names.
    Click image for larger version

Name:	Clipboard01.jpg
Views:	516
Size:	26.7 KB
ID:	205287
Perhaps the best way forward is for you to describe exactly what you are doing, including the grouped search definitions, the templates, and what you do to make the group search you say changed.

EDIT: I tried experiments back to calibre 6.29 and it behaved the same way.
chaley is offline   Reply With Quote
Old 12-17-2023, 11:13 AM   #11
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
OK, I do my best.

I followed your post https://www.mobileread.com/forums/sh...77#post4333077 and adapted it to my situation.
Your column #pen_names is my column #alias.

I also had an old group search called pen-names consisting of #authors and #alias
Click image for larger version

Name:	Screenshot 2023-12-17 170028.jpg
Views:	944
Size:	46.5 KB
ID:	205292

and my similar author search is the grouped search pen-names.
Click image for larger version

Name:	Screenshot 2023-12-17 170201.jpg
Views:	907
Size:	58.2 KB
ID:	205293

When I searched for similar authors in the past, every search looked like this one
Click image for larger version

Name:	Screenshot 2023-12-16 202150.jpg
Views:	940
Size:	13.5 KB
ID:	205294

but now a similiar authors search with containing aliases looks like this one
Click image for larger version

Name:	Screenshot 2023-12-16 200859.jpg
Views:	837
Size:	61.7 KB
ID:	205295

I think the confusion comes from my renaming - my grouped search pen-names != your column #pen_names.
I hope I was able to bring some clarity to the issue.

Edit: The same for my Calibre Portable 7.1
not good news for my attention/memory

Last edited by Wiggo; 12-17-2023 at 12:30 PM.
Wiggo is offline   Reply With Quote
Old 12-17-2023, 12:37 PM   #12
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
OK, I do my best.

I followed your post https://www.mobileread.com/forums/sh...77#post4333077 and adapted it to my situation.
Your column #pen_names is my column #alias.

I also had an old group search called pen-names consisting of #authors and #alias
Attachment 205292

and my similar author search is the grouped search pen-names.
Attachment 205293

When I searched for similar authors in the past, every search looked like this one
Attachment 205294

but now a similiar authors search with containing aliases looks like this one
Attachment 205295

I think the confusion comes from my renaming - my grouped search pen-names != your column #pen_names.
I hope I was able to bring some clarity to the issue.
Thanks for the details.

What I see is:
  • You created the Pen Names and Real Names columns using the templates from the post you referenced. Your Pen Name column has the lookup name #alias.
  • You created a grouped search term "pen-names" that references both #authors and #alias.
  • You changed Similar Books:authors to reference the grouped search term "pen-names".
I stand by my saying that it is working as it should, and as it has always worked.
  • The values of items in your #alias column are calibre search URLS so they are clickable in book details.
  • Similar books works by evaluating the listed columns (in your case #authors and @pen-names) then putting each value from the column into the search string.
  • Thus similar books adds the calibre search urls to the search string.
To avoid this behavior and use names instead you must create another composite column (#alias_names ?) that contains the author names instead of the calibre search strings. You then add that column to the grouped search term instead of the one that contains calibre search strings. This column shouldn't be shown in the booklist or book details.

The template will look like this, corrected for your name changes:
Code:
python:
def evaluate(book, context):
	from collections import defaultdict
	from calibre.utils.icu import sort_key

	alias_category = 'Aliases.'

	db = context.db.new_api

	# Build a set of other pen names for each author that is a pen name.
	# This loop only processes categories prefixed with alias_category
	all_pen_names = defaultdict(set)
	for pen_names in [[v[0] for v in vals]
			for cat,vals in db.pref('user_categories').items()
				if cat.startswith(alias_category)]:
		for pn in pen_names:
			all_pen_names[pn].update(pen_names)

	# Build the set of all pen names for all the authors of this book. Use a set
	# to remove duplicates.
	auts = set()
	for p in book.authors:
		if p in all_pen_names:
			auts.update(all_pen_names[p])

	# Now build the sorted list of pen names.
	auts = list(sorted(auts, key=sort_key))

	# Combine all the authors into a single string with the URLS separated by link_break.
	return ' & '.join(auts)
The column definition looks like this:
Click image for larger version

Name:	Clipboard01.jpg
Views:	500
Size:	50.0 KB
ID:	205299
chaley is offline   Reply With Quote
Old 12-17-2023, 01:05 PM   #13
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Thank you chaley for your time and effort!

Unfortunately, I'm just starting to doubt myself.
Have I really not noticed this for half a year?
Wiggo is offline   Reply With Quote
Old 12-17-2023, 01:09 PM   #14
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
Unfortunately, I'm just starting to doubt myself.
Have I really not noticed this for half a year?
I forget things in 15 seconds! I can't create a new account without writing down the username and password before I actually create it or I won't remember what I used.

In the past the odd search terms might have been at the end of the search instead of the beginning. You could easily miss them in that case. I think (but don't know) that the order of the fields in the grouped search term definition controls the order that the terms appear in the search.

And you are welcome.
chaley is offline   Reply With Quote
Old 12-17-2023, 04:15 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
I forget things in 15 seconds! I can't create a new account without writing down the username and password before I actually create it or I won't remember what I used.
If it's any consolation, you're not alone in that

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISBN metadata search issue Iconoclastica Library Management 12 04-26-2020 09:46 PM
Search by author, group multiple series jojovee Library Management 6 08-16-2017 12:27 AM
"invalid group reference" error on search/replace fodiator Calibre 4 11-01-2015 12:11 PM
CA group boycotts Amazon over tax issue L.J. Sellers News 41 08-18-2011 04:00 PM
Unutterably Silly The Non-Support Group for People Who Don't Have/Want a Support Group Non-Group recluse Lounge 7 11-23-2010 02:15 AM


All times are GMT -4. The time now is 03:34 PM.


MobileRead.com is a privately owned, operated and funded community.