|
|
#1 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
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
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 Edit after Post was moved: I only noticed it with Calibre 7.2 Last edited by Wiggo; 12-16-2023 at 04:33 PM. |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
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 |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There werent any changes to searching in 7.2
|
|
|
|
|
|
#4 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
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. |
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Let's wait for chaley to see it.
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,010
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
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
|
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
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? |
|
|
|
|
|
#9 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
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. |
|
|
|
|
|
#10 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
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.
EDIT: I tried experiments back to calibre 6.29 and it behaved the same way. |
|
|
|
|
|
|
#11 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
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 and my similar author search is the grouped search pen-names. When I searched for similar authors in the past, every search looked like this one but now a similiar authors search with containing aliases looks like this one 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 01:30 PM. |
|
|
|
|
|
#12 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
What I see is:
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)
|
|
|
|
|
|
|
#13 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
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?
|
|
|
|
|
|
#14 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() 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. |
|
|
|
|
|
|
#15 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,033
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ISBN metadata search issue | Iconoclastica | Library Management | 12 | 04-26-2020 10:46 PM |
| Search by author, group multiple series | jojovee | Library Management | 6 | 08-16-2017 01:27 AM |
| "invalid group reference" error on search/replace | fodiator | Calibre | 4 | 11-01-2015 01:11 PM |
| CA group boycotts Amazon over tax issue | L.J. Sellers | News | 41 | 08-18-2011 05: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 03:15 AM |