Sha256: c241fcdff8e150a8ac58168c2a0dc3efe0f65cc0aafe5368ee8c4458540ffb6a

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

[![Build Status](https://travis-ci.org/adiwg/mdCodes.svg)](https://travis-ci.org/adiwg/mdCodes)
[![Gem Version](https://badge.fury.io/rb/adiwg-mdcodes.svg)](http://badge.fury.io/rb/adiwg-mdcodes)

# Mdcodes

adiwg-mdcodes provides code lists in hash or JSON formats for loading of mdEditor and other metadata
tools that use the adiwg-json-schema.  The code lists include all ISO 19115-2 and ISO 19115-1 codes plus
supplemental codes added NGDC and ADIwg.

## Installation

Add this line to your application's Gemfile:

    gem 'adiwg-mdcodes'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install adiwg-mdcodes


## Methods

### getYamlPath
> returns the path to the YAML file of code lists.

### getCodeLists( returnFormat )
> returns all code lists with all code list data
> returnFormat = \[__hash__ | json] (string)

### getCodeList( codeListName, returnFormat )
> returns a single code list with all code list data
> codeListName = name of code list to return (string)
> returnFormat = \[ __hash__ | json ] (string)

### getCodeNames( returnFormat )
> returns all code lists with only the code list item names
> returnFormat = \[__hash__ | json] (string)

### getCodeName( codeListName, returnFormat )
> returns a single code list with only the code list item names
> codeListName = name of code list to return (string)
> returnFormat = \[__hash__ | json] (string)


## Contributing

1. Fork it (https://github.com/adiwg/mdCodes/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adiwg-mdcodes-0.2.1 README.md