LP#1775466 Catalog/grid thinko fixes
authorBill Erickson <berickxx@gmail.com>
Thu, 28 Jun 2018 15:22:43 +0000 (11:22 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 5 Sep 2018 14:05:23 +0000 (10:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html

index 65f0338..6cd2a15 100644 (file)
@@ -90,7 +90,7 @@ export class GridComponent implements OnInit, AfterViewInit, OnDestroy {
         this.context.rowFlairCallback =
             this.rowFlairCallback || function () { return ''; };
         this.context.rowClassCallback =
-            his.rowClassCallback || function () { return ''; };
+            this.rowClassCallback || function () { return ''; };
         this.context.cellClassCallback =
             this.cellClassCallback || function() { return ''; };
 
index 5d3c12f..c30f46f 100644 (file)
@@ -81,7 +81,7 @@
         <div class="row">
           <div class="col-lg-12">
             <div class="float-right small-text-1">
-              Created {{summary.create_date | date:'shortDate'}} by
+              Created {{summary.record.create_date() | date:'shortDate'}} by
               <!-- creator if fleshed after the initial data set is loaded -->
               <a *ngIf="summary.record.creator().usrname" target="_self" 
                 href="/eg/staff/circ/patron/{{summary.record.creator().id()}}/checkout">
@@ -95,7 +95,7 @@
         <div class="row pt-2">
           <div class="col-lg-12">
             <div class="float-right small-text-1" i18n>
-              Edited {{summary.edit_date | date:'shortDate'}} by
+              Edited {{summary.record.edit_date() | date:'shortDate'}} by
               <a *ngIf="summary.record.editor().usrname" target="_self" 
                 href="/eg/staff/circ/patron/{{summary.record.editor().id()}}/checkout">
                   {{summary.record.editor().usrname()}}