]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Simple in-client "activity log" interface (Admin -> Local Administration -> Work...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Sep 2009 13:39:27 +0000 (13:39 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Sep 2009 13:39:27 +0000 (13:39 +0000)
commit29d1b357eef061bb3698e4ce0506eb93b63421be
tree6e31e6766deab83ce34b3d0308a8f5a21a333afb
parentec6cce9cb4bfac4aeb0aabdb5d215af85ee53857
Simple in-client "activity log" interface (Admin -> Local Administration -> Work Log), and an example of such logging in the Checkout interface.

The log function itself is part of util/error.js.  Example:

JSAN.use('util.error'); var logger = new util.error();

logger.work_log(

"Staff member Foo circulated item Bar to patron Baz",  // The log message

// Additional Row data to pass to a util.list construct in the work log interface, which can be used in rendering columns, and accessed by actions acting on the list
{
au_id : 1,  // Id for patron Baz; needed if you want the Retrieve Patron action to work with this log entry
acp_barcode : 'Bar', // Barcode of the item; needed if you want the Retrieve Item action to work with this log entry
}
);

TODO:

  * Add logging statements to the Check In interface (complication there is that we don't have patron data, which would be useful) and Patron Registration
  * Possibly add explicit columns for the type of action, the item involved, the patron involved, and the staff involved (to compliment Operator Change), rather than just Message and When.
  * Add filtering support for action types

git-svn-id: svn://svn.open-ils.org/ILS/trunk@13949 dcc99617-32d9-48b4-a31d-7c20da2025e4
13 files changed:
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Open-ILS/xul/staff_client/chrome/content/util/error.js
Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Open-ILS/xul/staff_client/server/admin/work_log.js [new file with mode: 0644]
Open-ILS/xul/staff_client/server/admin/work_log.xul [new file with mode: 0644]
Open-ILS/xul/staff_client/server/circ/checkout.js
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
Open-ILS/xul/staff_client/server/patron/display.js