Search Status
-Sending search request to LON-CAPA servers.
-ENDSTATUS
-}
-
sub results_link {
my $basic_link = "/adm/searchcat?"."&table=".$env{'form.table'}.
"&persistent_db_id=".$env{'form.persistent_db_id'};
@@ -3209,7 +3199,7 @@ sub detailed_citation_view {
my $jumpurl=$values{'url'};
$jumpurl=~s/^\/ext\//http\:\/\//;
$result .= ''.$prefix.
- ''.' '.
+ ''.' '.
''.$values{'title'}."\n";
$result .= "\n";
@@ -3275,25 +3265,25 @@ sub detailed_citation_view {
next if (! exists($values{$field->{'name'}}) ||
$values{$field->{'name'}} eq '');
if (exists($field->{'type'}) && $field->{'type'} eq 'list') {
- $result .= ''.&mt($field->{'translate'}).'
';
+ $result .= ''.&mt($field->{'translate'}).'';
foreach my $item (split(',',$values{$field->{'name'}})){
- $result .= '- '.
- ''.$item.'
';
+ $result .=
+ &Apache::lonhtmlcommon::crumbs($item,
+ (($env{'form.catalogmode'} eq 'import')?'_top':'preview'),
+ '/res',
+ (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),2,0,1);
}
- $result .= '
';
} elsif (exists($field->{'format'}) && $field->{'format'} ne ''){
$result.= &mt($field->{'translate'},
sprintf($field->{'format'},
$values{$field->{'name'}}))."
\n";
} else {
if ($field->{'special'} eq 'url link') {
- $result.=
- &mt($field->{'translate'},
- ''.
- $values{$field->{'name'}}.
- '');
+ $result.=
+ &Apache::lonhtmlcommon::crumbs($jumpurl,
+ (($env{'form.catalogmode'} eq 'import')?'_top':'preview'),
+ '',
+ (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),3,0,1);
} else {
$result.= &mt($field->{'translate'},
$values{$field->{'name'}});
@@ -3350,10 +3340,14 @@ sub summary_view {
}
my $jumpurl=$values{'url'};
$jumpurl=~s/^\/ext\//http\:\/\//;
+ my $link=&Apache::lonhtmlcommon::crumbs($jumpurl,
+ (($env{'form.catalogmode'} eq 'import')?'':'preview'),
+ '',
+ (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),2,0,1);
$result.=<$values{'title'}
+ target='search_preview'>$values{'title'}$link
$values{'author'}, $values{'owner'} -- $values{'lastrevisiondate'}
$values{'copyrighttag'}
$values{'extrashow'}
@@ -3387,7 +3381,10 @@ sub compact_view {
my ($prefix,%values) = @_;
my $jumpurl=$values{'url'};
$jumpurl=~s/^\/ext\//http\:\/\//;
-
+ my $link=&Apache::lonhtmlcommon::crumbs($jumpurl,
+ (($env{'form.catalogmode'} eq 'import')?'_top':'preview'),
+ '',
+ (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),1,1,1).' ';
my $result =
$prefix.'';
if (exists($env{'form.sortfield'}) &&
@@ -3397,7 +3394,7 @@ sub compact_view {
$result .= ' '.$tmp.' ';
}
$result.=' '.
- $values{'title'}.''.(' 'x2).
+ $values{'title'}.''.(' 'x2).$link.
''.$values{'author'}.' ('.$values{'domain'}.')
';
return $result;
}