[Koha-bugs] [Bug 27697] Opening bibliographic record page prepopulates search bar text

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 18 17:13:38 CEST 2022


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

--- Comment #4 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 135146
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135146&action=edit
Bug 27697: Only preopulate search when we have found a single biblio

This patch uses the url parameter we created in 23475 to determine whether
we should populate the search bar or not

Note - a bookmark with this param will still populate search term with last
search

To test:
1 - Search staff client for 'cat'
2 - Browse to a patrons checkouts and click on a title, or just go directly to
a details page:
    http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=2850
3 - Search bar says 'cat'
4 - Apply patch
5 - Repeat 1-2
6 - Search bar is not populated
7 - Search "dalek war box set" or a term that finds a single record in your
instance
8 - Search bar is populated
9 - Note url like:
http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=2850&found1=1

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


More information about the Koha-bugs mailing list