--- loncom/interface/coursecatalog.pm 2009/07/31 02:13:05 1.53
+++ loncom/interface/coursecatalog.pm 2010/04/14 18:58:37 1.53.4.5
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler for displaying the course catalog interface
#
-# $Id: coursecatalog.pm,v 1.53 2009/07/31 02:13:05 raeburn Exp $
+# $Id: coursecatalog.pm,v 1.53.4.5 2010/04/14 18:58:37 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -149,13 +149,19 @@ ENDJS
for (my $i=0; $i<$deeper; $i++) {
$r->print(''."\n");
}
+ my $display_button;
+ if ($env{'form.currcat_0'} eq 'communities::0') {
+ $display_button = &mt('Display communities');
+ } else {
+ $display_button = &mt('Display courses');
+ }
$r->print(''."\n".
''."\n".
''."\n".
''.
'
');
+ $display_button.'" />
');
}
if ($env{'form.state'} eq 'listing') {
$r->print(&print_course_listing($codedom,undef,\@trails,\%allitems,$subcats));
@@ -174,7 +180,7 @@ sub course_details {
my $js = ''."\n";
my $start_page =
- &Apache::loncommon::start_page('Course Catalog',$js,
+ &Apache::loncommon::start_page('Course/Community Catalog',$js,
{
'add_entries' => \%add_entries,
'no_inline_link' => 1,});
@@ -182,19 +188,36 @@ sub course_details {
if ($env{'form.numtitles'} > 0) {
&Apache::lonhtmlcommon::add_breadcrumb
({href=>"/adm/coursecatalog",
- text=>"Select courses"});
+ text=>"Course/Community Catalog"});
+ }
+ my $brtextone = 'Course listing';
+ my $brtexttwo = 'Course details';
+ if ($env{'form.currcat_0'} eq 'communities::0') {
+ $brtextone = 'Community listing';
+ $brtextone = 'Community details';
}
&Apache::lonhtmlcommon::add_breadcrumb
({href=>"javascript:document.$formname.submit()",
- text=>"Course listing"},
- {text=>"Course details"});
- $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Details'));
- $r->print('
'.&mt('Detailed course information:').'
'.
+ text=>$brtextone},
+ {text=>$brtexttwo});
+ $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course/Community Catalog'));
+ $r->print('
');
+ if ($env{'form.currcat_0'} eq 'communities::0') {
+ $r->print(&mt('Detailed community information:'));
+ } else {
+ $r->print(&mt('Detailed course information:'));
+ }
+ $r->print('
'.
&print_course_listing($codedom,undef,$trails,$allitems).
'
');
$r->print('