lp1846354 staff client changes
References to Message or Messages in the UI, including the button bar that
spawns the interface, will be changed to Note and Notes.
The Alert Message field in the patron editor will be removed.
The Notes interface under Other -> Notes will be removed.
The Notes (and count) indicator in the patron summary sidebar will be removed.
The note count will instead be presented as part of the Notes nav button.
The patron summary sidebar and the "stop sign page" will be modified to
retrieve and display user messages linked to standing penalties that are
flagged as staff alerting. It will retain the same styling (i.e. red text) by
default.
The Messages interface, including the archived view, will be populated with a
combination of user messages and user penalties, which may or may not be linked
in pairs via a new foreign key on the penalties. For messages without
associated standing penalties, the sending_lib column will be used for the
implicit filtering on org units that standing penalties get now, based on the
workstation library. This combined view will result in new columns for the
interface. At minimum the following columns (subject to label changes) will be
displayed by default: Title, Message, Create Date, Creator, Library, and Patron
Visible. Columns such as Staff Alert, Org Depth, Block List, Ignore Proximity,
and Penalty Label will still be available.
The Apply Penalty / Message dialog will gain a new widget for toggling whether
or not a message is intended to be visible to the patron. The Edit message
version of the dialog will also show when/if a patron has read and/or deleted
the message. An entry field for the message title will be added. The dialog
will also gain an org selector to the right of the penalty type selector, which
will default to the workstation library, and will change based on the org depth
of any standing penalty type selected in the UI (either via the
Note/Alert/Block buttons or the penalty menu). This will be passed as the
org_unit field for a penalty instead of the workstation library and org depth
that is implicitly used today The sending_lib field for the user message will
always be set to the workstation library.
The Archive Penalty / Message action will be modified to work with both
penalties and user messages depending on what it is selected. If an archived
penalty has a linked user message, then both will have their archive fields
set. An archived user message may still be otherwise visible to the patron if
it is not marked as deleted or staff only.
The Remove Penalty / Message action will behave as normal for a selected
penalty. For a user message, linked or unlinked, the message will be flagged
as deleted and, even if public, will no longer show up in the patron's Message
Center.
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
17 files changed: