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>
Mon, 27 Feb 2012 20:26:06 +0000 (15:26 -0500)
commitc92fac0f33a417e0baf166428a13158951078516
treeed0212eb9b746c89f2af92307814799493f55367
parentead4add87c120aa77eb3449231b002e3825d95f0
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