API:EPrints/Script

From EPrints Documentation
Revision as of 18:29, 11 August 2009 by Tdb01r (talk | contribs) (New page: <!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost. -...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki

NAME

EPrints::Script - Mini-scripting language for use in workflow and citations.

DESCRIPTION

This module processes simple eprints mini-scripts.

my $result = execute( "$eprint.type = 'article'", { eprint=>$eprint } );
 

The syntax is

$var := dataobj or string or datastructure
"string" := string
'string' := string
!boolean := boolean 
string = string := boolean
string := string := boolean
boolean or boolean := boolean
boolean and boolean := boolean
dataobj{property} := string or datastructure
dataobj.is_set( fieldname ) := boolean
string.one_of( string, string, string... ) := boolean
string.reverse() := string ( foobar=>raboof ) 
?.length() := integer
 

UNDOCUMENTED METHODS

Warning These methods were found in the source code but didn't have any POD associated with them. This may be because we haven't got around to documenting them yet or it could be because they are internal to the API and not intended for use by other parts of EPrints.

error

execute

print