Index: openacs-4/packages/dotlrn/www/communities-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/communities-oracle.xql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/www/communities-oracle.xql 11 Jan 2002 21:51:51 -0000 1.3
+++ openacs-4/packages/dotlrn/www/communities-oracle.xql 15 Jan 2002 22:23:41 -0000 1.4
@@ -7,7 +7,6 @@
select count(*)
from dotlrn_communities_not_closed dotlrn_communities
- where dotlrn_communities.community_type = :community_type
@@ -27,12 +26,60 @@
and dotlrn_member_rels_full.community_id = dotlrn_communities.community_id)) as member_p,
decode(acs_permission.permission_p(:user_id, dotlrn_communities.community_id, 'admin'),'f',0,1) as admin_p
from dotlrn_communities_not_closed dotlrn_communities
+ order by dotlrn_communities.community_type, dotlrn_communities.pretty_name
+
+
+
+
+
+ select dotlrn_communities.community_id,
+ dotlrn_communities.community_type,
+ dotlrn_communities.pretty_name,
+ dotlrn_communities.description,
+ dotlrn_communities.package_id,
+ dotlrn_community.url(dotlrn_communities.community_id) as url,
+ (select count(*)
+ from dual
+ where exists (select 1
+ from dotlrn_member_rels_full
+ where dotlrn_member_rels_full.user_id = :user_id
+ and dotlrn_member_rels_full.community_id = dotlrn_communities.community_id)) as member_p,
+ decode(acs_permission.permission_p(:user_id, dotlrn_communities.community_id, 'admin'),'f',0,1) as admin_p
+ from dotlrn_active_comms_not_closed dotlrn_communities
+ order by dotlrn_communities.community_type, dotlrn_communities.pretty_name
+
+
+
+
+
+ select count(*)
+ from dotlrn_communities_not_closed dotlrn_communities
where dotlrn_communities.community_type = :community_type
+
+
+
+
+
+ select dotlrn_communities.community_id,
+ dotlrn_communities.community_type,
+ dotlrn_communities.pretty_name,
+ dotlrn_communities.description,
+ dotlrn_communities.package_id,
+ dotlrn_community.url(dotlrn_communities.community_id) as url,
+ (select count(*)
+ from dual
+ where exists (select 1
+ from dotlrn_member_rels_full
+ where dotlrn_member_rels_full.user_id = :user_id
+ and dotlrn_member_rels_full.community_id = dotlrn_communities.community_id)) as member_p,
+ decode(acs_permission.permission_p(:user_id, dotlrn_communities.community_id, 'admin'),'f',0,1) as admin_p
+ from dotlrn_communities_not_closed dotlrn_communities
+ where dotlrn_communities.community_type = :community_type
order by dotlrn_communities.pretty_name
-
+
select dotlrn_communities.community_id,
dotlrn_communities.community_type,