User activity tracking : user usr_activity field
authorBill Erickson <berick@esilibrary.com>
Mon, 6 Feb 2012 17:31:23 +0000 (12:31 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 6 Mar 2012 16:03:41 +0000 (11:03 -0500)
commit7ce3a9eefe1ff1a1cb1eae268bc51a3c3b6d08d0
treea4010b6ac5a1430b71185e0853c3fa8d83d1703a
parent430f227c2a7587c7f134b1176804aacdce340f50
User activity tracking : user usr_activity field

Added a new virtual field to actor.usr called "usr_activity".  When
fleshed, the value contains the most recent activities logged for the
user.  By default, only the most recent activity entry is fetched,
however this commit also adds an org unit setting
"circ.patron.usr_activity_retrieve.max" to control the number of entries
returned for standard patron fleshing calls.

Activity entries are fleshed in the calls:

open-ils.actor.user.fleshed.retrieve
open-ils.actor.user.fleshed.retrieve_by_barcode

This change also updates the permacrud <retrieve> permission for
usr_activity form VIEW_USER to RUN_REPORTS, with the assumption that
any activity data beyond the configured amount (above) should be
considered historical data that is not as readily accessable.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.user-activity.sql