Difference between revisions of "EPrint Object"

From EPrints Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
 
[[Data Object]] representing a single EPrint record.  
 
[[Data Object]] representing a single EPrint record.  
  
Line 8: Line 7:
 
== Metadata Fields ==
 
== Metadata Fields ==
  
=== Built in Fields ==
+
=== Built in Fields ===
  
 
* eprintid ([[int field]])  
 
* eprintid ([[int field]])  
Line 16: Line 15:
 
* userid ([[itemref field]])
 
* userid ([[itemref field]])
 
* dir ([[text field]])
 
* dir ([[text field]])
 
+
* datestamp ([[time field]])
        { name=>"dir", type=>"text", required=>0, can_clone=>0,
+
* lastmod ([[time field]])
                text_index=>0, import=>0, show_in_fieldlist=>0 },
+
* status_changed ([[time field]])
 
+
* type ([[namedset field]]) namedset "eprint"
        { name=>"datestamp", type=>"time", required=>0, import=>0,
+
* succeeds ([[itemref field]])
                render_res=>"minute", render_style=>"short", can_clone=>0 },
+
* commentary ([[itemref field]])
 
+
* replacedby ([[itemref field]]
        { name=>"lastmod", type=>"time", required=>0, import=>0,
+
* metadata_visibility ([[set field]]) options are show|no_search (show is default)
                render_res=>"minute", render_style=>"short", can_clone=>0 },
+
* contact_email ([[email field]])
 
+
* fileinfo ([[longtext field]])
        { name=>"status_changed", type=>"time", required=>0, import=>0,
+
* latitude ([[float field]])
                render_res=>"minute", render_style=>"short", can_clone=>0 },
+
* longitude ([[float field]])
 
 
        { name=>"type", type=>"namedset", set_name=>"eprint", required=>1,
 
                "input_style"=> "long" },
 
 
 
        { name=>"succeeds", type=>"itemref", required=>0,
 
                datasetid=>"eprint", can_clone=>0 },
 
 
 
        { name=>"commentary", type=>"itemref", required=>0,
 
                datasetid=>"eprint", can_clone=>0 },
 
 
 
        { name=>"replacedby", type=>"itemref", required=>0,
 
                datasetid=>"eprint", can_clone=>0 },
 
 
 
        # empty string: normal visibility
 
        # no_search: does not appear on search/view pages.
 
        # to hide... well, the dark dataset should appear in 3.1 or 3.2
 
        { name=>"metadata_visibility", type=>"set", required=>1,
 
                options=>[ "show", "no_search" ] },
 
 
 
        { name=>"contact_email", type=>"email", required=>0, can_clone=>0 },
 
 
 
{ name=>"fileinfo", type=>"longtext",
 
                render_value=>"EPrints::DataObj::EPrint::render_fileinfo" },
 
 
 
        { name=>"latitude", type=>"float", required=>0 },
 
 
 
        { name=>"longitude", type=>"float", required=>0 },
 

Revision as of 16:57, 5 January 2007

Data Object representing a single EPrint record.

It belongs to the "eprint" dataset.

In the API it is represented as an instace of EPrints::DataObj::EPrint

Metadata Fields

Built in Fields