08 Jun 2021 16:09:57 UTC
- Distribution: marc-moose
- Module version: 1.0.45
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (553 / 0 / 1)
- KwaliteeBus factor: 1
- 80.21% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (52KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionFREDERICD Frédéric Demians
- Reverse dependencies
- CPAN Testers List
- Dependency graph
MARC::Moose::Formater - Base class to format Marc record
A Marc formater is used by any writer to transform a Marc record into something undestandable by human (text readable format) or by machine (standartized format like ISO2709 or MARCXML).
A formater surclass this base class 3 methods to format a set of Marc records.
Prior to formating a set of records one by one calling format method, a writer may need an header which is returned by this method.
A the end of formating a set of records, it may be required by a writer to finished its stream of date by a footer.
Returns something (a string, another object) containing a representation of a MARC record.
# $formater type is Marc::Formater subclass # $record type Marc::Record or any subclass my $formatted_string = $formater->format( $record );
Frédéric Demians <firstname.lastname@example.org>
This software is copyright (c) 2022 by Frédéric Demians.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.