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
- Host: GitHub
- URL: https://github.com/himkt/sist02
- Owner: himkt
- Created: 2015-04-15T00:52:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2021-05-01T10:59:03.000Z (about 5 years ago)
- Last Synced: 2025-07-28T15:45:30.919Z (11 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/sist02
- Size: 108 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sist02
[](LICENSE)
[](https://rubygems.org/gems/sist02)
[](https://github.com/himkt/sist02/issues)
[](https://github.com/himkt/sist02/stargazers)
[](https://github.com/himkt/sist02)
[](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).

```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

## 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