|
Summary: Default values by eprint type for refereed field
Priority (1<5) = 4
Raised by: HugoAlroe
Description:
Another option is to add a ‘Not applicable’ or something category to the refereed field, and fill this in as a default - for all eprints. Only problem is that this will be visible to all ordinary eprints, where it is not relevant.
sub set_eprint_defaults
{
my( $data, $session ) = @_;
## HFA 15aug2005: commented out both defaults below, since they apply to
## all eprints - should depend on eprint type ... Asked Eprints Techlist
## HFA 06apr2006: Actually refereed should be never for all eprint types except
## orgnaisation, project, facility, program - else they will not be listed in
## the "By Peer Review" browse views
#$data->{refereed} = "never";
## HFA Added part programme as this will be most used in CORE Organic
#$data->{progtype} = "part";
}
$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"
];
};
|
New IssueOpen IssuesOrganic Eprints Wiki
Based on PmWiki |