Index: openacs-4/packages/dotlrn-catalog/catalog/dotlrn-catalog.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-catalog/catalog/dotlrn-catalog.en_US.ISO-8859-1.xml,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn-catalog/catalog/dotlrn-catalog.en_US.ISO-8859-1.xml 19 Feb 2005 02:32:07 -0000 1.7 +++ openacs-4/packages/dotlrn-catalog/catalog/dotlrn-catalog.en_US.ISO-8859-1.xml 19 Feb 2005 03:43:11 -0000 1.8 @@ -6,6 +6,7 @@ <msg key="admin_categories">Manage Category Tree</msg> <msg key="admin_this">Admin This Course</msg> <msg key="and_has">and has</msg> + <msg key="and_has_one">And has one association to dotLRN class or community.</msg> <msg key="asm">Assessment</msg> <msg key="associate">Associate</msg> <msg key="associate_this">Associate this course</msg> Index: openacs-4/packages/dotlrn-catalog/lib/course-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-catalog/lib/course-chunk.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn-catalog/lib/course-chunk.tcl 19 Feb 2005 02:32:07 -0000 1.4 +++ openacs-4/packages/dotlrn-catalog/lib/course-chunk.tcl 19 Feb 2005 03:43:11 -0000 1.5 @@ -77,7 +77,12 @@ class { label "[_ dotlrn-catalog.class_name]" display_template { - <a href="dotlrn-info?object_id=@classes_list.object_id@&type=class&course_id=$course_id&course_name=$name&course_key=$course_key">@classes_list.pretty_name@</a> + <if $index not eq ""> + <a href="dotlrn-info?object_id=@classes_list.object_id@&type=class&course_id=$course_id&course_name=$name&course_key=$course_key">@classes_list.pretty_name@</a> + </if> + <else> + <a href="../dotlrn-info?object_id=@classes_list.object_id@&type=class&course_id=$course_id&course_name=$name&course_key=$course_key">@classes_list.pretty_name@</a> + </else> } } dep_name { @@ -113,7 +118,28 @@ community { label "[_ dotlrn-catalog.com_name]" display_template { - <a href="dotlrn-info?object_id=@com_list.object_id@&type=community&course_id=$course_id&course_name=$name&course_key=$course_key">@com_list.pretty_name@</a> + <if $index not eq ""> + <a href="dotlrn-info?object_id=@com_list.object_id@&type=community&course_id=$course_id&course_name=$name&course_key=$course_key">@com_list.pretty_name@</a> + </if> + <else> + <a href="../dotlrn-info?object_id=@com_list.object_id@&type=community&course_id=$course_id&course_name=$name&course_key=$course_key">@com_list.pretty_name@</a> + </else> } } } + + + + + + + + + + + + + + + + Index: openacs-4/packages/dotlrn-catalog/lib/tree-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-catalog/lib/tree-chunk.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn-catalog/lib/tree-chunk.tcl 19 Feb 2005 02:32:07 -0000 1.2 +++ openacs-4/packages/dotlrn-catalog/lib/tree-chunk.tcl 19 Feb 2005 03:43:11 -0000 1.3 @@ -53,15 +53,15 @@ label "[_ dotlrn-catalog.course_key]" display_template { <div align=left> - @course_list.course_key@ + <a href="course-info?course_id=@course_list.course_id@&course_name=@course_list.course_name@&course_key=@course_list.course_key@">@course_list.course_key@</a> </div> } } name { label "[_ dotlrn-catalog.course_name]" display_template { <div align=left> - <a href="course-info?course_id=@course_list.course_id@&course_name=@course_list.course_name@&course_key=@course_list.course_key@">@course_list.course_name@</a> + @course_list.course_name@ </div> } }