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::AlephX - Package that imports metadata records from the AlephX service

Author

       Patrick Hochstenbach "patrick dot hochstenbach at ugent dot be"

Methods

new(url=>'...',base=>'...',query=>'...')
       Create a new AlephX importer. Required parameters are the url baseUrl of the AlephX service, an Aleph
       'base' catalog name and a 'query'.

       commonparameters

           url             base url of alephx service (e.g. "http://ram19:8995/X")
           include_items   0|1. When set to '1', the items of every bibliographical record  are retrieved

       alephxparameters

           base    name of catalog in Aleph where you want to search
           query   the query of course

       output

         {
           record => [
             [
               'FMT',
               '',
               '',
               '_',
               'MX'
             ],
             [
               'LDR',
               '',
               '',
               '_',
               '01236npca^22001937|^4500'
             ]
             ..
           ],
           items => [
             {
               'sub-library' => 'WID',
               'chronological-k' => '',
               'chronological-i' => '',
               'library' => 'USM50',
               'collection' => 'HD',
               'call-no-1' => '$$2ZHCL$$hH 810.80.20',
               'chronological-j' => '',
               'requested' => 'N',
               'expected' => 'N',
               'barcode' => 'HWM4M4',
               'description' => '',
               'note' => '',
               'item-status' => '01',
               'rec-key' => '000048762000010',
               'enumeration-a' => '',
               'call-no-2' => '',
               'enumeration-b' => '',
               'enumeration-c' => '',
               'on-hold' => 'N'
             }
           ]

         }

   counteach(&callback)...
       Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The
       Catmandu::Importer::AlephX methods are not idempotent: Twitter feeds can only be read once.

Name

       Catmandu::Importer::AlephX - Package that imports metadata records from the AlephX service

See Also

       Catmandu::Iterable

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

Synopsis

           use Catmandu::Importer::AlephX;

           my $importer = Catmandu::Importer::AlephX->new(
                               url => 'http://ram19:8995/X' ,
                               query => 'WRD=(art)' ,
                               base => 'usm01' ,
                               );

           my $n = $importer->each(sub {
               my $r = $_[0];
               # ...
               say Dumper($r->{record});
               say Dumper($r->{items});
           });

See Also