An open API service indexing awesome lists of open source software.

https://github.com/himkt/sist02

simple library to make citation more easily
https://github.com/himkt/sist02

Last synced: 11 months ago
JSON representation

simple library to make citation more easily

Awesome Lists containing this project

README

          

# Sist02

[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![Website](https://img.shields.io/website-up-down-green-red/http/shields.io.svg?maxAge=2592000)](https://rubygems.org/gems/sist02)
[![GitHub issues](https://img.shields.io/github/issues/himkt/sist02.svg)](https://github.com/himkt/sist02/issues)
[![GitHub stars](https://img.shields.io/github/stars/himkt/sist02.svg)](https://github.com/himkt/sist02/stargazers)
[![GitHub release](https://img.shields.io/github/release/qubyte/rubidium.svg?maxAge=2592000)](https://github.com/himkt/sist02)
[![GitHub commits](https://img.shields.io/github/commits-since/SubtitleEdit/subtitleedit/3.4.7.svg?maxAge=2592000)](https://github.com/himkt/sist02)

This gem provides easy way to make SIST-02 formed references.

Sist02::CiNii is based on [caps](https://github.com/Yousack/caps)

## Related works

Command line interface is [here](https://github.com/himkt/sist02-cli).

Web application is [here](https://github.com/himkt/sist02-web) and available on [here](https://sist02-web.herokuapp.com/).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'sist02'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install sist02

## Usage

You get naid in [cinii article](http://ci.nii.ac.jp/) page.

naid is following (please input as String).

![naid description](screen-shot/naid.png)

```ruby
require 'sist02'

# 雑誌記事論文
naid = "110009886645"
p Sist02::CiNii.article_ref(naid)
#=> "粟津 妙華, 高田 雅美, 城 和貴. 活字データの分類を用いた進化計算による近代書籍からのルビ除去. 情報処理学会論文誌. 数理モデル化と応用. 2015, 8(1), p. 72-79."

naid = "40020388722"
p Sist02::CiNii.article_ref(naid)
#=> "近藤 宏. 臨床スポーツ鍼灸研究会(10)下肢のスポーツ障害 : 運動連鎖を応用した実践的アプローチ(1). Training journal. 2015, 37(4), p. 37-41."

# 図書
ncid = "BB18507477"
p Sist02::CiNii.book_ref(ncid)
=> "まちライブラリー, マイクロ・ライブラリーサミット実行委員会, 礒井純充. マイクロ・ライブラリー : 人とまちをつなぐ小さな図書館. 学芸出版社, 2015, 238p."

# 博士論文
naid = "500000587337"
p Sist02::CiNii.dissertations_ref(naid)
=> "今井, 福司. 日本占領期におけるアメリカ学校図書館の導入 : 日米の学校教育実践における学校図書館の位置づけ. 東京大学, 2013, 博士論文."

```

or

![irb description](screen-shot/irb.png)

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

1. Fork it ( https://github.com/[my-github-username]/sist02/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