--- loncom/interface/coursecatalog.pm 2013/11/21 16:34:23 1.58.4.9
+++ loncom/interface/coursecatalog.pm 2011/11/21 15:42:59 1.69
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler for displaying the course catalog interface
#
-# $Id: coursecatalog.pm,v 1.58.4.9 2013/11/21 16:34:23 raeburn Exp $
+# $Id: coursecatalog.pm,v 1.69 2011/11/21 15:42:59 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -66,20 +66,13 @@ sub handler {
}
my $formname = 'coursecatalog';
if ($env{'form.showdom'} ne '') {
- $env{'form.showdom'} = &LONCAPA::clean_domain($env{'form.showdom'});
if (&Apache::lonnet::domain($env{'form.showdom'}) ne '') {
$codedom = $env{'form.showdom'};
- } else {
- $env{'form.showdom'} = '';
}
}
my $domdesc = &Apache::lonnet::domain($codedom,'description');
&Apache::lonhtmlcommon::clear_breadcrumbs();
- if ($env{'form.catalog_maxdepth'} ne '') {
- $env{'form.catalog_maxdepth'} =~ s{\D}{}g;
- }
-
my %domconfig =
&Apache::lonnet::get_dom('configuration',['coursecategories'],$codedom);
my (@cats,@trails,%allitems,%idx,@jsarray,%subcathash,$cathash);
@@ -189,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';
@@ -208,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:'));
@@ -312,9 +304,7 @@ sub cat_header {
my ($r,$codedom,$js,$add_entries,$catlinks,$numtitles) = @_;
my $start_page =
&Apache::loncommon::start_page('Other',$js,
- {
- 'add_entries' => $add_entries,
- 'no_inline_link' => 1,});
+ { 'add_entries' => $add_entries, });
$r->print($start_page);
my $brtext = 'Course listing';
if ($env{'form.currcat_0'} eq 'communities::0') {
@@ -336,10 +326,7 @@ sub cat_header {
text=>"Course/Community Catalog"});
}
$r->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('