LP1934164 egDueDate and egOrgDateInContext Angular pipes
authorBill Erickson <berickxx@gmail.com>
Tue, 29 Jun 2021 17:50:56 +0000 (13:50 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 6 Oct 2022 17:05:11 +0000 (13:05 -0400)
commit5e3de86130dcd8d361ba7d4c28edcee8269b0df8
treef56249e5f63eaedbcf4f7269a1f801ad6c63858c
parent7847e0a90cbcb94b655cfceb65b2ecb76579585c
LP1934164 egDueDate and egOrgDateInContext Angular pipes

These support displaying dates in the timezone of a specified org unit.

Example:

{{circ.xact_start() | egOrgDateInContext:circ.circ_lib():circ.duration()}}

The format service also gets a dateOnlyIntervalField parameter to
display dates as dates or dates + time depending on whether the provided
duration is day-granular.

Also adds a handy pipe (egDueDate) which takes a circulation as its
value and collects the correct parameters to display the due date in the
correct time zone and with the correct dateOnlyIntervalField value.

Example:

{{circ | egDueDate}}

Includes Sandbox examples.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts