'ebook_api',
'string'
);
+
+INSERT into config.org_unit_setting_type (
+ name
+ ,grp
+ ,label
+ ,description
+ ,datatype
+) VALUES ( ----------------------------------------
+ 'webstaff.format.dates'
+ ,'gui'
+ ,oils_i18n_gettext(
+ 'webstaff.format.dates'
+ ,'Format Dates with this pattern'
+ ,'coust'
+ ,'label'
+ )
+ ,oils_i18n_gettext(
+ 'webstaff.format.dates'
+ ,'Format Dates with this pattern (examples: "yyyy-MM-dd" for "2010-04-26", "MMM d, yyyy" for "Apr 26, 2010"). This will be used in areas where a date without a timestamp is sufficient, like Date of Birth.'
+ ,'coust'
+ ,'description'
+ )
+ ,'string'
+), ( ----------------------------------------
+ 'webstaff.format.date_and_time'
+ ,'gui'
+ ,oils_i18n_gettext(
+ 'webstaff.format.date_and_time'
+ ,'Format Date+Time with this pattern'
+ ,'coust'
+ ,'label'
+ )
+ ,oils_i18n_gettext(
+ 'webstaff.format.date_and_time'
+ ,'Format Date+Time with this pattern (examples: "yy-MM-dd h:m:s.SSS a" for "16-04-05 2:07:20.666 PM", "yyyy-dd-MMM HH:mm" for "2016-05-Apr 14:07"). This will be used in areas of the client where a date with a timestamp is needed, like Checkout, Due Date, or Record Created.'
+ ,'coust'
+ ,'description'
+ )
+ ,'string'
+);
--- /dev/null
+BEGIN;
+
+--SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT into config.org_unit_setting_type (
+ name
+ ,grp
+ ,label
+ ,description
+ ,datatype
+) VALUES ( ----------------------------------------
+ 'webstaff.format.dates'
+ ,'gui'
+ ,oils_i18n_gettext(
+ 'webstaff.format.dates'
+ ,'Format Dates with this pattern'
+ ,'coust'
+ ,'label'
+ )
+ ,oils_i18n_gettext(
+ 'webstaff.format.dates'
+ ,'Format Dates with this pattern (examples: "yyyy-MM-dd" for "2010-04-26", "MMM d, yyyy" for "Apr 26, 2010"). This will be used in areas where a date without a timestamp is sufficient, like Date of Birth.'
+ ,'coust'
+ ,'description'
+ )
+ ,'string'
+), ( ----------------------------------------
+ 'webstaff.format.date_and_time'
+ ,'gui'
+ ,oils_i18n_gettext(
+ 'webstaff.format.date_and_time'
+ ,'Format Date+Time with this pattern'
+ ,'coust'
+ ,'label'
+ )
+ ,oils_i18n_gettext(
+ 'webstaff.format.date_and_time'
+ ,'Format Date+Time with this pattern (examples: "yy-MM-dd h:m:s.SSS a" for "16-04-05 2:07:20.666 PM", "yyyy-dd-MMM HH:mm" for "2016-05-Apr 14:07"). This will be used in areas of the client where a date with a timestamp is needed, like Checkout, Due Date, or Record Created.'
+ ,'coust'
+ ,'description'
+ )
+ ,'string'
+);
+
+UPDATE
+ config.org_unit_setting_type
+SET
+ label = 'Deprecated: ' || label -- FIXME: Is this okay?
+WHERE
+ name IN ('format.date','format.time')
+;
+
+-- for testing, setting removal:
+--DELETE FROM actor.org_unit_setting WHERE name IN (
+-- 'webstaff.format.dates'
+-- ,'webstaff.format.date_and_time'
+--);
+--DELETE FROM config.org_unit_setting_type_log WHERE field_name IN (
+-- 'webstaff.format.dates'
+-- ,'webstaff.format.date_and_time'
+--);
+--DELETE FROM config.org_unit_setting_type WHERE name IN (
+-- 'webstaff.format.dates'
+-- ,'webstaff.format.date_and_time'
+--);
+--UPDATE config.org_unit_setting_type SET label = REPLACE(label,'Deprecated: ','') WHERE name in ('format.date','format.time');
+
+COMMIT;
features="-sort,-multisort"
items-provider="grid_provider"
grid-controls="grid_controls"
- persist-key="admin.local.circ.neg_balance_users">
+ persist-key="admin.local.circ.neg_balance_users"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action handler="get_user"
label="[% l('Retrieve Patron') %]"></eg-grid-action>
<eg-grid-field label="[% l('Barred') %]" path='usr.barred'></eg-grid-field>
- <eg-grid-field label="[% l('Date of Birth') %]" path='usr.dob'></eg-grid-field>
+ <eg-grid-field label="[% l('Date of Birth') %]" dateformat="{{$root.egDateFormat}}" datatype="timestamp" path='usr.dob'></eg-grid-field>
<eg-grid-field label="[% l('Last Name') %]" path='usr.family_name'></eg-grid-field>
<eg-grid-field label="[% l('First Name') %]" path='usr.first_given_name'></eg-grid-field>
<eg-grid-field label="[% l('Middle Name') %]" path='usr.second_given_name'></eg-grid-field>
idl-class="rb"
grid-controls="gridControls"
features="-multiselect"
- persist-key="admin.local.rating.badge">
+ persist-key="admin.local.rating.badge"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action label="[% l('Add badge') %]" handler="create_rb"></eg-grid-action>
<eg-grid-action label="[% l('Edit badge') %]" handler="update_rb"></eg-grid-action>
idl-class="cmrcfld"
grid-controls="gridControls"
features="-multiselect"
- persist-key="admin.server.config.marc_field">
+ persist-key="admin.server.config.marc_field"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="new_record" label="[% l('New Record') %]"></eg-grid-menu-item>
<eg-grid-action handler="edit_record" label="[% l('Edit Record') %]"></eg-grid-action>
items-provider="grid_work_log_provider"
grid-controls="grid_controls"
persist-key="admin.workstation.work_log"
->
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="refresh_ui"
label="[% l('Refresh') %]"></eg-grid-menu-item>
<eg-grid-field path='amount' label="[% l('Amount') %]" hidden></eg-grid-field>
<eg-grid-field path='user' label="[% l('Patron') %]"></eg-grid-field>
<eg-grid-field path='item' label="[% l('Item') %]"></eg-grid-field>
- <eg-grid-field path='when' label="[% l('When') %]"></eg-grid-field>
+ <eg-grid-field path='when' label="[% l('When') %]" datatype="timestamp"></eg-grid-field>
<eg-grid-field path='actor' label="[% l('Staff') %]" hidden></eg-grid-field>
</eg-grid>
items-provider="grid_patron_log_provider"
grid-controls="grid_controls"
persist-key="admin.workstation.patron_log"
->
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="load_item"
label="[% l('Retrieve Item') %]"></eg-grid-menu-item>
<eg-grid-field path='amount' label="[% l('Amount') %]" hidden></eg-grid-field>
<eg-grid-field path='user' label="[% l('Patron') %]"></eg-grid-field>
<eg-grid-field path='item' label="[% l('Item') %]"></eg-grid-field>
- <eg-grid-field path='when' label="[% l('When') %]"></eg-grid-field>
+ <eg-grid-field path='when' label="[% l('When') %]" datatype="timestamp"></eg-grid-field>
<eg-grid-field path='actor' label="[% l('Staff') %]" hidden></eg-grid-field>
</eg-grid>
features="-sort,-multisort"
items-provider="hold_grid_data_provider"
grid-controls="hold_grid_controls"
- persist-key="cat.catalog.holds">
+ persist-key="cat.catalog.holds"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="detail_view"
label="[% l('Detail View') %]"></eg-grid-menu-item>
<eg-grid-field label="[% l('Patron Barcode') %]">{{item.patron_barcode}}</eg-grid-field>
<eg-grid-field label="[% l('Patron alias') %]">{{item.patron_alias}}</eg-grid-field>
- <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time'></eg-grid-field>
- <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time'></eg-grid-field>
- <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time'></eg-grid-field>
+ <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Hold Type') %]" path='hold.hold_type'></eg-grid-field>
<eg-grid-field label="[% l('Pickup Library') %]" path='hold.pickup_lib.shortname'></eg-grid-field>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Check Out Date') %]</div>
- <div class="flex-cell well">{{circ.xact_start() | date:'short'}}</div>
+ <div class="flex-cell well">{{circ.xact_start() | date:egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Due Date') %]</div>
- <div class="flex-cell well">{{circ.due_date() | date:'short'}}</div>
+ <div class="flex-cell well">{{circ.due_date() | date:egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Stop Fines Time') %]</div>
- <div class="flex-cell well">{{circ.stop_fines_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{circ.stop_fines_time() | date:egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Checkin Time') %]</div>
- <div class="flex-cell well">{{circ.checkin_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{circ.checkin_time() | date:egDateAndTimeFormat}}</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Check Out Library') %]</div>
<div class="flex-row">
<div class="flex-cell">[% l('Checkout Date') %]</div>
<div class="flex-cell well">
- {{prev_circ_summary.start_time() | date:'short'}}
+ {{prev_circ_summary.start_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Last Renewed On') %]</div>
<div class="flex-cell well">
- {{prev_circ_summary.last_renewal_time() | date:'short'}}
+ {{prev_circ_summary.last_renewal_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Stop Fines Time') %]</div>
<div class="flex-cell well">
- {{prev_circ_summary.last_stop_fines_time() | date:'short'}}
+ {{prev_circ_summary.last_stop_fines_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Checkin Time') %]</div>
<div class="flex-cell well">
- {{prev_circ_summary.last_checkin_time() | date:'short'}}
+ {{prev_circ_summary.last_checkin_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Checkin Scan Time') %]</div>
<div class="flex-cell well">
- {{prev_circ_summary.last_checkin_scan_time() | date:'short'}}
+ {{prev_circ_summary.last_checkin_scan_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-row">
<div class="flex-cell">[% l('Checkout Date') %]</div>
<div class="flex-cell well">
- {{circ.xact_start() | date:'short'}}
+ {{circ.xact_start() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Last Renewed On') %]</div>
<div class="flex-cell well">
- {{circ_summary.last_renewal_time() | date:'short'}}
+ {{circ_summary.last_renewal_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Stop Fines Time') %]</div>
<div class="flex-cell well">
- {{circ.stop_fines_time() | date:'short'}}
+ {{circ.stop_fines_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Checkin Time') %]</div>
<div class="flex-cell well">
- {{circ.checkin_time() | date:'short'}}
+ {{circ.checkin_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Checkin Scan Time') %]</div>
<div class="flex-cell well">
- {{circ.checkin_scan_time() | date:'short'}}
+ {{circ.checkin_scan_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Request Date') %]</div>
<div class="flex-cell well">
- {{hold.request_time() | date:'short'}}
+ {{hold.request_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Capture Date') %]</div>
<div class="flex-cell well">
- {{hold.capture_time() | date:'short'}}
+ {{hold.capture_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Shelf Time') %]</div>
<div class="flex-cell well">
- {{hold.shelf_time() | date:'short'}}
+ {{hold.shelf_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Shelf Expire Time') %]</div>
<div class="flex-cell well">
- {{hold.shelf_expire_time() | date:'short'}}
+ {{hold.shelf_expire_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Hold Expire Time') %]</div>
<div class="flex-cell well">
- {{hold.expire_time() | date:'short'}}
+ {{hold.expire_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-row">
<div class="flex-cell">[% l('Transit Send Time') %]</div>
<div class="flex-cell well">
- {{transit.source_send_time() | date:'short'}}
+ {{transit.source_send_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Transit Receive Time') %]</div>
<div class="flex-cell well">
- {{transit.source_recv_time() | date:'short'}}
+ {{transit.source_recv_time() | date:egDateAndTimeFormat}}
</div>
</div>
</div>
main-label="[% l('Item Status') %]"
items-provider="gridDataProvider"
grid-controls="gridControls"
- persist-key="cat.items">
+ persist-key="cat.items"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action handler="add_copies_to_bucket"
label="[% l('Add Items to Bucket') %]"></eg-grid-action>
<eg-grid-field label="[% l('Alert Message') %]" path='alert_message' visible></eg-grid-field>
<eg-grid-field label="[% l('Barcode') %]" path='barcode' visible></eg-grid-field>
<eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
- <eg-grid-field label="[% l('Due Date') %]" path="_circ.due_date" visible>
- {{item['_circ']['due_date'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Due Date') %]" path="_circ.due_date" datatype="timestamp" visible></eg-grid-field>
+
<eg-grid-field label="[% l('Location') %]" path="location.name" visible></eg-grid-field>
<eg-grid-field label="[% l('Copy Status') %]" path="status.name" visible></eg-grid-field>
<eg-grid-field label="[% l('Title') %]"
<eg-grid-field label="[% l('Acquisition Cost') %]" path="cost" hidden></eg-grid-field>
<eg-grid-field label="[% l('Age-Based Hold Protection') %]" path="age_protect" hidden></eg-grid-field>
<eg-grid-field label="[% l('Author') %]" path="call_number.record.simple_record.author" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Checkin Date') %]" path="_circ_summary.last_checkin_time" hidden>
- {{item['_circ_summary']['last_checkin_time'] | date:'short'}}
- </eg-grid-field>
- <eg-grid-field label="[% l('Checkin Scan Date') %]" path="_circ_summary.last_checkin_scan_time" hidden>
- {{item['_circ_summary.last_checkin_scan_time'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Checkin Date') %]" path="_circ_summary.last_checkin_time" datatype="timestamp" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Checkin Scan Date') %]" path="_circ_summary.last_checkin_scan_time" datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('Checkin Workstation') %]" path="_circ_summary.last_checkin_workstation" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Checkout Date') %]" path="_circ_summary.start_time" hidden>
- {{item['_circ_summary']['start_time'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Checkout Date') %]" path="_circ_summary.start_time" datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('Checkout Workstation') %]" path="_circ_summary.checkout_workstation" hidden></eg-grid-field>
<eg-grid-field label="[% l('Checkout/Renewal Library') %]" path="_circ.circ_lib.name" hidden></eg-grid-field>
<eg-grid-field label="[% l('Circulation ID') %]" path="_circ.id" hidden></eg-grid-field>
<eg-grid-field label="[% l('Copy ID') %]" path="id" hidden></eg-grid-field>
<eg-grid-field label="[% l('Copy Number') %]" path="copy_number" hidden></eg-grid-field>
<eg-grid-field label="[% l('Created By') %]" path="creator" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Date Created') %]" path="create_date" hidden>
- {{item['create_date'] | date:'short'}}
- </eg-grid-field>
- <eg-grid-field label="[% l('Date Last Edited') %]" path="edit_date" hidden>
- {{item['edit_date'] | date:'short'}}
- </eg-grid-field>
- <eg-grid-field label="[% l('Date Record Created') %]" path="call_number.record.create_date" hidden>
- {{item['call_number.record.create_date'] | date:'short'}}
- </eg-grid-field>
- <eg-grid-field label="[% l('Date Record Last Edited') %]" path="call_number.record.edit_date" hidden>
- {{item['call_number.record.create_date'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Date Created') %]" path="create_date" datatype="timestamp" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Date Last Edited') %]" path="edit_date" datatype="timestamp" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Date Record Created') %]" path="call_number.record.create_date" datatype="timestamp" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Date Record Last Edited') %]" path="call_number.record.edit_date" datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('Deleted?') %]" path="deleted" hidden></eg-grid-field>
<eg-grid-field label="[% l('Document ID') %]" path="call_number.record.id" hidden></eg-grid-field>
<eg-grid-field label="[% l('Edited By') %]" path="editor" hidden></eg-grid-field>
<eg-grid-field label="[% l('Fine Level') %]" path="fine_level" hidden></eg-grid-field>
<eg-grid-field label="[% l('Fines Stopped') %]" path="_circ_summary.last_stop_fines" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Fines Stopped Time') %]" path="_circ_summary.last_stop_fines_time" hidden>
- {{item['_circ_summary']['last_stop_fines_time'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Fines Stopped Time') %]" path="_circ_summary.last_stop_fines_time" datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('Floating?') %]" path="floating" hidden></eg-grid-field>
<eg-grid-field label="[% l('Holdable?') %]" path="holdable" hidden></eg-grid-field>
<eg-grid-field label="[% l('Holds Count') %]" path="holds_count" hidden></eg-grid-field>
<eg-grid-field label="[% l('Quality') %]" path="call_number.record.simple_record.quality" hidden></eg-grid-field>
<eg-grid-field label="[% l('Reference?') %]" path="ref" hidden></eg-grid-field>
<eg-grid-field label="[% l('Remaining Renewals') %]" path="_circ.renewals_remaining" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Status Changed Time') %]" path="status_changed_time" hidden>
- {{item['status_changed_time'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Status Changed Time') %]" path="status_changed_time" datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('TCN') %]" path="call_number.record.tcn_value" hidden></eg-grid-field>
<eg-grid-field label="[% l('TCN Source') %]" path="call_number.record.tcn_source" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Transaction Complete') %]" path="_circ.xact_finish" hidden>
- {{item['_circ']['xact_finish'] | date:'short'}}
- </eg-grid-field>
+ <eg-grid-field label="[% l('Transaction Complete') %]" path="_circ.xact_finish" datatype="timestamp" hidden></eg-grid-field>
</eg-grid>
</eg-grid>
<div class="flex-cell well">{{copy.call_number().label()}}</div>
<div class="flex-cell">[% l('Due Date') %]</div>
- <div class="flex-cell well">{{circ.due_date() | date:'short'}}</div>
+ <div class="flex-cell well">{{circ.due_date() | date:egDateAndTimeFormat}}</div>
</div>
<div class="flex-row">
</div>
<div class="flex-cell">[% l('Checkout Date') %]</div>
- <div class="flex-cell well">{{circ.xact_start() | date:'short'}}</div>
+ <div class="flex-cell well">{{circ.xact_start() | date:egDateAndTimeFormat}}</div>
</div>
<div class="flex-row">
<div class="flex-row">
<div class="flex-cell">[% l('Date Created') %]</div>
- <div class="flex-cell well">{{copy.create_date() | date:'short'}}</div>
+ <div class="flex-cell well">{{copy.create_date() | date:egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Fine Level') %]</div>
<div class="flex-cell well">{{circ.duration_rule().name()}}</div>
<div class="flex-row">
<div class="flex-cell">[% l('Date Active') %]</div>
- <div class="flex-cell well">{{copy.active_date() | date:'short'}}</div>
+ <div class="flex-cell well">{{copy.active_date() | date:egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Reference') %]</div>
<div class="flex-cell well">{{copy.ref()}}</div>
<div class="flex-row">
<div class="flex-cell">[% l('Status Changed') %]</div>
- <div class="flex-cell well">{{copy.status_changed_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{copy.status_changed_time() | date:egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('OPAC Visible') %]</div>
<div class="flex-cell well">{{copy.opac_visible()}}</div>
<div class="flex-cell">[% l('Checkin Time') %]</div>
<div class="flex-cell well">
{{circ.checkin_time() ||
- circ_summary.last_checkin_time() | date:'short'}}
+ circ_summary.last_checkin_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-cell">[% l('Checkin Scan Time') %]</div>
<div class="flex-cell well">
{{circ.checkin_scan_time() ||
- circ_summary.last_checkin_scan_time() | date:'short'}}
+ circ_summary.last_checkin_scan_time() | date:egDateAndTimeFormat}}
</div>
</div>
<div class="flex-cell">{{record.owner().shortname()}}</div>
<div class="flex-cell strong-text">[% l('Last Edited On:') %]</div>
- <div class="flex-cell">{{record.edit_date() | date:'short'}}</div>
+ <div class="flex-cell">{{record.edit_date() | date:$root.egDateAndTimeFormat}}</div>
</div><!-- flex-row -->
</div>
grid-controls="workingGridControls"
on-select="handleItemSelect"
after-select="afterItemSelect"
- persist-key="cat.volcopy.copies">
+ persist-key="cat.volcopy.copies"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item disabled="disableSave" handler="workingToComplete"
label="[% l('Store Selected') %]"></eg-grid-menu-item>
<eg-grid-field label="[% l('Barcode') %]" path='barcode' visible></eg-grid-field>
- <eg-grid-field label="[% l('Created') %]" path="create_date" visible></eg-grid-field>
+ <eg-grid-field label="[% l('Created') %]" path="create_date" datatype="timestamp" visible></eg-grid-field>
<eg-grid-field label="[% l('Activated') %]" path="active_date" visible></eg-grid-field>
<eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
<eg-grid-field label="[% l('Copy ID') %]" path="id" hidden></eg-grid-field>
features="-pagination,-actions,-index"
items-provider="completedGridDataProvider"
grid-controls="completedGridControls"
- persist-key="cat.volcopy.copies.complete">
+ persist-key="cat.volcopy.copies.complete"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item standalone="true" handler="completeToWorking"
label="[% l('Edit Selected') %]"></eg-grid-menu-item>
label="[% l('Save & Exit') %]"></eg-grid-menu-item>
<eg-grid-field label="[% l('Barcode') %]" path='barcode' visible></eg-grid-field>
- <eg-grid-field label="[% l('Created') %]" path="create_date" visible></eg-grid-field>
- <eg-grid-field label="[% l('Activated') %]" path="active_date" visible></eg-grid-field>
+ <eg-grid-field label="[% l('Created') %]" path="create_date" datatype="timestamp" visible></eg-grid-field>
+ <eg-grid-field label="[% l('Activated') %]" path="active_date" datatype="timestamp" visible></eg-grid-field>
<eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
<eg-grid-field label="[% l('Circ Library') %]" flesher="orgById" path="circ_lib.name" visible></eg-grid-field>
<eg-grid-field label="[% l('Shelving Location') %]" flesher="locationById" path="location.name" visible></eg-grid-field>
features="-display,-sort,-multisort,-multiselect"
items-provider="z3950SearchGridProvider"
grid-controls="gridControls"
- persist-key="cat.z3950_results">
+ persist-key="cat.z3950_results"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="showInCatalog" disabled="cant_showInCatalog"
label="[% l('Show in Catalog') %]"></eg-grid-menu-item>
<eg-grid-field label="[% l('Publisher') %]" path="publisher" visible></eg-grid-field>
<eg-grid-field label="[% l('Service') %]" path="service" visible></eg-grid-field>
<eg-grid-field label="[% l('TCN') %]" path="tcn" visible></eg-grid-field>
- <eg-grid-field label
<eg-grid-field path="*" hidden></eg-grid-field>
</eg-grid>
<div class="col-md-12">
<div ng-if="is_backdate()" class="alert-danger pad-all-min">
[% l('Backdated Check In [_1]',
- '{{checkinArgs.backdate | date:"shortDate"}}') %]
+ '{{checkinArgs.backdate | date:$root.egDateFormat}}') %]
</div>
<div ng-if="modifiers.no_precat_alert" class="alert-danger pad-all-min">
[% l('Ignore Pre-Cataloged Items') %]
main-label="[% l('Items Checked In') %]"
items-provider="gridDataProvider"
grid-controls="gridControls"
- persist-key="{{grid_persist_key}}">
+ persist-key="{{grid_persist_key}}"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action
handler="fetchLastCircPatron"
path='circ.id'></eg-grid-field>
<eg-grid-field label="[% l('Checkin Date') %]"
- path='circ.checkin_time' dateformat='short'></eg-grid-field>
+ path='circ.checkin_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Family Name') %]"
path='au.family_name'></eg-grid-field>
<eg-grid-field label="[% l('Finish') %]"
- path='circ.stop_fines_time'></eg-grid-field>
+ path='circ.stop_fines_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Location') %]"
path='acp.location.name'></eg-grid-field>
</eg-grid-field>
<eg-grid-field label="[% l('Due Date') %]"
- path='circ.due_date' dateformat='short' hidden></eg-grid-field>
+ path='circ.due_date' datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('Author') %]"
path="author" hidden></eg-grid-field>
id-field="id"
idl-class="ahopl"
grid-controls="gridControls"
- persist-key="circ.holds.pull">
+ persist-key="circ.holds.pull"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="detail_view"
label="[% l('Detail View') %]"></eg-grid-menu-item>
path='queue_position' hidden></eg-grid-field>
<eg-grid-field label="[% l('Hold ID') %]" path='id' required hidden>
</eg-grid-field>
- <eg-grid-field label="[% l('Request Date') %]" path='request_time' hidden>
+ <eg-grid-field label="[% l('Request Date') %]" path='request_time' datatype="timestamp" hidden>
</eg-grid-field>
</eg-grid>
features="-sort,-multisort"
items-provider="gridDataProvider"
grid-controls="gridControls"
- persist-key="circ.holds.shelf">
+ persist-key="circ.holds.shelf"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="detail_view"
label="[% l('Detail View') %]"></eg-grid-menu-item>
</a>
</eg-grid-field>
- <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time'></eg-grid-field>
- <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time'></eg-grid-field>
- <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time'></eg-grid-field>
+ <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Hold Type') %]" path='hold.hold_type'></eg-grid-field>
<eg-grid-field label="[% l('Pickup Library') %]" path='hold.pickup_lib.shortname'></eg-grid-field>
<eg-grid-field label="[% l('Post-Clear') %]" path='post_clear'></eg-grid-field>
<div>{{penalty.note()}}</div><!-- force newline -->
</div>
<div class="col-md-2">
- {{penalty.set_date() | date:'shortDate'}}
+ {{penalty.set_date() | date:$root.egDateFormat}}
</div>
</div>
</div>
<eg-grid
idl-class="mp"
id-field="id"
- grid-controls="gridControls">
+ grid-controls="gridControls"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action
label="[% l('Full Details') %]" handler="showFullDetails"></eg-grid-action>
<eg-grid-field path="amount" label="[% l('Amount') %]"></eg-grid-field>
<eg-grid-field path="id" label="[% l('Payment ID') %]"></eg-grid-field>
- <eg-grid-field path="payment_ts" label="[% l('Payment Time') %]"></eg-grid-field>
+ <eg-grid-field path="payment_ts" label="[% l('Payment Time') %]" datatype="timestamp"></eg-grid-field>
<eg-grid-field path="note" label="[% l('Note') %]"></eg-grid-field>
<eg-grid-field path="voided" label="[% l('Voided') %]"></eg-grid-field>
<eg-grid-field path="xact.summary.xact_type" label="[% l('Transaction Type') %]"></eg-grid-field>
<eg-grid
idl-class="mbt"
id-field="id"
- grid-controls="gridControls">
+ grid-controls="gridControls"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action
label="[% l('Add Billing') %]" handler="addBilling"></eg-grid-action>
<eg-grid-field path="summary.balance_owed"></eg-grid-field>
<eg-grid-field path="id" label="[% l('Bill #') %]"></eg-grid-field>
- <eg-grid-field path="xact_finish" label="[% l('Finish') %]"></eg-grid-field>
- <eg-grid-field path="xact_start" label="[% l('Start') %]"></eg-grid-field>
+ <eg-grid-field path="xact_finish" label="[% l('Finish') %]" datatype="timestamp"></eg-grid-field>
+ <eg-grid-field path="xact_start" label="[% l('Start') %]" datatype="timestamp"></eg-grid-field>
<eg-grid-field path="summary.total_owed" label="[% l('Total Billed') %]"></eg-grid-field>
<eg-grid-field path="summary.total_paid" label="[% l('Total Paid') %]"></eg-grid-field>
<eg-grid-field path="summary.xact_type" label="[% l('Type') %]"></eg-grid-field>
path="circulation.target_copy.id" required hidden></eg-grid-field>
<!-- needed for grid query -->
- <eg-grid-field path="summary.last_payment_ts" required hidden></eg-grid-field>
+ <eg-grid-field path="summary.last_payment_ts" datatype="timestamp" required hidden></eg-grid-field>
<eg-grid-field path="summary.*" hidden></eg-grid-field>
<eg-grid-field path="circulation.target_copy.*" hidden></eg-grid-field>
sort="gridSort"
grid-controls="gridControls"
revision="gridRevision"
- persist-key="circ.patron.bills">
+ persist-key="circ.patron.bills"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item label="[% l('Bill Patron') %]"
handler="showBillDialog"></eg-grid-menu-item>
<eg-grid-field label="[% ('Balance Owed') %]" path='summary.balance_owed'></eg-grid-field>
<eg-grid-field label="[% ('Bill #') %]" path='id'></eg-grid-field>
- <eg-grid-field label="[% ('Start') %]" path='xact_start'></eg-grid-field>
+ <eg-grid-field label="[% ('Start') %]" path='xact_start' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% ('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
<eg-grid-field label="[% ('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
<eg-grid-field label="[% ('Type') %]" path='xact_type'></eg-grid-field>
features="-sort,-multisort"
items-provider="gridDataProvider"
grid-controls="gridControls"
- persist-key="circ.patron.checkout">
+ persist-key="circ.patron.checkout"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-field label="[% l('Alert Msg') %]"
path="acp.alert_message"></eg-grid-field>
path="acn.label"></eg-grid-field>
<eg-grid-field label="[% l('Due Date') %]"
- path='circ.due_date' dateformat='short'></eg-grid-field>
+ path='circ.due_date' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Family Name') %]"
path='au.family_name'></eg-grid-field>
<eg-grid
idl-class="au"
sort="gridSort"
- grid-controls="gridControls">
+ grid-controls="gridControls"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action handler="moveToGroup"
label="[% l('Move Another Patron To This Group') %]"></eg-grid-action>
<eg-grid-field path="active"></eg-grid-field>
<eg-grid-field path="barred"></eg-grid-field>
- <eg-grid-field path="dob"></eg-grid-field>
+ <eg-grid-field path="dob" dateformat="{{$root.egDateFormat}}" datatype="timestamp"></eg-grid-field>
<eg-grid-field path="family_name"></eg-grid-field>
<eg-grid-field path="first_given_name"></eg-grid-field>
<eg-grid-field path="master_account"></eg-grid-field>
<eg-grid-field path="id" hidden required></eg-grid-field>
<eg-grid-field path="usrgroup" hidden required></eg-grid-field>
<eg-grid-field path="deleted" hidden required></eg-grid-field>
- <eg-grid-field path="create_date" hidden required></eg-grid-field>
+ <eg-grid-field path="create_date" datatype="timestamp" hidden required></eg-grid-field>
<!--
<eg-grid-field path=".*"></eg-grid-field>
id-field="id"
features="-sort,-multisort"
items-provider="gridDataProvider"
- persist-key="circ.patron.holds">
+ persist-key="circ.patron.holds"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="place_hold"
label="[% l('Place Hold') %]"></eg-grid-menu-item>
<eg-grid-field label="[% l('Patron Barcode') %]" hidden>{{item.patron_barcode}}</eg-grid-field>
<eg-grid-field label="[% l('Patron alias') %]" hidden>{{item.patron_alias}}</eg-grid-field>
- <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time'></eg-grid-field>
- <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time'></eg-grid-field>
- <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time'></eg-grid-field>
+ <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Hold Type') %]" path='hold.hold_type'></eg-grid-field>
<eg-grid-field label="[% l('Pickup Library') %]" path='hold.pickup_lib.shortname'></eg-grid-field>
id-field="id"
features="-sort,-multisort"
items-provider="gridDataProvider"
- persist-key="circ.patron.items_out.noncat">
+ persist-key="circ.patron.items_out.noncat"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-field label="[% l('Circ ID') %]" path='id'></eg-grid-field>
<eg-grid-field label="[% l('Item Type') %]" path='item_type.name'></eg-grid-field>
<eg-grid-field label="[% l('Checkout Library') %]" path='circ_lib.shortname'></eg-grid-field>
- <eg-grid-field label="[% l('Checkout Date') %]" path='circ_time' dateformat='short'></eg-grid-field>
- <eg-grid-field label="[% l('Due Date') %]" path='duedate' dateformat='short'></eg-grid-field>
+ <eg-grid-field label="[% l('Checkout Date') %]" path='circ_time' datatype="timestamp"></eg-grid-field>
+ <eg-grid-field label="[% l('Due Date') %]" path='duedate' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Checkout Staff') %]" path='staff.usrname'></eg-grid-field>
</eg-grid>
id-field="id"
features="-sort,-multisort"
items-provider="gridDataProvider"
- persist-key="circ.patron.items_out">
+ persist-key="circ.patron.items_out"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action handler="print_receipt"
label="[% l('Print Item Receipt') %]"></eg-grid-action>
{{item.target_copy().barcode()}}
</a>
</eg-grid-field>
- <eg-grid-field label="[% l('Due Date') %]" path='due_date' dateformat='short'></eg-grid-field>
+ <eg-grid-field label="[% l('Due Date') %]" path='due_date' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Workstation') %]" path='workstation.name'></eg-grid-field>
<eg-grid-field label="[% l('Checkin Workstation') %]" path='checkin_workstation.name'></eg-grid-field>
<eg-grid-field label="[% l('Checkout / Renewal Library') %]" path='circ_lib.shortname'></eg-grid-field>
<div class="pad-vert"></div>
<eg-grid
idl-class="ausp"
- grid-controls="activeGridControls">
+ grid-controls="activeGridControls"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="createPenalty"
label="[% l('Apply Penalty / Message') %]"></eg-grid-menu-item>
<eg-grid-action label="[% l('Archive Penalty / Message') %]"
handler="archivePenalty"></eg-grid-action>
- <eg-grid-field path="set_date" label="[% l('Applied On') %]"></eg-grid-field>
+ <eg-grid-field path="set_date" label="[% l('Applied On') %]" datatype="timestamp"></eg-grid-field>
<eg-grid-field path="standing_penalty.label"></eg-grid-field>
<eg-grid-field path="org_unit.shortname" label="[% l('Library') %]"></eg-grid-field>
<eg-grid-field path="note"></eg-grid-field>
</div>
<eg-grid
idl-class="ausp"
- grid-controls="archiveGridControls">
+ grid-controls="archiveGridControls"
+ dateformat="{{$root.egDateAndTimeFormat}}">
- <eg-grid-field path="set_date" label="[% l('Applied On') %]"></eg-grid-field>
+ <eg-grid-field path="set_date" label="[% l('Applied On') %]" datatype="timestamp"></eg-grid-field>
<eg-grid-field path="standing_penalty.label"></eg-grid-field>
<eg-grid-field path="org_unit.shortname" label="[% l('Library') %]"></eg-grid-field>
<eg-grid-field path="note"></eg-grid-field>
<div class="pull-right">
<span class="pad-horiz alert alert-warning" ng-if="note.pub() == 't'">[% l('Patron Visible') %]</span>
<span class="pad-horiz alert alert-info" ng-if="note.pub() == 'f'">[% l('Staff Only') %]</span>
- <span class="pad-horiz">{{note.create_date() | date:'short'}}</span>
+ <span class="pad-horiz">{{note.create_date() | date:$root.egDateAndTimeFormat}}</span>
<span>[% l('Created by [_1]', '{{note.creator().usrname()}}') %]</span>
</div>
</div>
features="-sort,-multisort"
items-provider="grid_data_provider"
grid-controls="grid_controls"
- persist-key="circ.pending_patrons.list">
+ persist-key="circ.pending_patrons.list"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="load_patron"
label="[% l('Load Patron') %]"></eg-grid-menu-item>
main-label="[% l('Patron Search Results') %]"
grid-controls="gridControls"
items-provider="patronSearchGridProvider"
- persist-key="circ.patron.search">
+ persist-key="circ.patron.search"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="merge_patrons"
disabled="need_two_selected"
<eg-grid-field label="[% ('Last Name') %]" path='family_name' visible sortable multisortable></eg-grid-field>
<eg-grid-field label="[% ('First Name') %]" path='first_given_name' visible sortable multisortable></eg-grid-field>
<eg-grid-field label="[% ('Middle Name') %]" path='second_given_name' visible sortable multisortable></eg-grid-field>
- <eg-grid-field label="[% ('DoB') %]" path='dob' visible sortable multisortable></eg-grid-field>
+ <eg-grid-field label="[% ('DoB') %]" path='dob' dateformat="{{$root.egDateFormat}}" datatype="timestamp" visible sortable multisortable></eg-grid-field>
<eg-grid-field label="[% ('Home Library') %]" path='home_ou.shortname' visible></eg-grid-field>
- <eg-grid-field label="[% ('Created On') %]" path='create_date' visible sortable multisortable></eg-grid-field>
+ <eg-grid-field label="[% ('Created On') %]" path='create_date' datatype="timestamp" visible sortable multisortable></eg-grid-field>
<eg-grid-field label="[% ('Mailing:Street 1') %]" path='mailing_address.street1' visible></eg-grid-field>
<eg-grid-field label="[% ('Mailing:Street 2') %]" path='mailing_address.street2'></eg-grid-field>
{{penalty.note() || penalty.standing_penalty().label()}}
</div>
<div class="col-md-3">
- {{penalty.set_date() | date:'shortDate'}}
+ {{penalty.set_date() | date:$root.egDateFormat}}
</div>
</div>
<div class="row patron-summary-divider">
ng-class="{'patron-summary-alert' : !patron().dob()}">
<a class="col-md-5" ng-if="obscure_dob()" ng-click="show_dob(true)">[% l('Date of Birth') %]</a>
<div class="col-md-5" ng-if="!obscure_dob()">[% l('Date of Birth') %]</div>
- <div class="col-md-7" ng-show="now_show_dob()">{{patron().dob() | date:'shortDate'}}</div>
+ <div class="col-md-7" ng-show="now_show_dob()">{{patron().dob() | date:$root.egDateFormat}}</div>
</div>
<div class="row">
<div class="col-md-5">[% l('Last Activity') %]</div>
- <div class="col-md-7">{{patron().usr_activity()[0].event_time() | date:'shortDate'}}</div>
+ <div class="col-md-7">{{patron().usr_activity()[0].event_time() | date:$root.egDateFormat}}</div>
</div>
<div class="row">
<div class="col-md-5">[% l('Last Updated') %]</div>
- <div class="col-md-7">{{patron().last_update_time() | date:'shortDate'}}</div>
+ <div class="col-md-7">{{patron().last_update_time() | date:$root.egDateFormat}}</div>
</div>
<div class="row">
<div class="col-md-5">[% l('Create Date') %]</div>
- <div class="col-md-7">{{patron().create_date() | date:'shortDate'}}</div>
+ <div class="col-md-7">{{patron().create_date() | date:$root.egDateFormat}}</div>
</div>
<div class="row"
ng-class="{'patron-summary-alert' : isPatronExpired()}">
<div class="col-md-5">[% l('Expire Date') %]</div>
- <div class="col-md-7">{{patron().expire_date() | date:'shortDate'}}</div>
+ <div class="col-md-7">{{patron().expire_date() | date:$root.egDateFormat}}</div>
</div>
<div class="row patron-summary-divider"
ng-class="{'patron-summary-alert' : patron_stats().fines.balance_owed}">
<div class="col-md-2 strong-text">[% l('Total Paid') %]</div>
<div class="col-md-2">{{xact.summary().total_paid() | currency}}</div>
<div class="col-md-2 strong-text">[% l('Checked Out') %]</div>
- <div class="col-md-2">{{xact.circulation().xact_start() | date:'short'}}</div>
+ <div class="col-md-2">{{xact.circulation().xact_start() | date:$root.egDateAndTimeFormat}}</div>
</div>
<div class="row">
<div class="col-md-2 strong-text">[% l('Start') %]</div>
- <div class="col-md-2">{{xact.xact_start() | date:'short'}}</div>
+ <div class="col-md-2">{{xact.xact_start() | date:$root.egDateAndTimeFormat}}</div>
<div class="col-md-2 strong-text">[% l('Total Billed') %]</div>
<div class="col-md-2">{{xact.summary().balance_owed() | currency}}</div>
<div class="col-md-2 strong-text">[% l('Due Date') %]</div>
- <div class="col-md-2">{{xact.circulation().due_date() | date:'short'}}</div>
+ <div class="col-md-2">{{xact.circulation().due_date() | date:$root.egDateAndTimeFormat}}</div>
</div>
<div class="row">
<div class="col-md-2 strong-text">[% l('Finish') %]</div>
- <div class="col-md-2">{{xact.xact_finish() | date:'short'}}</div>
+ <div class="col-md-2">{{xact.xact_finish() | date:$root.egDateAndTimeFormat}}</div>
<div class="col-md-2 strong-text">[% l('Renewal?') %]</div>
<div class="col-md-2">
<span ng-if="xact.circulation.desk_renewal == 't'">[% l('Desk') %]</span>
<span ng-if="xact.circulation.opac_renewal == 't'">[% l('OPAC') %]</span>
</div>
<div class="col-md-2 strong-text">[% l('Checked In') %]</div>
- <div class="col-md-2">{{xact.circulation().checkin_time() | date:'short'}}</div>
+ <div class="col-md-2">{{xact.circulation().checkin_time() | date:$root.egDateAndTimeFormat}}</div>
</div>
<div ng-if="xact.circulation()">
<div class="col-md-2 strong-text">[% l('Created') %]</div>
<div class="col-md-2">
- {{xact.circulation().target_copy().create_date() | date:'short'}}
+ {{xact.circulation().target_copy().create_date() | date:$root.egDateAndTimeFormat}}
</div>
</div>
<div class="row">
<div class="col-md-2 strong-text">[% l('Edited') %]</div>
<div class="col-md-2">
- {{xact.circulation().target_copy().edit_date() | date:'short'}}
+ {{xact.circulation().target_copy().edit_date() | date:$root.egDateAndTimeFormat}}
</div>
<div class="col-md-2 strong-text">[% l('Age Protect') %]</div>
<div class="col-md-2">
id-field="id"
grid-controls="xactGridControls"
auto-fields="true"
- page-size="10">
+ page-size="10"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action
label="[% l('Void Billings') %]" handler="voidBillings"></eg-grid-action>
id-field="id"
auto-fields="true"
grid-controls="paymentGridControls"
- page-size="10">
+ page-size="10"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action
label="[% l('Edit Note') %]" handler="editPaymentNotes"></eg-grid-action>
<eg-grid-field path="cash_payment.cash_drawer.name"
label="[% l('Cash Drawer') %]"></eg-grid-field>
+
</eg-grid>
features="-sort,-multisort"
items-provider="gridDataProvider"
grid-controls="gridControls"
- persist-key="circ.renew">
+ persist-key="circ.renew"
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-action
handler="fetchLastCircPatron"
path="acn.label"></eg-grid-field>
<eg-grid-field label="[% l('Due Date') %]"
- path='circ.due_date' dateformat='short'></eg-grid-field>
+ path='circ.due_date' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Family Name') %]"
path='au.family_name'></eg-grid-field>
</div>
<div class="row">
<div class="col-md-3">[% l('Start') %]</div>
- <div class="col-md-3">{{xact.xact_start | date:'short'}}</div>
+ <div class="col-md-3">{{xact.xact_start | date:$root.egDateAndTimeFormat}}</div>
<div class="col-md-3">[% l('Total Billed') %]</div>
<div class="col-md-3">{{xact.summary.balance_owed | currency}}</div>
</div>
<div class="row">
<div class="col-md-3">[% l('Finish') %]</div>
- <div class="col-md-3">{{xact.xact_finish | date:'short'}}</div>
+ <div class="col-md-3">{{xact.xact_finish | date:$root.egDateAndTimeFormat}}</div>
<div class="col-md-3">[% l('Renewal?') %]</div>
<div class="col-md-3">
<span ng-if="xact.circulation.desk_renewal == 't'">[% l('Desk') %]</span>
</div>
<div class="modal-body">
<div ng-if="sameUser">
- [% |l("{{circDate | date:'shortDate'}}") %]
+ [% |l("{{circDate | date:$root.egDateFormat}}") %]
There is an open circulation on the requested item.
This item was already checked out to this user on [_1].
[% END %]
</div>
<div ng-if="!sameUser">
- [% |l("{{circDate | date:'shortDate'}}") %]
+ [% |l("{{circDate | date:$root.egDateFormat}}") %]
There is an open circulation on the requested item.
This copy was checked out by another patron on [_1].
[% END %]
<div class="pad-vert"></div>
<div class="row">
<div class="col-md-4">[% l('Transit Date:') %]</div>
- <div class="col-md-8">{{transit.source_send_time() | date:'short'}}</div>
+ <div class="col-md-8">{{transit.source_send_time() | date:$root.egDateAndTimeFormat}}</div>
</div>
<div class="row">
<div class="col-md-4">[% l('Transit Source:') %]</div>
<h4 class="pad-vert">[% l('Hold Details') %]</h4>
<div class="flex-row">
<div class="flex-cell">[% l('Request Date') %]</div>
- <div class="flex-cell well">{{hold.request_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{hold.request_time() | date:$root.egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Capture Date') %]</div>
- <div class="flex-cell well">{{hold.capture_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{hold.capture_time() | date:$root.egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Available On') %]</div>
- <div class="flex-cell well">{{hold.shelf_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{hold.shelf_time() | date:$root.egDateAndTimeFormat}}</div>
</div>
<div class="flex-row">
<div class="flex-cell">[% l('Hold Type') %]</div>
<div class="flex-cell">[% l('Cancel Cause') %]</div>
<div class="flex-cell well">{{hold.cancel_cause().label()}}</div>
<div class="flex-cell">[% l('Cancel Time') %]</div>
- <div class="flex-cell well">{{hold.cancel_time() | date:'short'}}</div>
+ <div class="flex-cell well">{{hold.cancel_time() | date:$root.egDateAndTimeFormat}}</div>
<div class="flex-cell">[% l('Cancel Note') %]</div>
<div class="flex-cell well">{{hold.cancel_note()}}</div>
</div>
<div class="col-md-6 strong-text">{{notify.method()}}</div>
<div class="col-md-6">
<div class="pull-right">
- <span class="pad-horiz">{{notify.notify_time() | date:'short'}}</span>
+ <span class="pad-horiz">{{notify.notify_time() | date:$root.egDateAndTimeFormat}}</span>
<span>[% l('Created by [_1]', '{{notify.notify_staff().usrname()}}') %]</span>
</div>
</div>
<br/>
<div>
<span>[% l('Request Date:') %]</span>
- <span>{{hold.request_time | date:'shortDate'}}</span>
+ <span>{{hold.request_time | date:$root.egDateFormat}}</span>
</div>
<div>
<span>[% l('Slip Date:') %]</span>
- <span>{{today | date:'shortDate'}}</span>
+ <span>{{today | date:$root.egDateFormat}}</span>
</div>
</div>
<div class="modal-footer">
<br/>
<div>
<span>[% l('Request Date:') %]</span>
- <span>{{hold.request_time | date:'shortDate'}}</span>
+ <span>{{hold.request_time | date:$root.egDateFormat}}</span>
</div>
</div>
<div>
<div>
<span>[% l('Slip Date:') %]</span>
- <span>{{today | date:'shortDate'}}</span>
+ <span>{{today | date:$root.egDateFormat}}</span>
</div>
</div>
</div>
features="-sort,-multisort"
grid-controls="grid_controls"
persist-key="circ.transits.list"
->
+ dateformat="{{$root.egDateAndTimeFormat}}">
<eg-grid-menu-item handler="add_copies_to_bucket"
label="[% l('Add Items to Bucket') %]"></eg-grid-menu-item>
<eg-grid-field path='target_copy.call_number.record.simple_record.author' hidden></eg-grid-field>
<eg-grid-field path='source.shortname' label="[% l('Source Library') %]" sortable></eg-grid-field>
<eg-grid-field path='dest.shortname' label="[% l('Destination Library') %]" sortable></eg-grid-field>
- <eg-grid-field path='source_send_time' dateformat='short' sortable></eg-grid-field>
+ <eg-grid-field path='source_send_time' datatype="timestamp" sortable></eg-grid-field>
<eg-grid-field path='hold_transit_copy.hold.hold_type'></eg-grid-field>
- <eg-grid-field path='hold_transit_copy.hold.request_time' hidden></eg-grid-field>
- <eg-grid-field path='hold_transit_copy.hold.capture_time' hidden></eg-grid-field>
- <eg-grid-field path='hold_transit_copy.hold.expire_time' hidden></eg-grid-field>
+ <eg-grid-field path='hold_transit_copy.hold.request_time' datatype="timestamp" hidden></eg-grid-field>
+ <eg-grid-field path='hold_transit_copy.hold.capture_time' datatype="timestamp" hidden></eg-grid-field>
+ <eg-grid-field path='hold_transit_copy.hold.expire_time' datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field path='hold_transit_copy.hold.usr.family_name' hidden></eg-grid-field>
<eg-grid-field path='hold_transit_copy.hold.usr.first_given_name' hidden></eg-grid-field>
<eg-grid-field path='hold_transit_copy.hold.usr.card.barcode' label="[% l('Patron Barcode') %]" hidden></eg-grid-field>
</p>
<hr/>
<br/><br/>
-{{current_location.shortname}} {{today | date:'short'}}
+{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
-<!-
+<!--
Template for printing a list of current bills. Data specific
to this template includes:
<table>
<tr valign="top">
<td>[% l('Date:') %]</td>
- <td>{{xact.xact_start | date:'short'}}</td>
+ <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
</tr>
<tr valign="top">
<td>[% l('Type') %]:</td>
</div><!-- ng-repeat -->
</dl>
<hr/>
-{{current_location.shortname}} {{today | date:'short'}}
+{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
<br/><br/>
-<!-
+<!--
Template for printing a list of past bills. Data specific
to this template includes:
<table>
<tr valign="top">
<td>[% l('Date:') %]</td>
- <td>{{xact.xact_start | date:'short'}}</td>
+ <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
</tr>
<tr valign="top">
<td>[% l('Type') %]:</td>
</div><!-- ng-repeat -->
</dl>
<hr/>
-{{current_location.shortname}} {{today | date:'short'}}
+{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
<br/><br/>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<br/>
</div>
<div>{{checkout.title}}</div>
<div>[% l('Barcode: [_1] Due: [_2]',
'{{checkout.copy.barcode}}',
- '{{checkout.circ.due_date | date:"short"}}') %]</div>
+ '{{checkout.circ.due_date | date:$root.egDateAndTimeFormat}}') %]</div>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
<br/>
<br/>
<div>[% l('Request Date: [_1]',
- '{{hold.request_time | date:"short"}}') %]</div>
- <div>[% l('Slip Date: [_1]', '{{today | date:"short"}}') %]</div>
+ '{{hold.request_time | date:$root.egDateAndTimeFormat}}') %]</div>
+ <div>[% l('Slip Date: [_1]', '{{today | date:$root.egDateAndTimeFormat}}') %]</div>
<div>[% l('Printed by [_1] at [_2]',
'{{staff.first_given_name}}', '{{current_location.shortname}}') %]</div>
<br/>
<div>[% l('Request Date: [_1]',
- '{{hold.request_time | date:"short"}}') %]</div>
- <div>[% l('Slip Date: [_1]', '{{today | date:"short"}}') %]</div>
+ '{{hold.request_time | date:$root.egDateAndTimeFormat}}') %]</div>
+ <div>[% l('Slip Date: [_1]', '{{today | date:$root.egDateAndTimeFormat}}') %]</div>
<div>[% l('Printed by [_1] at [_2]',
'{{staff.first_given_name}}', '{{current_location.shortname}}') %]</div>
</thead>
<tbody>
<tr ng-repeat="hold in holds">
- <td>{{hold.hold.request_time | date:'short'}}</td>
+ <td>{{hold.hold.request_time | date:$root.egDateAndTimeFormat}}</td>
<td>{{hold.patron_barcode}}</td>
<td>{{hold.patron_last}}</td>
<td>{{hold.patron_alias}}</td>
</tbody>
</table>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<div>[% l('Printed by [_1]', '{{staff.first_given_name}}') %]</div>
<br/>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
<br/>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<br/>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<br/>
<div>{{checkout.title}}</div>
<div>[% l('Barcode: [_1] Due: [_2]',
'{{checkout.copy.barcode}}',
- '{{checkout.circ.due_date | date:"short"}}') %]</div>
+ '{{checkout.circ.due_date | date:$root.egDateAndTimeFormat}}') %]</div>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
<br/>
'{{note.usr.second_given_name}}',
'{{note.usr.card.barcode}}') %]</h3>
-<p>[% l('Created on [_1]', '{{note.create_date | date:"short"}}') %]</p>
+<p>[% l('Created on [_1]', '{{note.create_date | date:$root.egDateAndTimeFormat}}') %]</p>
<b>{{note.title}}</b>
<br/>
<p>{{note.value}}</p>
<div>{{renewal.title}}</div>
<div>[% l('Barcode: [_1] Due: [_2]',
'{{renewal.copy.barcode}}',
- '{{renewal.circ.due_date | date:"short"}}') %]</div>
+ '{{renewal.circ.due_date | date:$root.egDateAndTimeFormat}}') %]</div>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
<br/>
<div>[% l('From: [_1] To: [_2] <br> When: [_3] <br> Barcode: [_4] Title: [_5]',
'{{transit.source.shortname}}',
'{{transit.dest.shortname}}',
- "{{transit.source_send_time | date:'short'}}",
+ "{{transit.source_send_time | date:$root.egDateAndTimeFormat}}",
'{{transit.target_copy.barcode}}',
'{{transit.target_copy.call_number.record.simple_record.title}}') %]</div>
</li>
</ol>
<hr/>
- <div>{{current_location.shortname}} {{today | date:'short'}}</div>
+ <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
<br/>
<br/>
- <div>[% l('Slip Date: [_1]', '{{today | date:"short"}}') %]</div>
+ <div>[% l('Slip Date: [_1]', '{{today | date:$root.egDateAndTimeFormat}}') %]</div>
<div>[% l('Printed by [_1] at [_2]',
'{{staff.first_given_name}}', '{{current_location.shortname}}') %]</div>
// optional context menu label
menuLabel : '@',
+ dateformat : '@', // optional: passed down to egGridValueFilter
+
// Hash of control functions.
//
// These functions are defined by the calling scope and
idlClass : grid.idlClass,
defaultToHidden : (features.indexOf('-display') > -1),
defaultToNoSort : (features.indexOf('-sort') > -1),
- defaultToNoMultiSort : (features.indexOf('-multisort') > -1)
+ defaultToNoMultiSort : (features.indexOf('-multisort') > -1),
+ defaultDateFormat : $scope.dateformat
});
$scope.canMultiSelect = (features.indexOf('-multiselect') == -1);
cols.defaultToHidden = args.defaultToHidden;
cols.defaultToNoSort = args.defaultToNoSort;
cols.defaultToNoMultiSort = args.defaultToNoMultiSort;
+ cols.defaultDateFormat = args.defaultDateFormat;
// resets column width, visibility, and sort behavior
// Visibility resets to the visibility settings defined in the
(!cols.defaultToNoMultiSort && !column.nonmultisortable))
column.multisortable = true;
+ if (cols.defaultDateFormat && ! column.dateformat) {
+ column.dateformat = cols.defaultDateFormat;
+ }
+
cols.columns.push(column);
// Track which columns are visible by default in case we
angular.module('egCoreMod')
.factory('egStartup',
- ['$q','$rootScope','$location','$window','egIDL','egAuth','egEnv',
-function($q, $rootScope, $location, $window, egIDL, egAuth, egEnv) {
+ ['$q','$rootScope','$location','$window','egIDL','egAuth','egEnv','egOrg',
+function($q, $rootScope, $location, $window, egIDL, egAuth, egEnv , egOrg ) {
var service = { promise : null }
deferred.reject('egEnv did not resolve')
}
);
+ egOrg.settings([
+ 'webstaff.format.dates',
+ 'webstaff.format.date_and_time'
+ ]).then(
+ function(set) {
+ $rootScope.egDateFormat = set['webstaff.format.dates'] || 'shortDate';
+ $rootScope.egDateAndTimeFormat = set['webstaff.format.date_and_time'] || 'short';
+ deferred.resolve();
+ },
+ function() {
+ deferred.reject('egOrg did not resolve');
+ }
+ );
},
// testAuthToken rejected