DESCRIPTION

Catmandu::Importer::Pure is a Catmandu package that seamlessly imports data from Elsevier's Pure system using its REST service.
Currently documentation describing the REST service can usually be viewed at /ws/doc/ on a host where
Pure is installed, for instance, http://experts-us.demo.atira.dk/ws/doc/.
...

CONFIGURATION

base

Base URL for the REST service is required, for example 'http://experts-us.demo.atira.dk/ws/rest'

Optional flag. If true delivers the complete results as a single item (record), corresponding to the XML response received. Only one request to the REST service is made in this case. Default is false.

If the flag is false then the items are set to child elements of the element 'result' or in case the 'result' element does not exist they are set to child elements of the root element for each response.

Handlers can be provided as function reference, an instance of a Perl package that implements 'parse', or by a package NAME. Package names should be prepended by + or prefixed with Catmandu::Importer::Pure::Parser. E.g foobar will create a Catmandu::Importer::Pure::Parser::foobar instance.

Optional flag. If true then all text nodes in the REST response are trimmed so that any leading and trailing whitespace is removed before parsing. This is useful if you don't want to risk getting leading and trailing whitespace in your data, since Pure doesn't currently clean leading/trailing white space from user input. Note that there is a small performance penalty when using this option. Default is false.

filter( sub {} )

Optional reference to function that processes the XML response before it is parsed. The argument to the function is a reference to the XML text, which is then used to modify it. This is option is normally not needed but can helpful if there is a problem parsing the response due to a bug in the REST service, for example.

METHODS

In addition to methods inherited from Catmandu::Iterable, this module provides the following public methods:

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.