[Koha-bugs] [Bug 36302] Patron search from search bar broken

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 13:30:29 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36302

--- Comment #38 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
(In reply to Katrin Fischer from comment #34)
> I think this is/was about saving clicks for the circulation desk mostly. If
> you scan a card, they want to go directly to the patron account. I am not
> sure if it's also applied for other searches/results in general. But I
> believe it's always been the case for cardnumber searches (since 3.2 at
> least, when I began using Koha).
> 
> I believe if you picked an entry, using the auto-complete, you'd also
> want/expect this behavior.
> 
> (Not sure those comments fully apply here, just trying to give a user point
> of view)

The following use case:
"If you scan a card, they want to go directly to the patron account."
This is already handled in member.pl. i.e. this is already ensured, regardless
of the patches in this bug or the issue described by it. This functionality is
not broken and is still in place.

This:
"I believe if you picked an entry, using the auto-complete, you'd also
want/expect this behavior."
I agree, and this is also already the case as well. Again, regardless of the
patches in this bug or the issue described by it. When you click on any of the
suggestions given by the auto-complete, you're forwarded directly to the patron
you clicked on.

The behavior that I don't agree with:
"Search -> Browser goes to search results page -> JavaScript checks if only 1
result found -> Browser redirects user to this single result detail page"
Doesn't happen in either of the use-cases above.

A search is a search, if you submit a search then you should be presented with
a search results page, regardless of how many results are found.
Having a special case for: if a cardnumber is submitted, which is a unique
identifier, Koha forwards you directly to the patron detail page and it does
NOT first visit the search results page -> This is fine
If you click on an auto-complete suggestion, Koha forwards you to the patron
detail page and it does NOT first visit the search results page -> This is fine
(and expected).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list