[open-ils-commits] [GIT] Evergreen ILS branch rel_3_3 updated. 808aede6c225c09f8ef368a7785b43a5a51a1bb9

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_3 has been updated
       via  808aede6c225c09f8ef368a7785b43a5a51a1bb9 (commit)
      from  d4515549db91101d1b5638f6f1153bd6a8cf0e72 (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 808aede6c225c09f8ef368a7785b43a5a51a1bb9
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