[Koha-bugs] [Bug 24625] Phase out jquery.cookie.js: showLastPatron

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 1 21:39:13 CEST 2020


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

--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 102249
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102249&action=edit
Bug 24625: Store showLastPatron information using localStorage

This patch removes the use of jquery.cookie to store "last patron"
information, using localStorage instead.

Because there is no "session only" option with localStorage, additional
handling of the showLastPatron data is added to the login page. That
takes care of "stale" last patron information if user didn't log out but
the session expired for some reason.

To test apply the patch and enable the showLastPatron system preference.

 1. Load a patron's account for checkout
 2. Load another patron's account for checkout
    - There should now be a "Last patron" link in the breadcrumbs bar
      which links to the patron in step 1. Hovering your mouse over the
      link should display a tooltip containing the patron's name and
      card number.
    - Click the "X" to clear the last patron information. The last
      patron link should go away.
 3. Log out and log back in. The last patron information should be gone.

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


More information about the Koha-bugs mailing list