Index: openacs-4/packages/dotlrn/www/admin/departments.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/departments.adp,v
diff -u -r1.16 -r1.17
--- openacs-4/packages/dotlrn/www/admin/departments.adp 9 Aug 2002 18:39:27 -0000 1.16
+++ openacs-4/packages/dotlrn/www/admin/departments.adp 14 Aug 2002 19:18:50 -0000 1.17
@@ -26,12 +26,10 @@
@@ -41,43 +39,51 @@
@@ -88,7 +94,7 @@
[
- New <%= [parameter::get -parameter departments_pretty_name] %>
+ New @departments_pretty_name@
]
|
Index: openacs-4/packages/dotlrn/www/admin/departments.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/departments.tcl,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/dotlrn/www/admin/departments.tcl 9 Aug 2002 18:39:27 -0000 1.7
+++ openacs-4/packages/dotlrn/www/admin/departments.tcl 14 Aug 2002 19:18:50 -0000 1.8
@@ -31,6 +31,9 @@
set context_bar [parameter::get -parameter departments_pretty_plural]
set referer departments
set can_create [dotlrn_class::can_create]
+set departments_pretty_name [parameter::get -parameter departments_pretty_name]
+set departments_pretty_plural [parameter::get -parameter departments_pretty_plural]
+set classes_pretty_name [parameter::get -parameter classes_pretty_name]
db_multirow departments select_departments {}
Index: openacs-4/packages/dotlrn/www/admin/departments.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/departments.xql,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/dotlrn/www/admin/departments.xql 1 May 2002 01:19:47 -0000 1.5
+++ openacs-4/packages/dotlrn/www/admin/departments.xql 14 Aug 2002 19:18:50 -0000 1.6
@@ -5,7 +5,10 @@
select department_key,
- pretty_name
+ pretty_name,
+ (select count(*)
+ from dotlrn_classes
+ where department_key = dotlrn_departments_full.department_key) as n_classes
from dotlrn_departments_full
order by pretty_name,
department_key