Skip to content
Permalink
Browse files
Really important automatic setting of full_text_status
  • Loading branch information
Rory McNicholl committed Apr 18, 2015
1 parent a4f4156 commit bb3a255fe65cbffa7926d5b604b76e64155a92dd
Showing with 17 additions and 0 deletions.
  1. +17 −0 cfg/cfg.d/zz_recollect.pl
@@ -197,6 +197,23 @@
{
$eprint->set_value( "date", $lastmod );
}

my @docs = $eprint->get_all_documents();
my $textstatus = "none";
if( scalar @docs > 0 )
{
$textstatus = "public";
foreach my $doc ( @docs )
{
if( !$doc->is_public )
{
$textstatus = "restricted";
last;
}
}
}
$eprint->set_value( "full_text_status", $textstatus );

};

##### add embargo date cap at 2 years

0 comments on commit bb3a255

Please sign in to comment.