\n";
- $scrout .= ' | '.
- (' 'x2).&searchhelp()." |
\n";
+
+ # Standard Metadata
+ $scrout .= &Apache::lonhtmlcommon::row_headline()
+ .''.&mt("Standard $srchtype Metadata").'
'
+ .&searchhelp()
+ .&Apache::lonhtmlcommon::row_closure();
my %related_word_search =
('title' => 1,
'author' => 0,
@@ -903,110 +913,111 @@ ENDHEADER
'abstract' => 1,
'standards'=> 1,
'mime' => 1,
- 'subject' => 1,
+ 'subject' => 1,
);
#
foreach my $field ('title','author','subject','owner','authorspace',
- 'modifyinguser','keywords','notes','abstract',
- 'standards','mime') {
- $scrout.=''.&titlefield($fields{$field}).' | '.
- &Apache::lonmeta::prettyinput($field,
+ 'modifyinguser','keywords','notes','abstract',
+ 'standards','mime') {
+ $scrout .= &Apache::lonhtmlcommon::row_title(&titlefield($fields{$field}))
+ .&Apache::lonmeta::prettyinput($field,
$env{'form.'.$field},
$field,
'advsearch',
- $related_word_search{$field},
- ' | ',
+ $related_word_search{$field},
+ '',
$env{'form.'.$field.'_related'},
50);
if ($related_word_search{$field}) {
$scrout .= &mt('related words');
} else {
- $scrout .= ' | ';
+ $scrout .= '';
}
- $scrout .= ' |
'.$/;
+ $scrout .= &Apache::lonhtmlcommon::row_closure();
}
foreach my $field ('lowestgradelevel','highestgradelevel') {
- $scrout.=''.
- ''.&titlefield($fields{$field}).' | '.
- ''.
- &Apache::lonmeta::prettyinput($field,
+ $scrout .= &Apache::lonhtmlcommon::row_title(&titlefield($fields{$field}))
+ .&Apache::lonmeta::prettyinput($field,
$env{'form.'.$field},
$field,
'advsearch',
- 0).
- ' |
'.$/;
+ 0)
+ .&Apache::lonhtmlcommon::row_closure();
}
- $scrout.=''.
- &titlefield(&mt('MIME Type Category')).' | '.
- &Apache::loncommon::filecategoryselect('category',
- $env{'form.category'}).
- ' |
'.$/;
- $scrout.=''.
- &titlefield(&mt('Domains')).' | '.
- &Apache::loncommon::domain_select('domains',
- $env{'form.domains'},1).
- ' ';
- $scrout .= ' |
'.$/;
- #
+
+ $scrout .= &Apache::lonhtmlcommon::row_title(&titlefield(&mt('MIME Type Category')))
+ .&Apache::loncommon::filecategoryselect('category',
+ $env{'form.category'})
+ .&Apache::lonhtmlcommon::row_closure();
+
+ $scrout .= &Apache::lonhtmlcommon::row_title(&titlefield(&mt('Domains')))
+ .&Apache::loncommon::domain_select('domains',
+ $env{'form.domains'},1)
+ .&Apache::lonhtmlcommon::row_closure();
+
# Misc metadata
if ($env{'form.area'} ne 'portfolio') {
- $scrout.=''.
- &titlefield(&mt('Copyright/Distribution')).
- ' | '.
- &Apache::lonmeta::selectbox('copyright',
+ $scrout .= &Apache::lonhtmlcommon::row_title(&titlefield(&mt('Copyright/Distribution')))
+ .&Apache::lonmeta::selectbox('copyright',
$env{'form.copyright'},
\&Apache::loncommon::copyrightdescription,
( undef,
&Apache::loncommon::copyrightids)
- ).' |
'.$/;
+ )
+ .&Apache::lonhtmlcommon::row_closure();
}
- $scrout.=''.
- &titlefield(&mt('Language')).' | '.
- &Apache::lonmeta::selectbox('language',
+
+ $scrout .= &Apache::lonhtmlcommon::row_title(&titlefield(&mt('Language')))
+ .&Apache::lonmeta::selectbox('language',
$env{'form.language'},
\&Apache::loncommon::languagedescription,
('any',&Apache::loncommon::languageids)
- ).' |
';
- $scrout .= "
\n";
-
+ )
+ .&Apache::lonhtmlcommon::row_closure();
+ # Portfolio Metadata
if ($env{'form.area'} eq 'portfolio') {
# Added fields
my $curnumadd = $env{'form.numaddedfields'};
if ($curnumadd eq '') {
$curnumadd = 1;
}
- $scrout .= '