--- loncom/interface/coursecatalog.pm 2010/08/14 02:00:27 1.58.4.2
+++ loncom/interface/coursecatalog.pm 2012/10/04 13:41:10 1.71
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler for displaying the course catalog interface
#
-# $Id: coursecatalog.pm,v 1.58.4.2 2010/08/14 02:00:27 raeburn Exp $
+# $Id: coursecatalog.pm,v 1.71 2012/10/04 13:41:10 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -89,10 +89,6 @@ sub handler {
\%idx,\@jsarray,$subcats);
my ($numtitles,@codetitles);
if ($env{'form.coursenum'} ne '' && &user_is_known()) {
- if ($env{'form.currcat_0'} eq 'instcode::0') {
- $numtitles = &instcode_course_selector($r,$codedom,$formname,$domdesc,
- undef,undef,\@codetitles);
- }
&course_details($r,$codedom,$formname,$domdesc,\@trails,\%allitems,\@codetitles);
} else {
my ($catlinks,$has_subcats,$selitem) = &category_breadcrumbs($codedom,@cats);
@@ -186,16 +182,14 @@ sub course_details {
&courselink_javascript().''."\n";
my $start_page =
&Apache::loncommon::start_page('Course/Community Catalog',$js,
- {
- 'add_entries' => \%add_entries,
- 'no_inline_link' => 1,});
+ {'add_entries' => \%add_entries, });
$r->print($start_page);
if ($env{'form.numtitles'} > 0) {
&Apache::lonhtmlcommon::add_breadcrumb
({href=>"/adm/coursecatalog",
text=>"Course/Community Catalog"});
}
- my $brtextone = 'Course listing';
+ my $brtextone = 'Course listing';
my $brtexttwo = 'Course details';
if ($env{'form.currcat_0'} eq 'communities::0') {
$brtextone = 'Community listing';
@@ -205,6 +199,7 @@ sub course_details {
({href=>"javascript:document.$formname.submit()",
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:'));
@@ -288,7 +283,6 @@ sub instcode_course_selector {
$r->print(''."\n".
''."\n".
''."\n".
- ''."\n".
''.
'print(&Apache::lonhtmlcommon::breadcrumbs('Course/Community Catalog'));
- my $onchange;
- unless ($env{'form.interface'} eq 'textual') {
- $onchange = 'this.form.submit()';
- }
+ my $onchange = 'this.form.submit()';
$r->print('