.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "MARC::File::MiJ 3pm" .TH MARC::File::MiJ 3pm 2024-03-07 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME MARC::File::MiJ \- Read newline\-delimited marc\-in\-json files .SH VERSION .IX Header "VERSION" Version 0.04 .SH SYNOPSIS .IX Header "SYNOPSIS" Use by itself or with MARC::Batch .PP .Vb 2 \& use MARC::Batch; \& use MARC::File::MiJ; \& \& my $reader = new MARC::Batch(\*(AqMiJ\*(Aq, $jsonfilename); \& while (my $r = $batch\->next) { ... } \& \& # or, use it without MARC::Batch \& my $reader = MARC::File::MiJ\->in($jsonfilename); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" A subclass of MARC::File for reading MARC records encoded as newline-delimited marc-in-json, as supported by pymarc/ruby\-marc/marc4j and described at http://dilettantes.code4lib.org/blog/2010/09/a\-proposal\-to\-serialize\-marc\-in\-json/. .SH SUBROUTINES/METHODS .IX Header "SUBROUTINES/METHODS" .SS \fB_next()\fP .IX Subsection "_next()" The underlying "next" that pulls the next line from the filehandle; .SS decode(json) .IX Subsection "decode(json)" .SS encode .IX Subsection "encode" .SH AUTHOR .IX Header "AUTHOR" Bill Dueber, \f(CW\*(C`\*(C'\fR .SH BUGS .IX Header "BUGS" Please report any bugs or feature requests to \f(CW\*(C`bug\-MARC\-File\-MiJ at rt.cpan.org\*(C'\fR, or through the web interface at . I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. .SH SUPPORT .IX Header "SUPPORT" You can find documentation for this module with the perldoc command. .PP .Vb 1 \& perldoc MARC::File::MiJ .Ve .PP You can also look for information at: .IP \(bu 4 RT: CPAN's request tracker (report bugs here) .Sp .IP \(bu 4 AnnoCPAN: Annotated CPAN documentation .Sp .IP \(bu 4 CPAN Ratings .Sp .IP \(bu 4 Search CPAN .Sp .SH ACKNOWLEDGEMENTS .IX Header "ACKNOWLEDGEMENTS" .SH "LICENSE AND COPYRIGHT" .IX Header "LICENSE AND COPYRIGHT" Copyright 2013 Bill Dueber. .PP This software is free software and may be distributed under the same terms as Perl itself.