Difference between revisions of "EPrint Object"

From EPrints Documentation
Jump to: navigation, search
(link to API page)
 
(26 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
{{dataobj}}
 +
 
[[Data Object]] representing a single EPrint record.  
 
[[Data Object]] representing a single EPrint record.  
  
 
It belongs to the "eprint" dataset.
 
It belongs to the "eprint" dataset.
  
In the API it is represented as an instace of EPrints::DataObj::EPrint
+
In the API it is represented as an instance of EPrints::DataObj::EPrint.
  
 
== Metadata Fields ==
 
== Metadata Fields ==
  
=== Built in Fields ===
+
<table border="1" cellspacing="0" cellpadding="2">
 +
<tr><th>Field Name</th><th>Type</th><th>Description</th></tr>
 +
<tr><td>eprintid</td><td>[[int field]]</td><td>The ID number of this EPrint Object (unique within a single repository)</td></tr>
 +
<tr><td>rev_number</td><td>[[int field]]</td><td>The metadata revision number. Increased by 1 every time this record is modified.</td></tr>
 +
<tr><td>documents</td><td>multiple [[subobject field]]</td><td>zero or more [[Document Object]]s attached to this EPrint. In effect these are sub-objects.</td></tr>
 +
<tr><td>eprint_status</td><td>[[set field]]</td><td>the status of this eprint. </td></tr>
 +
<tr><td>userid</td><td>[[itemref field]]</td><td>the userid of the [[User Object]] which first created this item. This is the user that can see the eprint in their userarea.</td></tr>
 +
<tr><td>dir</td><td>[[text field]]</td><td>the path that the documents for this eprint are stored, relative to [[Archives/ARCHIVEID/documents/]]</td></tr>
 +
<tr><td>datestamp</td><td>[[time field]]</td><td>the time the eprint first appeared in the live archive. Is only ever set once.</td></tr>
 +
<tr><td>lastmod</td><td>[[time field]]</td><td>the time this eprint was last modified</td></tr>
 +
<tr><td>status_changed</td><td>[[time field]]</td><td>the time the eprint_status field was last modified (ie. when it was last moved between datasets)</td></tr>
 +
<tr><td>type</td><td>[[namedset field]] eprint</td><td>the type of this eprint (eg. article, etc).</td></tr>
 +
<tr><td>succeeds</td><td>[[itemref field]]</td><td>if this eprint is a new version (not revision) of an existing eprint record, this is the id of the record it replaces.</td></tr>
 +
<tr><td>commentary</td><td>[[itemref field]]</td><td>if this eprint is a commentary on an existing eprint record this is the id of the record it comments upon.</td></tr>
 +
<tr><td>replacedby</td><td>[[itemref field]]</td><td>if this eprint has a newer version then this is the id of the newer version (opposite of "succeeds")</td></tr>
 +
<tr><td>metadata_visibility</td><td>[[set field]]</td><td>if set to no_search then this record does not appear in search results. Used for older versions of a thing where all versions must exist but it's only useful to discover the newest one.</td></tr>
 +
<tr><td>contact_email</td><td>[[email field]]</td><td>an email address for correspondance about this eprint. Used to request documents which are not online, or not public.</td></tr>
 +
<tr><td>fileinfo</td><td>[[longtext field]]</td><td>used to cache the icon urls and links for the documents, so they can be easily used in citations.</td></tr>
 +
<tr><td>latitude</td><td>[[float field]]</td><td></td></tr>
 +
<tr><td>longitude</td><td>[[float field]]</td><td>these store the position on earth which this eprint relates to, if any. This could be where it was presented, where the author lives, or the location may be the subject of the eprint such as a city or an archaelogical dig. The exact use depends on the repository.</td></tr>
 +
<tr><td>****</td><td colspan="2">Repository-specific fields for the [[EPrint Object]] are defined in [[eprint_fields.pl]] - these are in addition to the fields listed here, which are always in EPrints for any repository.</td></tr>
 +
</table>
  
* eprintid ([[int field]])  
+
== Related configuration files ==
* rev_number ([[int field]])
+
* [[archives/ARCHIVEID/cfg/cfg.d/]] - repository-specific settings (initially copied from lib/defaultcfg/cfg.d) overriding/extending lib/cfg.d/
* documents (multiple [[subobject field]])
+
** '''[[eprint_fields.pl]]''' - object definitions influencing database definition
* eprint_status ([[set field]]) options are inbox|buffer|archive|deletion
+
** '''[[eprint_fields_automatic.pl]]''' - defines automatic object setting
* userid ([[itemref field]])
+
** '''[[eprint_fields_default.pl]]''' - defines initial object setting
* dir ([[text field]])
+
** '''[[eprint_render.pl]]''' - defines object rendering
* datestamp ([[time field]])
+
** '''[[eprint_validate.pl]]''' - defines object validation
* lastmod ([[time field]])
+
** '''[[eprint_warnings.pl]]''' - defines object checks to warn user
* status_changed ([[time field]])
+
* [[archives/ARCHIVEID/cfg/workflows/eprint/]]
* type ([[namedset field]]) namedset "eprint"
+
** '''[[workflows/eprint/default.xml|default.xml]]''' - defines workflow
* succeeds ([[itemref field]])
+
* [[archives/ARCHIVEID/cfg/namedsets/]]
* commentary ([[itemref field]])
+
** '''eprint''' - sets known eprint types
* replacedby ([[itemref field]]
+
* [[archives/ARCHIVEID/cfg/lang/en/phrases/]] - extends/overrides lib/lang/en/phrases/*.xml
* metadata_visibility ([[set field]]) options are show|no_search (show is default)
+
** '''*.xml''' - defines language-specific names, help text and so on of the '''EPrint Object'''; all definition files are read in alphabetic order and override each other (survival of the last one ...!)
* contact_email ([[email field]])
 
* fileinfo ([[longtext field]])
 
* latitude ([[float field]])
 
* longitude ([[float field]])
 
  
=== Local Fields ===
+
Also, see [[Document Object]] configuration files.
 
 
EPrint objects have many more fields, which are defined in [[eprint_fields.pl]]
 
 
 
== Related configuration files ==
 
  
* '''[[eprint_fields.pl]]''' -
+
== See Also ==
* '''[[eprint_fields_automatic.pl]]''' -
+
* [[API:EPrints/DataObj/EPrint|EPrints::DataObj::EPrint]] - API page
* '''[[eprint_fields_default.pl]]''' -
 
* '''[[eprint_render.pl]]''' -
 
* '''[[eprint_validate.pl]]''' -
 
* '''[[eprint_warnings.pl]]''' -
 
* [[Archives/ARCHIVEID/cfg/workflows/eprint/]]
 
** default.xml
 
* [[Archives/ARCHIVEID/cfg/namedsets/]]
 
** eprint
 
* [[Archives/ARCHIVEID/cfg/lang/en/phrases/]]
 
** eprint_fields.xml - names, help text and names for options (in set fields) of fields in the EPrint Object.
 
** eprint_order.xml - human readable rendering of the allowed orderings of search results for eprint searches.
 
** eprint_types.xml - name and description of each of the eprint types.
 

Latest revision as of 16:02, 18 February 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Data Objects: Access - Document - EPrint - Event Queue - File - History - Import - Login Ticket - Request - Saved Search - Subject - User

Data Object representing a single EPrint record.

It belongs to the "eprint" dataset.

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

Metadata Fields

Field NameTypeDescription
eprintidint fieldThe ID number of this EPrint Object (unique within a single repository)
rev_numberint fieldThe metadata revision number. Increased by 1 every time this record is modified.
documentsmultiple subobject fieldzero or more Document Objects attached to this EPrint. In effect these are sub-objects.
eprint_statusset fieldthe status of this eprint.
useriditemref fieldthe userid of the User Object which first created this item. This is the user that can see the eprint in their userarea.
dirtext fieldthe path that the documents for this eprint are stored, relative to Archives/ARCHIVEID/documents/
datestamptime fieldthe time the eprint first appeared in the live archive. Is only ever set once.
lastmodtime fieldthe time this eprint was last modified
status_changedtime fieldthe time the eprint_status field was last modified (ie. when it was last moved between datasets)
typenamedset field eprintthe type of this eprint (eg. article, etc).
succeedsitemref fieldif this eprint is a new version (not revision) of an existing eprint record, this is the id of the record it replaces.
commentaryitemref fieldif this eprint is a commentary on an existing eprint record this is the id of the record it comments upon.
replacedbyitemref fieldif this eprint has a newer version then this is the id of the newer version (opposite of "succeeds")
metadata_visibilityset fieldif set to no_search then this record does not appear in search results. Used for older versions of a thing where all versions must exist but it's only useful to discover the newest one.
contact_emailemail fieldan email address for correspondance about this eprint. Used to request documents which are not online, or not public.
fileinfolongtext fieldused to cache the icon urls and links for the documents, so they can be easily used in citations.
latitudefloat field
longitudefloat fieldthese store the position on earth which this eprint relates to, if any. This could be where it was presented, where the author lives, or the location may be the subject of the eprint such as a city or an archaelogical dig. The exact use depends on the repository.
****Repository-specific fields for the EPrint Object are defined in eprint_fields.pl - these are in addition to the fields listed here, which are always in EPrints for any repository.

Related configuration files

Also, see Document Object configuration files.

See Also