--- loncom/interface/lonsearchcat.pm 2009/10/06 10:31:41 1.315
+++ loncom/interface/lonsearchcat.pm 2009/12/01 18:07:50 1.319
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Search Catalog
#
-# $Id: lonsearchcat.pm,v 1.315 2009/10/06 10:31:41 bisitz Exp $
+# $Id: lonsearchcat.pm,v 1.319 2009/12/01 18:07:50 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -770,14 +770,26 @@ sub setup_basic_search {
portfolio => 'Portfolio Search',
);
my ($userelatedwords,$onlysearchdomain,$inclext,$adv_search_link,$scrout);
- $userelatedwords = '';
- $onlysearchdomain = '';
+
+ $userelatedwords = '';
+
+ $onlysearchdomain = '';
+
$adv_search_link = '\n";
} else {
if ($field->{'special'} eq 'url link') {
- $result .= &display_url($jumpurl,[3,0,1]);
+ $result .= '
'.&display_url($jumpurl,1).'
';
} else {
$result.= &mt($field->{'translate'},
$values{$field->{'name'}});
@@ -3603,7 +3615,7 @@ sub summary_view {
}
my $jumpurl=$values{'url'};
$jumpurl=~s|^/ext/|http://|;
- my $link = &display_url($jumpurl,[2,0,1]);
+ my $link = '
'.&display_url($jumpurl,1).'
';
$result.=<';
@@ -3658,7 +3670,7 @@ sub compact_view {
}
sub display_url {
- my ($url,$crumb_args) = @_;
+ my ($url,$skiplast) = @_;
my $link;
if ($url=~m|^/ext/|) {
$url=~s|^/ext/|http://|;
@@ -3666,10 +3678,12 @@ sub display_url {
} elsif ($url=~m{^(http://|/uploaded/)}) {
$link=''.$url.'';
} else {
- $link=&Apache::lonhtmlcommon::crumbs($url,
- 'preview',
- '',
- (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),@{$crumb_args}).' ';
+ $link=&Apache::lonhtmlcommon::crumbs(
+ $url,
+ 'preview',
+ '',
+ (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),
+ $skiplast).' ';
}
return $link;
}