[Koha-bugs] [Bug 26247] Search terms retained in header search creates UX inconsistency

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 29 02:26:59 CEST 2022


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |This fixes usability and
      release notes|                            |consistency issues with the
                   |                            |staff interface search
                   |                            |header. Retaining or
                   |                            |clearing search terms
                   |                            |between searches is now
                   |                            |configurable using two new
                   |                            |system preferences -
                   |                            |RetainCatalogSearchTerms
                   |                            |(for searching the catalog)
                   |                            |and
                   |                            |RetainPatronsSearchTerms
                   |                            |(for check out and
                   |                            |searching patrons).
                   |                            |Previously, search terms
                   |                            |from searching the catalog
                   |                            |were retained. They were
                   |                            |also retained when
                   |                            |switching to check out,
                   |                            |check in, and search
                   |                            |patrons from the search
                   |                            |results page - which then
                   |                            |required manually clearing
                   |                            |the input field.
                   |                            |
                   |                            |It also
                   |                            |cleans up the various
                   |                            |search bar templates to use
                   |                            |a single template for the
                   |                            |"Search the catalog" input
                   |                            |in the search header.

--- Comment #37 from David Nind <david at davidnind.com> ---
These are my draft testing notes (may need updating when the patch applies
again and I can complete the tests):

1. In the staff interface, type "perl" in the "Search the catalog" input field
and click "Submit"
2. Switch between the different areas in the search header from the catalog
search results page and confirm that the search term is retained for:
  - Check out
  - Check in
  - Renew
3. Go back to the staff interface home page for each of the following, and
enter and submit appropriate information in the other input fields in the
search header:
  - Search patrons, for example: 'a': search term retained when there is more
than one search result
  - Search patrons, for example: 'Mary': search term cleared when there is only
one result, and you select it from the autocomple and go to the patron's
details page
  - Check out - same as for search patrons: search term retained if there is a
search results page, not retained if select specific person, cleared once
specific person selected from search results
  - Check in - enter a barcode: not retained (cleared)
  - Renew - enter a barcode:  not retained (cleared)
4. Apply the patches (git bz apply 26247), update the database
(updatedatabase), flush_memcached, restart_all, and clear your browser cache
(or open the staff interface in a new private or incognito window)
5. In the system preferences, go to Searching > Search form and review the two
new system preferences:
  . RetainCatalogSearchTerms
  . RetainPatronsSearchTerms
6. Review the text for the system preferences and make sure they make sense.
7. Test the retain and don't retain settings for each system preference and the
various combinations, they should work as expected (see also step 3):
   - RetainCatalogSearchTerms (don't retain) and RetainPatronsSearchTerms
(don't retain) 
   - RetainCatalogSearchTerms (retain) and RetainPatronsSearchTerms (retain)
   - RetainCatalogSearchTerms (don't retain) and RetainPatronsSearchTerms
(retain)
   - RetainCatalogSearchTerms (retain) and RetainPatronsSearchTerms (don't
retain)
8. Confirm the "Search the catalog" appears and works as expected from modules:
   - Budgets
   - Cataloging
   - Circulation
   - Currencies
   - Contracts
   - Home page
   - Notices and slips
   - Patrons
   - Administration
   - Serials
   - Acquisitions -> suggestions
   - Z3950 Admin
9. Signoff!

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


More information about the Koha-bugs mailing list