Recent Changes in the OrganicEprintsIssues group   -   WikiHelp   -   Search ecowiki.org:

« 00062 · Edit Form · 00064 »

Summary: Default values by eprint type for refereed field
Type: Usage

Priority (1<5) = 4
Status: Open

Raised by: HugoAlroe
Project: CORE Organic, DARCOF
Related to
Date opened: 2006–04–06
Assigned to Profiles
Hours used (estimates in brackets) = [10]
Date closed:

Description:
Default values are needed for ‘refereed’ and perhaps ‘progtype’. The are set in the sub below in ArchiveMetaDataTypeConfig.pm, but they should be set only for individual eprint types. An if sentence is used in ArchiveConfig.pm (further below) - perhaps this can be used?

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 Issue

Open Issues

(Edit SideBar)


Organic Eprints Wiki



Based on PmWiki

(Edit SideBar)

Page last modified on January 22, 2009, at 09:15 AM - Edit Page