Jump to content

API:EPrints/Const

From EPrints Documentation
Revision as of 12:57, 4 March 2022 by Pod2wiki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME[edit]

EPrints::Const - Constants and enumerations.

User Comments


DESCRIPTION[edit]

This module contains EPrints constants and enumerations.

User Comments


SYNOPSIS[edit]

   # 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 );
 

User Comments


CONSTANTS[edit]

User Comments


:namespace[edit]

User Comments


EP_NS_CITATION[edit]

http://eprints.org/ep3/citation

User Comments


EP_NS_DATA[edit]

http://eprints.org/ep2/data/2.0

User Comments


EP_NS_XSLT[edit]

http://eprints.org/ep2/xslt/1.0

User Comments


EP_NS_OPENSEARCH[edit]

http://a9.com/-/spec/opensearch/1.1/

User Comments


:xml[edit]

User Comments


XML_ELEMENT_NODE[edit]

User Comments


XML_ATTRIBUTE_NODE[edit]

User Comments


XML_TEXT_NODE[edit]

User Comments


XML_CDATA_SECTION_NODE[edit]

User Comments


XML_ENTITY_REFERENCE_NODE[edit]

XML_ENTITY_REF_NODE shares the same constant value.

User Comments


XML_ENTITY_NODE[edit]

User Comments


XML_PROCESSING_INSTRUCTION_NODE[edit]

User Comments


XML_COMMENT_NODE[edit]

User Comments


XML_DOCUMENT_NODE[edit]

User Comments


XML_DOCUMENT_TYPE_NODE[edit]

User Comments


XML_DOCUMENT_FRAGMENT_NODE[edit]

User Comments


XML_NOTATION_NODE[edit]

User Comments


:http[edit]

Also, all HTTP_* constants defined by Apache2::Const.

User Comments


DONE[edit]

User Comments


DECLINED[edit]

User Comments


NOT_FOUND[edit]

User Comments


OK[edit]

User Comments


:trigger[edit]

See EPrints::RepositoryConfig/add_trigger and EPrints::RepositoryConfig/add_dataset_trigger.

User Comments


EP_TRIGGER_DONE[edit]

Stop processing triggers immediately and return.

User Comments


EP_TRIGGER_OK[edit]

Continue normal processing.

User Comments


EP_TRIGGER_LOG[edit]

User Comments


EP_TRIGGER_BOILERPLATE_RDF[edit]

User Comments


EP_TRIGGER_REPOSITORY_RDF[edit]

User Comments


EP_TRIGGER_BEGIN[edit]

User Comments


EP_TRIGGER_BEGIN_REQUEST[edit]

Called after EPrints::Repository/init_from_request.

User Comments


EP_TRIGGER_END_REQUEST[edit]

Called just before EPrints::Repository/cleanup in response to a mod_perl request.

User Comments


EP_TRIGGER_END[edit]

User Comments


EP_TRIGGER_URL_REWRITE[edit]

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
 

User Comments


EP_TRIGGER_DOC_URL_REWRITE[edit]

User Comments


EP_TRIGGER_CREATED[edit]

Called after $dataset->create_dataobj( { ... } ).

 dataobj - the newly created dataobj
 

User Comments


EP_TRIGGER_REMOVED[edit]

Called just before the object is removed from the database.

 dataobj - the object being removed
 

User Comments


EP_TRIGGER_RDF[edit]

User Comments


EP_TRIGGER_DEFAULTS[edit]

User Comments


EP_TRIGGER_STATUS_CHANGE[edit]

User Comments


EP_TRIGGER_BEFORE_COMMIT[edit]

User Comments


EP_TRIGGER_AFTER_COMMIT[edit]

User Comments


EP_TRIGGER_VALIDATE[edit]

User Comments


EP_TRIGGER_VALIDATE_FIELD[edit]

Validate a field's value.

 field - field to validate
 value - value to validate
 dataobj - parent dataobj (if available)
 problems - ARRAYREF of DOM problems encountered
 

User Comments


EP_TRIGGER_WARNINGS[edit]

User Comments


EP_TRIGGER_FILES_MODIFIED[edit]

User Comments


EP_TRIGGER_MEDIA_INFO[edit]

Populate a Document epdata structure with information about a file.

 epdata
 filename
 filepath
 

User Comments


EP_TRIGGER_THUMBNAIL_TYPES[edit]

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
 

User Comments


EP_TRIGGER_INDEX_FIELDS[edit]

Add the changed fields for the given data object to the index engine(s).

 dataobj = EPrints::DataObj
 fields = ARRAYREF of field objects
 

User Comments


EP_TRIGGER_INDEX_REMOVED[edit]

An object was removed and should now be removed from the index engine(s).

 dataset = EPrints::DataSet
 id = object id
 

User Comments


EP_TRIGGER_DYNAMIC_TEMPLATE[edit]

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
 

User Comments


EP_TRIGGER_LOCAL_SITEMAP_URLS[edit]

Manipulate the URLs added to the local sitemaps.

 urlset - the set of all URLs to include in the sitemap.
 

User Comments


:metafield[edit]

User Comments


EP_PROPERTY_FROM_CONFIG[edit]

Get the default value from field defaults in the config.

User Comments


EP_PROPERTY_NO_CHANGE[edit]

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.

User Comments


EP_PROPERTY_REQUIRED[edit]

This field property must be explicitly set.

User Comments


EP_PROPERTY_UNDEF[edit]

This field property defaults to undef.

User Comments


EP_PROPERTY_TRUE[edit]

This field property defaults to true.

User Comments


EP_PROPERTY_FALSE[edit]

This field property defaults to false.

User Comments


:crypt[edit]

One-way encryption methods for passwords, see EPrints::Utils/crypt.

User Comments


EP_CRYPT_CRYPT[edit]

perlfunc/crypt.

User Comments


EP_CRYPT_SHA512[edit]

Digest::SHA sha512 with 2-byte salt and 10000 rounds.

User Comments


COPYRIGHT[edit]

© Copyright 2000-2024 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE[edit]

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/.

User Comments