From: Thomas Berezansky Date: Fri, 6 Jan 2012 21:32:41 +0000 (-0500) Subject: User As Of Circ IDL View X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Ftsbere%2Fusr_as_of_circ;p=working%2FEvergreen.git User As Of Circ IDL View Adds a new view to the IDL, linked to circulations. This shows, based on auditor table information, the user's base data as of the time of the circulation. Not all information visible via the user is visible through the view itself, most noticably linked information like all addresses. Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 57ef4091d4..38ea3fea8a 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -2643,6 +2643,112 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + + SELECT DISTINCT ON (circ_id) + circ.id AS circ_id, + active, + alert_message, + barred, + billing_address, + card, + claims_returned_count, + claims_never_checked_out_count, + create_date, + credit_forward_balance, + day_phone, + dob, + email, + evening_phone, + expire_date, + family_name, + first_given_name, + home_ou, + aul.id, + ident_type, + ident_type2, + ident_value, + ident_value2, + last_xact_id, + mailing_address, + master_account, + net_access_level, + other_phone, + passwd, + photo_url, + prefix, + profile, + second_given_name, + standing, + suffix, + super_user, + usrgroup, + usrname, + alias, + juvenile, + last_update_time, + deleted + FROM action.circulation circ JOIN auditor.actor_usr_lifecycle aul ON aul.id = circ.usr AND aul.audit_time > circ.xact_start + ORDER BY circ_id, audit_time + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3267,6 +3373,7 @@ SELECT usr, + @@ -3291,6 +3398,7 @@ SELECT usr, +