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

« 00012 · Edit Form · 00014 »

Summary: Calculation of total budget
Type: Feature

Priority (1<5) = 3
Status: Assigned

Raised by: hal
Project: CORE Organic
Related to 00004
Date opened: 2005–07–08
Assigned to hal
Hours used (estimates in brackets) =
Date closed:

Description:
4.8.2011: Ilse to check with Hugo
31.8.2010: Julia Meier and Helga: We think that this is not relevant anymore. Hugo to decide what to do.


Calculate total budgets to be shown on summary page. This will also work as a check on the budget numbers entered.

Suggestion, sent to eprints tech list 8jul2005

We have research project descriptions in our archive. We ask for their budget divided into three parts (entered as three integer fields: intfunding, natfunding, otherfunding). I would like Eprints to automatically calculate the total budget by way of the set_eprint_automatic_fields sub in Archive Metadata Fields Config?.pm.

We already have something in this sub, and I thought of adding the lines that are commented out below to do this task. Any ideas on whether this might work or not (I don’t know much perl …)

 ## This sub sets publicfulltext to true if it is available without password
 sub set_eprint_automatic_fields
 {
        my( $eprint ) = @_;

        my @docs = $eprint→get_all_documents();
        my $pft = “FALSE”;
        foreach( @docs )
        {
                $pft = “TRUE” unless( $_→is_set( “security” ) );
        }
        $eprint→set_value( “publicfulltext”, $pft );
 ## calculate total budget
 #     my $tb = “0″;
 #     foreach( @docs )
 #        {
 #          $tb = $intfunding + $natfunding + $otherfunding;
 #        }
 #        $eprint→set_value( “budget”, $tb );
 }

New Issue

Open Issues

(Edit SideBar)


Organic Eprints Wiki



Based on PmWiki

(Edit SideBar)

Page last modified on August 03, 2011, at 09:19 AM - Edit Page