LP#1901072 Menus Don't Recognize Max Recent Patrons Setting user/dbriem/lp1901072_menus_recongize_max_recent_patrons_setting
authorDan Briem <dbriem@wlsmail.org>
Sat, 4 Mar 2023 21:10:44 +0000 (21:10 +0000)
committerDan Briem <dbriem@wlsmail.org>
Sat, 4 Mar 2023 21:10:44 +0000 (21:10 +0000)
commitbb522cdcb41d5d956c2642445399e6672362d87e
tree0c2fa0d86694a3c4af1d1b73a9309a0d180047c6
parent3ecef495d8268fdc966778e47309f326f32281e1
LP#1901072 Menus Don't Recognize Max Recent Patrons Setting

On the Angular menu, both Retrieve Last Patron and Recent Patrons
links appear under Circulation, regardless of what the "Number of
Retrievable Recent Patrons" setting is set to.

On both the AngularJS and Angular menus, both links appear under
Circulation (Experimental).

On the Angular menu, Circulation->Retrieve Recent Patrons links
to the Angular interface instead of the AngularJS interface.

To test this fix:
1. Set Enable Angular Circulation Menu setting to True
2. Set Number of Retrievable Recent Patrons setting to 0
   - Retrieve Last Patron and Recent Patrons links don't appear
3. Set to 1 or unset (default fallback is 1)
   - Retrieve Last Patron link appears only
4. Set to greather than 1
   - both links appear
   - Circulation->Retrieve Recent Patrons loads the AngJS interface

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Open-ILS/src/eg2/src/app/staff/nav.component.html
Open-ILS/src/eg2/src/app/staff/nav.component.ts
Open-ILS/src/templates/staff/navbar.tt2