--- loncom/interface/lonsearchcat.pm 2008/02/13 11:20:24 1.290 +++ loncom/interface/lonsearchcat.pm 2008/07/15 16:18:41 1.296 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.290 2008/02/13 11:20:24 bisitz Exp $ +# $Id: lonsearchcat.pm,v 1.296 2008/07/15 16:18:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -266,7 +266,7 @@ sub handler { ## Configure dynamic components of interface ## if ($env{'form.catalogmode'} eq 'interactive') { - $closebutton="dir_config('lonDefDomain')), $r->dir_config('lonDefDomain')). ''; - if ($area eq 'res') { - $inclext= ''; - } $adv_search_link = '\n"; - $scrout .= " ".&mt('(Month - Day - Year)')."\n"; + $scrout .= " ".&mt('Month[_1]Day[_2]Year',' 'x14,' 'x6)."\n"; my $cafter = &Apache::lonhtmlcommon::date_setter('advsearch', # formname 'creationdate1', # fieldname @@ -2126,6 +2116,10 @@ sub copyright_check { ($env{'user.domain'} ne $resdom)) { return 0; } + # Check for custom rights + if ($Metadata->{'copyright'} eq 'custom') { + return &Apache::lonnet::customaccess('bre',$Metadata->{'url'}); + } return 1; } @@ -2644,8 +2638,6 @@ END my %Fields = &parse_raw_result($result,$server,$tabletype); $Fields{'hostname'} = $server; # - # Skip if external and we did not want that - next if ((! $env{'form.inclext'}) && ($Fields{'url'}=~/^\/ext\//)); # Skip based on copyright next if (! ©right_check(\%Fields));