Index: openacs-4/packages/logger/lib/entries-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/logger/lib/entries-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/logger/lib/entries-postgresql.xql 4 Jan 2004 21:27:48 -0000 1.1 +++ openacs-4/packages/logger/lib/entries-postgresql.xql 3 Jun 2004 21:08:23 -0000 1.2 @@ -5,28 +5,61 @@ - select le.entry_id, - acs_permission__permission_p(le.entry_id, :current_user_id, 'delete') as delete_p, - acs_permission__permission_p(le.entry_id, :current_user_id, 'write') as edit_p, - le.time_stamp, - to_char(le.time_stamp, 'fmDyfm fmMMfm-fmDDfm-YYYY') as time_stamp_pretty, - to_char(le.time_stamp, 'IW-YYYY') as time_stamp_week, - le.value, - le.description, + select le.entry_id, + acs_permission__permission_p(le.entry_id, :current_user_id, 'delete') as delete_p, + acs_permission__permission_p(le.entry_id, :current_user_id, 'write') as edit_p, + le.time_stamp, + to_char(le.time_stamp, 'fmDyfm fmMMfm-fmDDfm-YYYY') as time_stamp_pretty, + to_char(le.time_stamp, 'IW-YYYY') as time_stamp_week, + le.value, + le.description, + $task_select lp.project_id, - lp.name as project_name, - submitter.user_id, - submitter.first_names || ' ' || submitter.last_name as user_name - from logger_entries le, - logger_projects lp, - acs_objects ao, - cc_users submitter - where le.project_id = lp.project_id - and ao.object_id = le.entry_id - and ao.creation_user = submitter.user_id + lp.name as project_name, + submitter.person_id as user_id, + submitter.first_names || ' ' || submitter.last_name as user_name + from logger_entries le + $task_left_join + logger_projects lp, + acs_objects ao, + persons submitter + where le.project_id = lp.project_id + and ao.object_id = le.entry_id + and ao.creation_user = submitter.person_id [list::filter_where_clauses -and -name "entries"] - [list::orderby_clause -orderby -name "entries"] + [list::orderby_clause -orderby -name "entries"] + + + select le.entry_id, + le.time_stamp, + to_char(le.time_stamp, 'YYYY-MM-DD HH24:MI:SS') as time_stamp_ansi, + to_char(le.time_stamp, 'IW-YYYY') as time_stamp_week, + le.value, + le.description, + lp.project_id, + lp.name as project_name, + $task_select + submitter.person_id as user_id, + submitter.first_names || ' ' || submitter.last_name as user_name, + c.category_id, + c.tree_id + from logger_entries le + LEFT OUTER JOIN + category_object_map_tree c + ON (c.object_id = le.entry_id) + $task_left_join + logger_projects lp, + acs_objects ao, + persons submitter + where le.project_id = lp.project_id + and ao.object_id = le.entry_id + and ao.creation_user = submitter.person_id + [list::filter_where_clauses -and -name "entries"] + [list::orderby_clause -orderby -name "entries"] + + +