If a noncataloged item is checked out in the offline circulation
interface, it will now show the noncat type and number of items in
the right-hand preview pane. (Prior to this, nothing displayed for
noncat items.)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
<tbody>
<tr ng-repeat="xact in xact_page.checkout track by $index">
<td>{{xact.patron_barcode}}</td>
- <td>{{xact.barcode}}</td>
+ <td>
+ <div ng-if="xact.barcode">{{xact.barcode}}</div>
+ <div ng-if="!xact.barcode">{{lookupNoncatTypeName(xact.noncat_type)}} ({{xact.noncat_count}})</div>
+ </td>
<td>{{xact.due_date | date:'shortDate'}}</td>
</tr>
</tbody>
egCore.hatch.setItem('eg.offline.print_receipt', $scope.do_print)
}
+ $scope.lookupNoncatTypeName = function (type) {
+ var nc = $scope.noncats.filter(function(n){ return n.id() == type })[0];
+ if (nc) return nc.name();
+ return '';
+ }
+
$scope.logged_in = egCore.auth.token() ? true : false;