<eg-grid-action label="[% l('Delete closing') %]" handler="delete_aoucd"></eg-grid-action>
<eg-grid-field label="[% l('Closing Start') %]" flex="1" path="close_start" visible>
- {{item.close_start | egDueDate:$root.egDateAndTimeFormat:item.org_unit:item._duration}}
+ {{item.close_start | egOrgDateInContext:item._format:item.org_unit:item._duration}}
</eg-grid-field>
<eg-grid-field label="[% l('Closing End') %]" flex="1" path="close_end" visible>
- {{item.close_end | egDueDate:$root.egDateAndTimeFormat:item.org_unit:item._duration}}
+ {{item.close_end | egOrgDateInContext:item._format:item.org_unit:item._duration}}
</eg-grid-field>
<eg-grid-field label="[% l('Reason for Closing') %]" flex="2" path="reason" visible></eg-grid-field>
<eg-grid-field label="[% l('Emergency Closing Processing Summary') %]" flex="2" path="emergency_closing.status" visible>
var e = new Date(i.close_end);
i._duration = ((e - s) / 1000) + 1;
i._duration = '' + i._duration + ' seconds';
+ i._format = $scope.$root.egDateAndTimeFormat;
if (i.emergency_closing) {
var x = i.emergency_closing.status.circulations - i.emergency_closing.status.circulations_complete;
function eg_context_date_filter (date, format, orgID, interval) {
var fmt = format;
- if (!fmt) fmt = 'shortDate';
+ if (!fmt) fmt = 'short';
// if this is a simple, one-word format, and it doesn't say "Date" in it...
if (['short','medium','long','full'].filter(function(x){return fmt == x}).length > 0 && interval) {