[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. 4ab9ddb371f2e188638a6d0e35f3fe160d359e36
Evergreen Git
git at git.evergreen-ils.org
Tue Jul 30 11:27:30 EDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_2 has been updated
via 4ab9ddb371f2e188638a6d0e35f3fe160d359e36 (commit)
from ec78ec44f1f07598dc05293479961e6cae56ef58 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4ab9ddb371f2e188638a6d0e35f3fe160d359e36
Author: Bill Erickson <berickxx at gmail.com>
Date: Wed May 29 14:03:38 2019 -0400
LP1830424 Implement Angular "retrieve last bib record"
Repair the Angular navbar menu entry for "Retrieve Last Bib Record" by
replacing the copy/paste'd ng-click handler with an Angular (click)
handler and local implementation.
Signed-off-by: Bill Erickson <berickxx at gmail.com>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html
index feed30bcb5..70ca9f5240 100644
--- a/Open-ILS/src/eg2/src/app/staff/nav.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html
@@ -169,7 +169,7 @@
<span class="material-icons">collections_bookmark</span>
<span i18n>Retrieve Bib Record by TCN</span>
</a>
- <a href="" ng-click="retrieveLastRecord()"
+ <a (click)="retrieveLastRecord()"
eg-accesskey="shift+f8"
eg-accesskey-desc="Retrieve Last Bib Record" class="dropdown-item">
<span class="material-icons">redo</span>
diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.ts b/Open-ILS/src/eg2/src/app/staff/nav.component.ts
index c477c116b9..970277c25b 100644
--- a/Open-ILS/src/eg2/src/app/staff/nav.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/nav.component.ts
@@ -5,6 +5,7 @@ import {AuthService} from '@eg/core/auth.service';
import {PcrudService} from '@eg/core/pcrud.service';
import {LocaleService} from '@eg/core/locale.service';
import {PrintService} from '@eg/share/print/print.service';
+import {StoreService} from '@eg/core/store.service';
@Component({
selector: 'eg-staff-nav-bar',
@@ -20,6 +21,7 @@ export class StaffNavComponent implements OnInit {
constructor(
private router: Router,
+ private store: StoreService,
private auth: AuthService,
private pcrud: PcrudService,
private locale: LocaleService,
@@ -67,6 +69,14 @@ export class StaffNavComponent implements OnInit {
reprintLast() {
this.printer.reprintLast();
}
+
+ // TODO: Point to Angular catalog when the time comes
+ retrieveLastRecord() {
+ const recId = this.store.getLocalItem('eg.cat.last_record_retrieved');
+ if (recId) {
+ window.location.href = '/eg/staff/cat/catalog/record/' + recId;
+ }
+ }
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/eg2/src/app/staff/nav.component.html | 2 +-
Open-ILS/src/eg2/src/app/staff/nav.component.ts | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list