Download the PHP package scriptotek/simplemarcparser without Composer
On this page you can find all versions of the php package scriptotek/simplemarcparser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scriptotek/simplemarcparser
More information about scriptotek/simplemarcparser
Files in scriptotek/simplemarcparser
Package simplemarcparser
Short Description A simple MARC21/XML parser
License MIT
Informations about the package simplemarcparser
SimpleMarcParser
SimpleMarcParser
is currently a minimal MARC21/XML parser for use with QuiteSimpleXMLElement
,
with support for the MARC21 Bibliographic, Authority and Holdings formats.
Note: This project is not actively developed anymore, but I will still process issues. The aim of this project was to produce “simple” JSON representations of MARC21 records. I'm now working on php-marc, a wrapper for File_MARC.
Example:
Transformation/normalization
This parser is aimed at producing machine actionable output, and does some non-reversible transformations to achieve this. Transformation rules expect AACR2-like records, and are tested mainly against the Norwegian version of AACR2 (Norske katalogregler), but might work well with other editions as well.
Examples:
title
is a combination of 300 $a and $b, separated by:
.year
is an integer extracted from 260 $c by extracting the first four digit integer found (c2013
→2013
,2009 [i.e. 2008]
→2009
(this might be a bit rough…))pages
is an integer extracted from 300 $a. The raw value, useful for e.g. non-verbal content, is stored inextent
creators[].name
are transformed from ', ' to ' '
Form and material
Form and material is encoded in the leader and in control fields 006, 007 and 008. Encoding this information in a format that makes sense is a work-in-progress.
Electronic and printed material is currently distinguished using the boolean valued electronic
key.
Printed book:
Electronic book:
All versions of simplemarcparser with dependencies
danmichaelo/quitesimplexmlelement Version ~1.0
nesbot/carbon Version 1.*
illuminate/support Version ~4.1|~5.0
mrjgreen/php-cli Version 1.*