Difference between revisions of "API:EPrints/Const"
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Pod2Wiki=_preamble_ | <!-- Pod2Wiki=_preamble_ | ||
− | This page has been automatically generated from the EPrints 3. | + | This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. |
− | -->{{API}}{{Pod2Wiki}}{{API:Source|file= | + | -->{{API}}{{Pod2Wiki}}{{API:Source|file=EPrints/Const.pm|package_name=EPrints::Const}}[[Category:API|CONST]]<div><!-- Edit below this comment --> |
<!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name --> | <!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name --> | ||
==NAME== | ==NAME== | ||
− | '''EPrints::Const''' - | + | '''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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=head_description --> | ||
+ | ==DESCRIPTION== | ||
+ | This module contains EPrints 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 --> | <!-- Pod2Wiki=head_synopsis --> | ||
− | ==SYNOPSIS== | + | ===SYNOPSIS=== |
− | + | # don't import any constants | |
− | use EPrints::Const qw(); | + | 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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
− | |||
− | |||
− | # | + | <!-- Pod2Wiki= --> |
− | + | </div> | |
+ | <!-- Pod2Wiki=head_constants --> | ||
+ | ==CONSTANTS== | ||
+ | <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_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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | <!-- Pod2Wiki= | + | </div> |
− | == | + | <!-- Pod2Wiki=item_ep_ns_citation --> |
− | + | ====EP_NS_CITATION==== | |
+ | |||
+ | http://eprints.org/ep3/citation | ||
+ | <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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | <!-- Pod2Wiki= | + | </div> |
− | == | + | <!-- Pod2Wiki=item_ep_ns_data --> |
+ | ====EP_NS_DATA==== | ||
+ | |||
+ | http://eprints.org/ep2/data/2.0 | ||
+ | |||
+ | <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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | <!-- Pod2Wiki= | + | </div> |
− | === | + | <!-- Pod2Wiki=item_ep_ns_xslt --> |
− | + | ====EP_NS_XSLT==== | |
− | + | ||
+ | http://eprints.org/ep2/xslt/1.0 | ||
+ | |||
+ | <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_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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki=head_xml --> | <!-- Pod2Wiki=head_xml --> | ||
===: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==== | ||
+ | |||
+ | '''XML_ENTITY_REF_NODE''' shares the same constant 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_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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- 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 --> | <!-- Pod2Wiki=head_http --> | ||
===:http=== | ===:http=== | ||
− | + | Also, all HTTP_* constants defined by {{API:PodLink|file=Apache2/Const|package_name=Apache2::Const|section=|text=Apache2::Const}}. | |
− | + | ||
− | + | <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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- 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 --> | <!-- Pod2Wiki=head_trigger --> | ||
===:trigger=== | ===:trigger=== | ||
See [[API:EPrints/RepositoryConfig#add_trigger|EPrints::RepositoryConfig/add_trigger]] and [[API:EPrints/RepositoryConfig#add_dataset_trigger|EPrints::RepositoryConfig/add_dataset_trigger]]. | See [[API:EPrints/RepositoryConfig#add_trigger|EPrints::RepositoryConfig/add_trigger]] and [[API:EPrints/RepositoryConfig#add_dataset_trigger|EPrints::RepositoryConfig/add_dataset_trigger]]. | ||
− | + | <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_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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- 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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_log --> | ||
+ | ====EP_TRIGGER_LOG==== | ||
+ | |||
+ | <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_boilerplate_rdf --> | ||
+ | ====EP_TRIGGER_BOILERPLATE_RDF==== | ||
+ | |||
+ | <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_repository_rdf --> | ||
+ | ====EP_TRIGGER_REPOSITORY_RDF==== | ||
+ | |||
+ | <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_begin --> | ||
+ | ====EP_TRIGGER_BEGIN==== | ||
+ | |||
+ | <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_begin_request --> | ||
+ | ====EP_TRIGGER_BEGIN_REQUEST==== | ||
+ | |||
+ | Called after [[API:EPrints/Repository#init_from_request|EPrints::Repository/init_from_request]]. | ||
+ | |||
+ | <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_end_request --> | ||
+ | ====EP_TRIGGER_END_REQUEST==== | ||
− | + | Called just before [[API:EPrints/Repository#cleanup|EPrints::Repository/cleanup]] in response to a mod_perl request. | |
− | + | ||
+ | <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_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==== | ||
− | + | Called for every request that is within the repository's path. Use this to redirect the user to a different location. <tt>return_code</tt> is a scalar reference, therefore you must deference when assigning a new value <tt>${$rc} = CODE</tt>. | |
− | |||
− | |||
− | + | request - mod_perl request object | |
lang - current language id | lang - current language id | ||
args - request arguments "?..." | args - request arguments "?..." | ||
Line 120: | Line 413: | ||
uri - request uri "/eprints/12/" | uri - request uri "/eprints/12/" | ||
secure - whether under HTTPS | secure - whether under HTTPS | ||
− | return_code - reference to return code</ | + | return_code - reference to return code |
+ | |||
+ | <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_doc_url_rewrite --> | ||
+ | ====EP_TRIGGER_DOC_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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_created --> | ||
+ | ====EP_TRIGGER_CREATED==== | ||
+ | |||
+ | Called after $dataset->create_dataobj( { ... } ). | ||
+ | |||
+ | dataobj - the newly created dataobj | ||
+ | |||
+ | <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_removed --> | ||
+ | ====EP_TRIGGER_REMOVED==== | ||
+ | |||
+ | Called just before the object is removed from the database. | ||
+ | |||
+ | dataobj - the object being removed | ||
+ | |||
+ | <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_rdf --> | ||
+ | ====EP_TRIGGER_RDF==== | ||
+ | |||
+ | <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_defaults --> | ||
+ | ====EP_TRIGGER_DEFAULTS==== | ||
+ | |||
+ | <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_status_change --> | ||
+ | ====EP_TRIGGER_STATUS_CHANGE==== | ||
+ | |||
+ | <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_before_commit --> | ||
+ | ====EP_TRIGGER_BEFORE_COMMIT==== | ||
+ | |||
+ | <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_after_commit --> | ||
+ | ====EP_TRIGGER_AFTER_COMMIT==== | ||
+ | |||
+ | <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 --> | |
+ | ====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 | value - value to validate | ||
dataobj - parent dataobj (if available) | dataobj - parent dataobj (if available) | ||
− | problems - ARRAYREF of DOM problems encountered</ | + | 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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
− | |||
− | |||
− | |||
− | |||
− | < | + | <!-- Pod2Wiki= --> |
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_warnings --> | ||
+ | ====EP_TRIGGER_WARNINGS==== | ||
+ | |||
+ | <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_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%; '> | ||
+ | <span style='display:none'>User Comments</span> | ||
+ | <!-- Edit below this comment --> | ||
+ | |||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
+ | <!-- Pod2Wiki=item_ep_trigger_media_info --> | ||
+ | ====EP_TRIGGER_MEDIA_INFO==== | ||
+ | |||
+ | Populate a Document epdata structure with information about a file. | ||
+ | |||
+ | epdata | ||
filename | filename | ||
− | 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_thumbnail_types --> | ||
+ | ====EP_TRIGGER_THUMBNAIL_TYPES==== | ||
+ | |||
+ | Manipulate the list of thumbnail types that will be generated for a given user-uploaded document. | ||
+ | |||
+ | types - array reference of types (strings) | ||
+ | dataobj - document object | ||
+ | |||
+ | <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=item_ep_trigger_dynamic_template --> | ||
+ | ====EP_TRIGGER_DYNAMIC_TEMPLATE==== | ||
− | + | Manipulate parts included in the template. These will be called for every page impression, so don't do anything heavyweight in here. | |
− | |||
− | < | + | pins - hash ref of template pins |
− | + | ||
+ | <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_local_sitemap_urls --> | ||
+ | ====EP_TRIGGER_LOCAL_SITEMAP_URLS==== | ||
− | + | Manipulate the URLs added to the local sitemaps. | |
− | |||
− | < | + | urlset - the set of all URLs to include in the sitemap. |
+ | |||
+ | <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 --> | <!-- Pod2Wiki=head_metafield --> | ||
===: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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- 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_crypt --> | <!-- Pod2Wiki=head_crypt --> | ||
===:crypt=== | ===:crypt=== | ||
− | + | One-way encryption methods for passwords, see [[API:EPrints/Utils#crypt|EPrints::Utils/crypt]]. | |
+ | <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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | </div> | |
− | + | <!-- Pod2Wiki=item_ep_crypt_crypt --> | |
+ | ====EP_CRYPT_CRYPT==== | ||
− | + | {{API:PodLink|file=perlfunc|package_name=perlfunc|section=crypt|text=perlfunc/crypt}}. | |
− | |||
+ | <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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | <!-- Pod2Wiki= | + | </div> |
− | == | + | <!-- Pod2Wiki=item_ep_crypt_sha512 --> |
− | + | ====EP_CRYPT_SHA512==== | |
− | + | {{API:PodLink|file=Digest/SHA|package_name=Digest::SHA|section=|text=Digest::SHA}} sha512 with 2-byte salt and 10000 rounds. | |
− | + | <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== | ||
+ | {{API:Copyright}} | ||
+ | <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 --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | <!-- Pod2Wiki=_postamble_ --> | + | </div> |
− | <!-- Edit below this comment --> | + | <!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment --> |
Latest revision as of 12:57, 4 March 2022
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 DESCRIPTION
- 3 CONSTANTS
- 3.1 :namespace
- 3.2 :xml
- 3.2.1 XML_ELEMENT_NODE
- 3.2.2 XML_ATTRIBUTE_NODE
- 3.2.3 XML_TEXT_NODE
- 3.2.4 XML_CDATA_SECTION_NODE
- 3.2.5 XML_ENTITY_REFERENCE_NODE
- 3.2.6 XML_ENTITY_NODE
- 3.2.7 XML_PROCESSING_INSTRUCTION_NODE
- 3.2.8 XML_COMMENT_NODE
- 3.2.9 XML_DOCUMENT_NODE
- 3.2.10 XML_DOCUMENT_TYPE_NODE
- 3.2.11 XML_DOCUMENT_FRAGMENT_NODE
- 3.2.12 XML_NOTATION_NODE
- 3.3 :http
- 3.4 :trigger
- 3.4.1 EP_TRIGGER_DONE
- 3.4.2 EP_TRIGGER_OK
- 3.4.3 EP_TRIGGER_LOG
- 3.4.4 EP_TRIGGER_BOILERPLATE_RDF
- 3.4.5 EP_TRIGGER_REPOSITORY_RDF
- 3.4.6 EP_TRIGGER_BEGIN
- 3.4.7 EP_TRIGGER_BEGIN_REQUEST
- 3.4.8 EP_TRIGGER_END_REQUEST
- 3.4.9 EP_TRIGGER_END
- 3.4.10 EP_TRIGGER_URL_REWRITE
- 3.4.11 EP_TRIGGER_DOC_URL_REWRITE
- 3.4.12 EP_TRIGGER_CREATED
- 3.4.13 EP_TRIGGER_REMOVED
- 3.4.14 EP_TRIGGER_RDF
- 3.4.15 EP_TRIGGER_DEFAULTS
- 3.4.16 EP_TRIGGER_STATUS_CHANGE
- 3.4.17 EP_TRIGGER_BEFORE_COMMIT
- 3.4.18 EP_TRIGGER_AFTER_COMMIT
- 3.4.19 EP_TRIGGER_VALIDATE
- 3.4.20 EP_TRIGGER_VALIDATE_FIELD
- 3.4.21 EP_TRIGGER_WARNINGS
- 3.4.22 EP_TRIGGER_FILES_MODIFIED
- 3.4.23 EP_TRIGGER_MEDIA_INFO
- 3.4.24 EP_TRIGGER_THUMBNAIL_TYPES
- 3.4.25 EP_TRIGGER_INDEX_FIELDS
- 3.4.26 EP_TRIGGER_INDEX_REMOVED
- 3.4.27 EP_TRIGGER_DYNAMIC_TEMPLATE
- 3.4.28 EP_TRIGGER_LOCAL_SITEMAP_URLS
- 3.5 :metafield
- 3.6 :crypt
- 4 COPYRIGHT
NAME
EPrints::Const - Constants and enumerations.
DESCRIPTION
This module contains EPrints 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 );
CONSTANTS
:namespace
EP_NS_CITATION
http://eprints.org/ep3/citation
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_REF_NODE shares the same constant value.
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
Also, all HTTP_* constants defined by Apache2::Const.
DONE
DECLINED
NOT_FOUND
OK
:trigger
See EPrints::RepositoryConfig/add_trigger and EPrints::RepositoryConfig/add_dataset_trigger.
EP_TRIGGER_DONE
Stop processing triggers immediately and return.
EP_TRIGGER_OK
Continue normal processing.
EP_TRIGGER_LOG
EP_TRIGGER_BOILERPLATE_RDF
EP_TRIGGER_REPOSITORY_RDF
EP_TRIGGER_BEGIN
EP_TRIGGER_BEGIN_REQUEST
Called after EPrints::Repository/init_from_request.
EP_TRIGGER_END_REQUEST
Called just before EPrints::Repository/cleanup in response to a mod_perl request.
EP_TRIGGER_END
EP_TRIGGER_URL_REWRITE
Called for every request that is within the repository's path. Use this to redirect the user to a different location. return_code is a scalar reference, therefore you must deference when assigning a new value ${$rc} = CODE.
request - mod_perl request object lang - current language id args - request arguments "?..." urlpath - EPrint's HTTP root cgipath - EPrints's HTTP cgi root uri - request uri "/eprints/12/" secure - whether under HTTPS return_code - reference to return code
EP_TRIGGER_DOC_URL_REWRITE
EP_TRIGGER_CREATED
Called after $dataset->create_dataobj( { ... } ).
dataobj - the newly created dataobj
EP_TRIGGER_REMOVED
Called just before the object is removed from the database.
dataobj - the object being removed
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_THUMBNAIL_TYPES
Manipulate the list of thumbnail types that will be generated for a given user-uploaded document.
types - array reference of types (strings) dataobj - document object
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
EP_TRIGGER_DYNAMIC_TEMPLATE
Manipulate parts included in the template. These will be called for every page impression, so don't do anything heavyweight in here.
pins - hash ref of template pins
EP_TRIGGER_LOCAL_SITEMAP_URLS
Manipulate the URLs added to the local sitemaps.
urlset - the set of all URLs to include in the sitemap.
: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.
:crypt
One-way encryption methods for passwords, see EPrints::Utils/crypt.
EP_CRYPT_CRYPT
EP_CRYPT_SHA512
Digest::SHA sha512 with 2-byte salt and 10000 rounds.
COPYRIGHT
© Copyright 2000-2024 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
LICENSE
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.