Difference between revisions of "API:EPrints/Const"
(Created page with '<!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' com…') |
|||
Line 8: | Line 8: | ||
'''EPrints::Const''' - constants and enumerations | '''EPrints::Const''' - constants and enumerations | ||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_synopsis --> | ||
+ | ==SYNOPSIS== | ||
+ | # don't import any constants | ||
+ | use EPrints::Const qw(); | ||
+ | |||
+ | # import trigger and http constants | ||
+ | use EPrints::Const qw( :trigger :http ); | ||
+ | |||
+ | # import only the OK DONE DECLINED constants | ||
+ | use EPrints::Const qw( OK DONE DECLINED ); | ||
+ | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> | ||
Line 35: | Line 53: | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
− | <!-- Pod2Wiki= | + | <!-- Pod2Wiki=head_namespace --> |
− | === | + | ===:namespace=== |
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> | ||
Line 68: | Line 86: | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
− | <!-- Pod2Wiki= | + | <!-- Pod2Wiki=item_ep_ns_opensearch --> |
− | === | + | ====EP_NS_OPENSEARCH==== |
+ | |||
+ | http://a9.com/-/spec/opensearch/1.1/ | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_xml --> | ||
+ | ===:xml=== | ||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_element_node --> | ||
+ | ====XML_ELEMENT_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_attribute_node --> | ||
+ | ====XML_ATTRIBUTE_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_text_node --> | ||
+ | ====XML_TEXT_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_cdata_section_node --> | ||
+ | ====XML_CDATA_SECTION_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_entity_reference_node --> | ||
+ | ====XML_ENTITY_REFERENCE_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_entity_node --> | ||
+ | ====XML_ENTITY_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_processing_instruction_node --> | ||
+ | ====XML_PROCESSING_INSTRUCTION_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_comment_node --> | ||
+ | ====XML_COMMENT_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_document_node --> | ||
+ | ====XML_DOCUMENT_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_document_type_node --> | ||
+ | ====XML_DOCUMENT_TYPE_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_document_fragment_node --> | ||
+ | ====XML_DOCUMENT_FRAGMENT_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_xml_notation_node --> | ||
+ | ====XML_NOTATION_NODE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_http --> | ||
+ | ===:http=== | ||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_done --> | ||
+ | ====DONE==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_declined --> | ||
+ | ====DECLINED==== | ||
+ | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> | ||
Line 77: | Line 256: | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
− | <!-- Pod2Wiki= | + | <!-- Pod2Wiki=item_not_found --> |
− | ==== | + | ====NOT_FOUND==== |
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ok --> | ||
+ | ====OK==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
− | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_trigger --> | ||
+ | ===:trigger=== | ||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> | ||
Line 89: | Line 285: | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
− | <!-- Pod2Wiki= | + | <!-- Pod2Wiki=item_ep_trigger_done --> |
− | ==== | + | ====EP_TRIGGER_DONE==== |
− | + | Stop processing triggers immediately and return. | |
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
Line 101: | Line 297: | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
− | <!-- Pod2Wiki= | + | <!-- Pod2Wiki=item_ep_trigger_ok --> |
− | === | + | ====EP_TRIGGER_OK==== |
+ | |||
+ | Continue normal processing. | ||
+ | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> | ||
Line 182: | Line 381: | ||
<!-- Pod2Wiki=item_ep_trigger_end --> | <!-- Pod2Wiki=item_ep_trigger_end --> | ||
====EP_TRIGGER_END==== | ====EP_TRIGGER_END==== | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_url_rewrite --> | ||
+ | ====EP_TRIGGER_URL_REWRITE==== | ||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
Line 263: | Line 472: | ||
====EP_TRIGGER_VALIDATE==== | ====EP_TRIGGER_VALIDATE==== | ||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_validate_field --> | ||
+ | ====EP_TRIGGER_VALIDATE_FIELD==== | ||
+ | |||
+ | Validate a field's value. | ||
+ | |||
+ | field - field to validate | ||
+ | value - value to validate | ||
+ | dataobj - parent dataobj (if available) | ||
+ | problems - ARRAYREF of DOM problems encountered | ||
+ | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> | ||
Line 280: | Line 506: | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
− | <!-- Pod2Wiki= | + | <!-- Pod2Wiki=item_ep_trigger_files_modified --> |
− | ==== | + | ====EP_TRIGGER_FILES_MODIFIED==== |
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
Line 299: | Line 525: | ||
filepath | filepath | ||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_index_fields --> | ||
+ | ====EP_TRIGGER_INDEX_FIELDS==== | ||
+ | |||
+ | Add the changed fields for the given data object to the index engine(s). | ||
+ | |||
+ | dataobj = EPrints::DataObj | ||
+ | fields = ARRAYREF of field objects | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_index_removed --> | ||
+ | ====EP_TRIGGER_INDEX_REMOVED==== | ||
+ | |||
+ | An object was removed and should now be removed from the index engine(s). | ||
+ | |||
+ | dataset = EPrints::DataSet | ||
+ | id = object id | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_metafield --> | ||
+ | ===:metafield=== | ||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_property_from_config --> | ||
+ | ====EP_PROPERTY_FROM_CONFIG==== | ||
+ | |||
+ | Get the default value from field defaults in the config. | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_property_no_change --> | ||
+ | ====EP_PROPERTY_NO_CHANGE==== | ||
+ | |||
+ | Don't use a default, the code may have already set this value. setting it to undef has no effect rather than setting it to default value. | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_property_required --> | ||
+ | ====EP_PROPERTY_REQUIRED==== | ||
+ | |||
+ | This field property must be explicitly set. | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_property_undef --> | ||
+ | ====EP_PROPERTY_UNDEF==== | ||
+ | |||
+ | This field property defaults to undef. | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_property_true --> | ||
+ | ====EP_PROPERTY_TRUE==== | ||
+ | |||
+ | This field property defaults to true. | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_property_false --> | ||
+ | ====EP_PROPERTY_FALSE==== | ||
+ | |||
+ | This field property defaults to false. | ||
+ | |||
+ | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_copyright --> | ||
+ | ==COPYRIGHT== | ||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
<span style='display:none'>User Comments</span> | <span style='display:none'>User Comments</span> |
Revision as of 10:46, 25 August 2011
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
- 1 NAME
- 2 SYNOPSIS
- 3 DESCRIPTION
- 4 CONSTANTS
- 4.1 :namespace
- 4.2 :xml
- 4.2.1 XML_ELEMENT_NODE
- 4.2.2 XML_ATTRIBUTE_NODE
- 4.2.3 XML_TEXT_NODE
- 4.2.4 XML_CDATA_SECTION_NODE
- 4.2.5 XML_ENTITY_REFERENCE_NODE
- 4.2.6 XML_ENTITY_NODE
- 4.2.7 XML_PROCESSING_INSTRUCTION_NODE
- 4.2.8 XML_COMMENT_NODE
- 4.2.9 XML_DOCUMENT_NODE
- 4.2.10 XML_DOCUMENT_TYPE_NODE
- 4.2.11 XML_DOCUMENT_FRAGMENT_NODE
- 4.2.12 XML_NOTATION_NODE
- 4.3 :http
- 4.4 :trigger
- 4.4.1 EP_TRIGGER_DONE
- 4.4.2 EP_TRIGGER_OK
- 4.4.3 EP_TRIGGER_GUESS_DOC_TYPE
- 4.4.4 EP_TRIGGER_LOG
- 4.4.5 EP_TRIGGER_BOILERPLATE_RDF
- 4.4.6 EP_TRIGGER_REPOSITORY_RDF
- 4.4.7 EP_TRIGGER_BEGIN
- 4.4.8 EP_TRIGGER_BEGIN_REQUEST
- 4.4.9 EP_TRIGGER_END_REQUEST
- 4.4.10 EP_TRIGGER_END
- 4.4.11 EP_TRIGGER_URL_REWRITE
- 4.4.12 EP_TRIGGER_DOC_URL_REWRITE
- 4.4.13 EP_TRIGGER_CREATED
- 4.4.14 EP_TRIGGER_RDF
- 4.4.15 EP_TRIGGER_DEFAULTS
- 4.4.16 EP_TRIGGER_STATUS_CHANGE
- 4.4.17 EP_TRIGGER_BEFORE_COMMIT
- 4.4.18 EP_TRIGGER_AFTER_COMMIT
- 4.4.19 EP_TRIGGER_VALIDATE
- 4.4.20 EP_TRIGGER_VALIDATE_FIELD
- 4.4.21 EP_TRIGGER_WARNINGS
- 4.4.22 EP_TRIGGER_FILES_MODIFIED
- 4.4.23 EP_TRIGGER_MEDIA_INFO
- 4.4.24 EP_TRIGGER_INDEX_FIELDS
- 4.4.25 EP_TRIGGER_INDEX_REMOVED
- 4.5 :metafield
- 5 COPYRIGHT
NAME
EPrints::Const - constants and enumerations
SYNOPSIS
# don't import any constants use EPrints::Const qw(); # import trigger and http constants use EPrints::Const qw( :trigger :http ); # import only the OK DONE DECLINED constants use EPrints::Const qw( OK DONE DECLINED );
DESCRIPTION
This module contains EPrints constants and enumerations.
CONSTANTS
:namespace
EP_NS_DATA
http://eprints.org/ep2/data/2.0
EP_NS_XSLT
http://eprints.org/ep2/xslt/1.0
EP_NS_OPENSEARCH
http://a9.com/-/spec/opensearch/1.1/
:xml
XML_ELEMENT_NODE
XML_ATTRIBUTE_NODE
XML_TEXT_NODE
XML_CDATA_SECTION_NODE
XML_ENTITY_REFERENCE_NODE
XML_ENTITY_NODE
XML_PROCESSING_INSTRUCTION_NODE
XML_COMMENT_NODE
XML_DOCUMENT_NODE
XML_DOCUMENT_TYPE_NODE
XML_DOCUMENT_FRAGMENT_NODE
XML_NOTATION_NODE
:http
DONE
DECLINED
NOT_FOUND
OK
:trigger
EP_TRIGGER_DONE
Stop processing triggers immediately and return.
EP_TRIGGER_OK
Continue normal processing.
EP_TRIGGER_GUESS_DOC_TYPE
EP_TRIGGER_LOG
EP_TRIGGER_BOILERPLATE_RDF
EP_TRIGGER_REPOSITORY_RDF
EP_TRIGGER_BEGIN
EP_TRIGGER_BEGIN_REQUEST
EP_TRIGGER_END_REQUEST
EP_TRIGGER_END
EP_TRIGGER_URL_REWRITE
EP_TRIGGER_DOC_URL_REWRITE
EP_TRIGGER_CREATED
EP_TRIGGER_RDF
EP_TRIGGER_DEFAULTS
EP_TRIGGER_STATUS_CHANGE
EP_TRIGGER_BEFORE_COMMIT
EP_TRIGGER_AFTER_COMMIT
EP_TRIGGER_VALIDATE
EP_TRIGGER_VALIDATE_FIELD
Validate a field's value.
field - field to validate value - value to validate dataobj - parent dataobj (if available) problems - ARRAYREF of DOM problems encountered
EP_TRIGGER_WARNINGS
EP_TRIGGER_FILES_MODIFIED
EP_TRIGGER_MEDIA_INFO
Populate a Document epdata structure with information about a file.
epdata filename filepath
EP_TRIGGER_INDEX_FIELDS
Add the changed fields for the given data object to the index engine(s).
dataobj = EPrints::DataObj fields = ARRAYREF of field objects
EP_TRIGGER_INDEX_REMOVED
An object was removed and should now be removed from the index engine(s).
dataset = EPrints::DataSet id = object id
:metafield
EP_PROPERTY_FROM_CONFIG
Get the default value from field defaults in the config.
EP_PROPERTY_NO_CHANGE
Don't use a default, the code may have already set this value. setting it to undef has no effect rather than setting it to default value.
EP_PROPERTY_REQUIRED
This field property must be explicitly set.
EP_PROPERTY_UNDEF
This field property defaults to undef.
EP_PROPERTY_TRUE
This field property defaults to true.
EP_PROPERTY_FALSE
This field property defaults to false.
COPYRIGHT