Bug 21246: Extend the 'Last patron' navigation feature to 'Last 10 patrons'
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 29 Jun 2023 19:07:04 +0000 (15:07 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 11 Oct 2023 13:31:40 +0000 (10:31 -0300)
commit064788babfdd25024b15d730fcccad2389665f5d
treecd8806ca5cdf7a88a03886b5e40731e6226e8a6a
parentfe21bbad2abcacba1091d80a2f75490a8be8ad17
Bug 21246: Extend the 'Last patron' navigation feature to 'Last 10 patrons'

This retains the "last patron" link, but extends it to add a dropdown
containg the last 10 patrons.

A future enhancement to control how many patrons to retain would
complement this well.

1) Enable showLastPatron
2) Visit two patrons details pages
3) Note "Last patron" link displays and links to the last visited patron
4) Log out
5) Apply this patch
6) Log in
7) Visit the patron details page for a few patrons
8) Note the "Last patron" link behaves as is did previously
9) Note the split button has a pulldown with the other previous patrons
10) Verify that only the last 10 patrons are retained in the pulldown
11) Verify that if you visit a patron who is already in the list
    they get moved to the top of the list

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/css/src/_header.scss
koha-tmpl/intranet-tmpl/prog/en/includes/last-borrower.inc
koha-tmpl/intranet-tmpl/prog/js/staff-global.js