[open-ils-commits] [GIT] Evergreen ILS branch master updated. dd0c9a631786893c4c1caca18d4f823851902368

Evergreen Git git at git.evergreen-ils.org
Tue Jul 30 11:28:48 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, master has been updated
       via  dd0c9a631786893c4c1caca18d4f823851902368 (commit)
      from  853e7b2408872bd3b95d88191b0908baf75e115c (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 dd0c9a631786893c4c1caca18d4f823851902368
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 8034f4174e..63b2106c77 100644
--- a/Open-ILS/src/eg2/src/app/staff/nav.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html
@@ -161,7 +161,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 852562c8f1..f143727a33 100644
--- a/Open-ILS/src/eg2/src/app/staff/nav.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/nav.component.ts
@@ -6,6 +6,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',
@@ -24,6 +25,7 @@ export class StaffNavComponent implements OnInit {
 
     constructor(
         private router: Router,
+        private store: StoreService,
         private org: OrgService,
         private auth: AuthService,
         private pcrud: PcrudService,
@@ -81,6 +83,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