[Koha-bugs] [Bug 36045] Use DataTables filter for suggestions search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 12 17:13:49 CET 2024


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 162061
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162061&action=edit
Bug 36045: Use DataTables filter for suggestions search

This patch removes the server-side suggestions search form and related
code from the OPAC suggestions page. In its place is a DataTables filter
form and a custom dropdown to replace the "suggested by me/anyone"
option from the old search.

To test you should have some suggestions in your system submitted by
two or more users.

- Apply the patch and rebuild the OPAC CSS.
- Go to Administration -> System preferences and set the
  "OPACViewOthersSuggestions" preference to "Show."
- Log in to the OPAC as one of the users who has submitted suggetions.
- Go to the purchase suggestions page.
  - The initial view should be of "your" suggestions.
  - The dropdown filter at the top should have "Suggested by me"
    selected.
  - The "Clear filter" button should be disabled.
- Test that the "Suggested by me" dropdown works to change what's shown
  in the table.
  - The "Clear filter" button should be enabled when you choose
    "Suggested by anyone."
- The DataTables "Search" field should work correctly with either
  setting of the "Suggested by..." dropdown.

- Go back to Administration in the staff interface and disable the
  "OPACViewOthersSuggestions" preference.
- Return to the suggestions page in the OPAC.
- You should see only your suggestions, and the "Suggested by..."
  dropdown should not be there.
- Confirm that filtering still works correctly.

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


More information about the Koha-bugs mailing list