logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Importer::RIS - a RIS importer

Configuration

       sep_char
           Set a field separator

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

Methods

new(file=>$filename,fh=>$fh,fix=>[...])
       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.

   counteach(&callback)...
       Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.

Name

       Catmandu::Importer::RIS - a RIS importer

See Also

       Catmandu::Iterable

perl v5.36.0                                       2023-02-04                       Catmandu::Importer::RIS(3pm)

Synopsis

       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];
           # ...
         });

See Also