})
.controller('InHouseUseCtrl',
- ['$scope','egCore','egGridDataProvider','egConfirmDialog', 'egAlertDialog',
-function($scope, egCore, egGridDataProvider , egConfirmDialog, egAlertDialog) {
+ ['$scope','egCore','egGridDataProvider','egConfirmDialog',
+ 'egAlertDialog','egBibDisplay',
+function($scope , egCore , egGridDataProvider , egConfirmDialog,
+ egAlertDialog , egBibDisplay) {
var countCap;
var countMax;
flesh_fields : {
acp : ['call_number','location'],
acn : ['record', 'prefix', 'suffix'],
- bre : ['simple_record']
+ // We don't need to display a wide range of bib
+ // fields in this UI. Fetch the flat display since
+ // it requires less DB-side munging (and as an example).
+ bre : ['flat_display_entries']
},
select : { bre : ['id'] } // avoid fleshing MARC
}
coArgs.copyid = copy.id();
+ copy.call_number().record().flat_display_entries(
+ egBibDisplay.mfdeToHash(
+ copy.call_number().record().flat_display_entries())
+ );
+
// LP1507807: Display the copy alert if the setting is on.
if ($scope.copyAlert && copy.alert_message()) {
egAlertDialog.open(copy.alert_message()).result;
var item = {num_uses : resp.length};
item.copy = data.copy;
item.title = data.title ||
- data.copy.call_number().record().simple_record().title();
+ data.copy.call_number().record().flat_display_entries().title;
item.index = checkouts.length;
checkouts.unshift(item);