Debian Codegraph @

README

raw
1 MARC-MiJ
2
3 Allow perl's MARC::Record and MARC::File/MARC::Batch to deal with marc-in-json, a
4 MARC serialization described at http://dilettantes.code4lib.org/blog/2010/09/a-proposal-to-serialize-marc-in-json/.
5
6 EXAMPLES
7
8 # Read in from newline-delimieted JSON file
9 use MARC::Batch;
10 use MARC::File::MiJ;
11
12 my $reader = new MARC::Batch('MiJ', $jsonfilename);
13 while (my $r = $batch->next) { ... }
14
15
16 # Convert binary to marc-in-json
17 use MARC::Record::MiJ;
18 my $batch = MARC::Batch->new('USMARC', 'file.mrc');
19 open(my $jsonfile, '>', 'file.ndj' );
20 while (my $r = $batch->next) {
21 print $jsonfile MARC::Record::MiJ->to_mij($r), "\n";
22 }
23 close $jsonfile;
24
25
26
27 INSTALLATION
28
29 To install this module, run the following commands:
30
31 perl Build.PL
32 ./Build
33 ./Build test
34 ./Build install
35
36
37 LICENSE AND COPYRIGHT
38
39 This software is free software and may be distributed under the same
40 terms as Perl itself.
41
42 Copyright (C) 2013 Bill Dueber
43