';
$scrout.="".&mt('Field').' | '.&mt('Value').' | '
.&mt('Related').' '.&mt('Words')." |
\n";
- foreach ('title','author','keywords','notes','abstract','standards',
+ foreach ('title','author','owner','authorspace','modifyinguser',
+ 'keywords','notes','abstract','standards',
'lowestgradelevel','highestgradelevel','mime') {
- $scrout.=''.&titlefield($fields{$_}).' | '.
+ $scrout.=' |
'.&titlefield($fields{$_}).' | '.
&Apache::lonmeta::prettyinput($_,$ENV{'form.'.$_},$_,'advsearch',
1,' | ',$ENV{'form.'.$_.'_related'}).
' |
';
}
- # Hack - an empty table row.
- $scrout.=" | | |
\n";
-# $scrout.=&searchphrasefield('file
extension','extension',
-# $ENV{'form.extension'});
-# $scrout.=" | | |
\n";
-# $scrout.=&searchphrasefield('publisher
owner','owner',
- # $ENV{'form.owner'});
+ $scrout.=''.
+ &titlefield(&mt('MIME Type Category')).' | '.
+ &Apache::loncommon::filecategoryselect('category',
+ $ENV{'form.category'}).
+ ' | |
';
+ $scrout.=''.
+ &titlefield(&mt('Limit Search to Domains')).' | '.
+ &Apache::loncommon::domain_select('domains',
+ $ENV{'form.domains'},1).
+ ' | |
';
+ my %dates=&Apache::lonlocal::texthash('creationdatestart' => 'Creation Date After',
+ 'creationdateend' => 'Creation Date Before',
+ 'lastrevisiondatestart' => 'Last Revision Date After',
+ 'lastrevisiondateend' => 'Last Revision Date Before');
+ foreach (sort keys %dates) {
+ $scrout.=''.&titlefield($dates{$_}).' | '.
+ &Apache::lonhtmlcommon::date_setter('advsearch',$_,0,'',1).
+ ' | |
';
+ }
+
$scrout.="
\n";
-# $scrout.=&Apache::lonmeta::selectbox('File Category','category',
-# $ENV{'form.category'},
-# 'any','Any category',
-# undef,
-# (&Apache::loncommon::filecategories()));
- #----------------------------------------------------------------
- # Allow restriction to multiple domains.
- # I make the crazy assumption that there will never be a domain 'any'.
- #
- my @allowed_domains = (ref($ENV{'form.domains'}) ? @{$ENV{'form.domains'}}
- : ($ENV{'form.domains'}) );
- my %domain_hash = ();
- foreach (@allowed_domains) {
- $domain_hash{$_}++;
- }
- my @domains =&Apache::loncommon::get_domains();
- # adjust the size of the select box
- my $size = 4;
- $size = (scalar @domains < ($size - 1) ? scalar @domains + 1 : $size);
- $scrout.="\n".&titlefield(&mt('Domain to be searched')).
- '