https://github.com/natlibfi/marc-file-marcxml
MARCXML implementation for MARC records
https://github.com/natlibfi/marc-file-marcxml
Last synced: 9 months ago
JSON representation
MARCXML implementation for MARC records
- Host: GitHub
- URL: https://github.com/natlibfi/marc-file-marcxml
- Owner: NatLibFi
- License: gpl-3.0
- Created: 2014-09-29T08:28:06.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T18:44:03.000Z (almost 5 years ago)
- Last Synced: 2025-03-14T22:22:23.248Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MARCXML implementation for MARC records [](https://metacpan.org/pod/MARC::File::MARCXML) [](https://travis-ci.org/NatLibFi/MARC-File-MARCXML)
## Installation
To build the project run the following command ([Dist::Zilla](https://metacpan.org/pod/Dist::Zilla) must be installed):
```sh
dzil build
```
## Testing
To run tests run the following command:
```sh
dzil test
```
## Usage
### Decoding from string to MARC::Record
```perl
use MARC::File::MARCXML;
my $record = MARC::File::MARCXML->decode($str_xml);
```
### Encoding from MARC::Record to string
```perl
use MARC::File::MARCXML;
my $str = MARC::File::MARCXML->encode($record);
```
## Copyright and licensing
Copyright (c) 2011-2014, 2016 **University Of Helsinki (The National Library Of Finland)**
This project's source code is licensed under the terms of **GNU General Public License Version 3**.