<span class="material-icons" aria-hidden="true">person_add</span>
<span i18n>Register Patron</span>
</a>
- <a class="dropdown-item" href="/eg/staff/circ/patron/last"
+ <a *ngIf="maxRecentPatrons" class="dropdown-item" href="/eg/staff/circ/patron/last"
egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
keySpec="f8" keyDesc="Retrieve Last Patron">
<span class="material-icons" aria-hidden="true">redo</span>
<span i18n>Retrieve Last Patron</span>
</a>
- <a class="dropdown-item" routerLink="/staff/circ/patron/search/recents">
+ <a *ngIf="maxRecentPatrons > 1" class="dropdown-item" href="/eg/staff/circ/patron/search?show_recent=1">
<span class="material-icons" aria-hidden="true">redo</span>
<span i18n>Retrieve Recent Patrons</span>
</a>
<span class="material-icons" aria-hidden="true">person_add</span>
<span i18n>Register Patron</span>
</a>
- <a class="dropdown-item" routerLink="/staff/circ/patron/last"
+ <a *ngIf="maxRecentPatrons" class="dropdown-item" routerLink="/staff/circ/patron/last"
egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
keySpec="f8" keyDesc="Retrieve Last Patron">
<span class="material-icons" aria-hidden="true">redo</span>
<span i18n>Retrieve Last Patron</span>
</a>
- <a class="dropdown-item" routerLink="/staff/circ/patron/search/recents"
+ <a *ngIf="maxRecentPatrons > 1" class="dropdown-item" routerLink="/staff/circ/patron/search/recents"
egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
keySpec="shift+f4" keyDesc="Retrieve Recent Patrons">
<span class="material-icons" aria-hidden="true">redo</span>
showAngularAcq: boolean;
curbsideEnabled: boolean;
showAngularCirc = false;
+ maxRecentPatrons: number = 1;
@ViewChild('navOpChange', {static: false}) opChange: OpChangeComponent;
permFailedSub: Subscription;
.then(settings => this.curbsideEnabled =
Boolean(settings['circ.curbside']));
+ this.org.settings('ui.staff.max_recent_patrons')
+ .then(settings => this.maxRecentPatrons =
+ settings['ui.staff.max_recent_patrons'] ?? 1)
+
// Do we show the angular circ menu?
// TODO remove these once Angular Circ takes over.
const angSet = 'ui.staff.angular_circ.enabled';
<span>[% l('Register Patron') %]</span>
</a>
</li>
- <li>
+ <li ng-if="showRecentPatron">
<a href="/eg2/staff/circ/patron/last">
<span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
<span>[% l('Retrieve Last Patron') %]</span>
</a>
</li>
- <li>
+ <li ng-if="showRecentPatrons">
<a href="/eg2/staff/circ/patron/search/recents">
<span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
<span>[% l('Retrieve Recent Patrons') %]</span>