Document fields default.pl
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
- $data is a hash of the metadata which will make up the document object. Each field name is a key in the hash.
- $session is a Repository object (in 3.2 or later)
- $eprint is the EPrint object to which the document belongs
Example
$c->{set_document_defaults} = sub { my( $data, $session, $eprint ) = @_; $data->{language} = $session->get_langid(); $data->{security} = "public"; };