Git Product home page Git Product logo

onix's Introduction

ONIX

Build Status

ONIX for Books is the international standard for representing and communicating book industry product information in electronic form. It consists of an XML DTD and schema.

This ONIX library provides a thin wrapper to the ONIX for Books XML standard. It simplifies both the reading and writing of ONIX files in your Ruby applications.

Limitations

This library supports ONIX 2.1 files only (all revisions).

ONIX::Reader only handles the reference tag versions of ONIX 2.1. Use ONIX::Normaliser to convert any short tag files to reference tags.

ONIX::Writer only generates reference tag ONIX files.

DTD Loading

To correctly interpret named entities when reading an ONIX 2.1 file, your system XML catalog must include the ONIX DTD. For more information, consult the instructions at http://github.com/yob/onix-dtd

Installation

gem install onix

Usage

See files in the examples directory to get started quickly. For further reading view the comments to the following classes:

  • ONIX::Reader - For reading ONIX files
  • ONIX::Writer - For writing ONIX files
  • ONIX::Normaliser - For normalising ONIX files before reading them. Fixes encoding issues, etc
  • ONIX::Lists - For building hashes of code lists from the ONIX spec

Licensing

This library is distributed under the terms of the MIT License. See the included file for more detail.

Contributing

If you find a bug or would like to contribute functionality, please create an issue on GitHub or fork the project and send a pull request.

Special Thanks

This code is derived from the work of James Healy and Joseph Pearson

onix's People

Contributors

joseph avatar mfvargo avatar milkfarm avatar yob avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.