Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extended matches shouldn't be displayed as the main title of the work matches #393

Closed
eroux opened this issue Dec 7, 2020 · 13 comments
Closed
Labels
bug Something isn't working

Comments

@eroux
Copy link
Contributor

eroux commented Dec 7, 2020

For instance in https://library.bdrc.io/search?q=%22performance%22&lg=en&t=Work i've just added the extended matches, and most of them are in the catalogInfo field but they appear as the main label

@eroux eroux added the bug Something isn't working label Dec 7, 2020
@eroux
Copy link
Contributor Author

eroux commented Dec 7, 2020

oh, note that the same bug appears on the Versions results too

@berger-n
Copy link
Collaborator

berger-n commented Dec 7, 2020

I've added catalogInfo to results for Work so as this becomes that:

image

but are sure what you're reporting is a bug?
to me these are matching altLabels, at least regarding these four leading results having a match in their main title:

image

there also seems to have duplicate catalogInfo in query for versions:

image

resulting in duplicate display:

image

(but I guess I'll have to handle these client-side)

@eroux
Copy link
Contributor Author

eroux commented Dec 7, 2020

Ah thanks! I'll have a look at the duplicates in catalogInfo tomorrow. Matches in altLabels are interesting... Do we have another place to display them? maybe a Other title? The ideal would be to always display the prefLabel as the main label for the item (not the altLabel, even when there's a match)... would that be complex to implement?

@eroux
Copy link
Contributor Author

eroux commented Dec 7, 2020

Ah, well, actually the duplicate catalogInfo (one with highlight, one without) should be handled on the client indeed, like the prefLabel

@eroux
Copy link
Contributor Author

eroux commented Dec 7, 2020

actually never mind: buda-base/xmltoldmigration#156

@eroux
Copy link
Contributor Author

eroux commented Dec 8, 2020

duplicates have disappeared! also, related: buda-base/lds-queries#61

@berger-n
Copy link
Collaborator

berger-n commented Dec 8, 2020

well done, thanks!
I've noticed that highlighting has disappeared in matching note here: https://library.bdrc.io/search?q=%22rituals%20for%20the%20performance%22&lg=en&t=Instance&f=asset,inc,tmp:hasOpen
I can put in back using case insensitive search for keyword but it will use keyword instead of original string in highlighted property value (capital letters might disappear), is that ok?

image

@eroux
Copy link
Contributor Author

eroux commented Dec 8, 2020

hmmm... it's more or less intended as it's a field that comes from the work and the search actually doesn't search on this field (it's a coincidence that there's a match here)... so, maybe let's not do that, at least not now

@berger-n
Copy link
Collaborator

berger-n commented Dec 8, 2020

nevermind I managed to keep the original string:

image

this is the default behaviour to look for keyword and highlight it when found
do you want to disable it in this "catalogInfo of version" special case?

@eroux
Copy link
Contributor Author

eroux commented Dec 8, 2020

ah no never mind, if it's already in place let's keep it!

@berger-n
Copy link
Collaborator

berger-n commented Dec 8, 2020

altLabels are not used in result title anymore: https://library.bdrc.io/search?q=%22for%20the%20performance%22&lg=en&t=Work

image

@eroux
Copy link
Contributor Author

eroux commented Dec 8, 2020

great, thanks a lot!

@berger-n
Copy link
Collaborator

just fixed missing highlighting here: http://library-dev.bdrc.io/search?q=%22Mar%20me%20smon%20lam%22~1&lg=bo-x-ewts&t=Instance

image

not using matching altLabel as result title as expected here: http://library-dev.bdrc.io/search?q=%22for%20the%20performance%22&lg=en&t=Work

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants