Catmandu::Importer::RIS - a RIS importer
Command line interface:
catmandu convert RIS < input.txt # Use the --human option to translate RIS tags into human readable strings catmandu convert RIS --human 1 < input.txt # Provide a comma separated mapping file to translate RIS tags catmandu convert RIS --human mappings/my_tags.txt < input.txt
In Perl code:
use Catmandu::Importer::RIS; my $importer = Catmandu::Importer::RIS->new(file => "/foo/bar.txt"); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
Set a field separator
If set to 1, then RIS tries to translate tags into human readable strings. If set to a file name, then RIS will read the file as a comma delimited lists of tag/string translations. E.g.
catmandu convert RIS --human mappings/my_tags.txt < input.txt
where mappings/my_tags.txt like:
A2,Secondary-Author A3,Tertiary-Author A4,Subsidiary-Author AB,Abstract AD,Author-Address AF,Notes . . .
Create a new RIS importer for $filename. Use STDIN when no filename is given.
The constructor inherits the fix parameter from Catmandu::Fixable. When given, then any fix or fix script will be applied to imported items.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
Catmandu::Iterable
To install Catmandu::RIS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::RIS
CPAN shell
perl -MCPAN -e shell install Catmandu::RIS
For more information on module installation, please visit the detailed CPAN module installation guide.