EPrints::CLIProcessor - utility module supporting command-line scripts
Currently this module is just a 'handler' for import scripts. In future it may do more things to support the CLI (Command-Line Interface) to EPrints.
EPrints::CLIProcessor::color( $type )
Returns boolean depending on whether $type is a permitted setting for the EPrints::CLIProcessor.
$processor = EPrints::CLIProcessor->new( session => $session, %opts )
Create a new processor object. Supported options:
scripted - backwards compatibility for import scripted interface epdata_to_dataobj - replace epdata_to_dataobj message - replace message
$processor->add_message( $type, $msg )
Add a message for the user. $type is 'error', 'warning' or 'message'. $msg is an XHTML fragment.
$dataobj = $processor->epdata_to_dataobj( $epdata, %opts )
Requests the handler create the new object from $epdata.
$processor->parsed( [ $epdata ] )
Register a parsed event, optionally with $epdata.
$processor->object( DATASET, DATAOBJ )
Register a new object event in DATASET with new object DATAOBJ.
© Copyright 2022 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
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/.