|
Summary: require upload of document for text eprint types
Priority (1<5) = 5
Raised by: HugoAlroe
Description:
In document_upload.pl a function is missing for making uploads of documents require certain formats. This means you can enter eprints for e.g. journal papers without uploading a document. We want the document since this is an archive. The function below is from eprints 2 and not very elegant, but it worked. It should be
Eprints 2 function for required formats:
$c->{required_formats} = sub {
my( $session, $eprint ) = @_;
if( $eprint->get_value( 'type' ) eq "researchprogramme" )
{
return [];
}
elsif( $eprint->get_value( 'type' ) eq "organization" )
{
return [];
}
elsif( $eprint->get_value( 'type' ) eq "project" )
{
return [];
}
elsif( $eprint->get_value( 'type' ) eq "facility" )
{
return [];
}
return
[
"html",
"pdf",
"ps",
"ascii",
"rtf",
"source",
"multimedia",
"other"
];
};
Eprints 3:
journalp
researchprogramme
web
text/html
|
New IssueOpen IssuesOrganic Eprints Wiki
Based on PmWiki |