OAI.pm untested

filter: Statementstmt 0.0% 0 / 1 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 1 SCAR -
1 package Catmandu::OAI;
2  
3 =head1 NAME
4  
5 Catmandu::OAI - Catmandu modules for working with OAI repositories
6  
7 =head1 SYNOPSIS
8  
9 # From the command line
10 $ catmandu convert OAI --url http://biblio.ugent.be/oai --set allFtxt
11 $ catmandu convert OAI --url http://biblio.ugent.be/oai --metadataPrefix mods --set books
12 $ catmandu convert OAI --url http://biblio.ugent.be/oai --metadataPrefix mods --set books --handler raw
13 $ catmandu import OAI --url http://biblio.ugent.be/oai --set allFtxt to MongoDB --database-name biblio
14  
15 # Harvest repository description
16 $ catmandu convert OAI --url http://myrepo.org/oai --identify 1
17  
18 # Harvest identifiers
19 $ catmandu convert OAI --url http://myrepo.org/oai --listIdentifiers 1
20  
21 # Harvest sets
22 $ catmandu convert OAI --url http://myrepo.org/oai --listSets 1
23  
24 # Harvest metadataFormats
25 $ catmandu convert OAI --url http://myrepo.org/oai --listMetadataFormats 1
26  
27 # Harvest one record
28 $ catmandu convert OAI --url http://myrepo.org/oai --getRecord 1 --identifier oai:myrepo:1234
29  
30 =cut
31  
32 our $VERSION = '0.21';
33  
34 =head1 MODULES
35  
36 =over
37  
38 =item * L<Catmandu::Importer::OAI>
39  
40 =item * L<Catmandu::Store::OAI>
41  
42 =back
43  
44 =head1 AUTHOR
45  
46 Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>
47  
48 =head1 CONTRIBUTOR
49  
50 Patrick Hochstenbach, C<< <patrick.hochstenbach at ugent.be> >>
51  
52 Jakob Voss, C<< <nichtich at cpan.org> >>
53  
54 Nicolas Franck, C<< <nicolas.franck at ugent.be> >>
55  
56 =head1 LICENSE AND COPYRIGHT
57  
58 Copyright 2016 Ghent University Library
59  
60 This program is free software; you can redistribute it and/or modify it
61 under the terms of either: the GNU General Public License as published
62 by the Free Software Foundation; or the Artistic License.
63  
64 See http://dev.perl.org/licenses/ for more information.
65  
66 =cut
67  
68 1;