* 書誌情報の取得: `/get?isbn=ISBN,ISBN`
* 収録範囲の取得: `/coverage`
* JSONスキーマの取得: `/schema`
+
+### 国立国会図書館サーチ
+
+#### 参照URI
+
+[国立国会図書館サーチ](https://iss.ndl.go.jp/information/outline/)
+
+#### API仕様
+
+[API仕様の概要](https://iss.ndl.go.jp/information/api/riyou/)
+
+### GoogleBooks
+
+#### 参照URI
+
+[Google Books APIs](https://developers.google.com/books)
+
+#### API仕様
+
+* 書籍の探索: `GET https://www.googleapis.com/books/v1/volumes?q={search terms}`
%th
評価
%td
- - case book_info[:book_rank]
- - when 0 then
- .rank
- ☆ ☆ ☆ ☆ ☆
- - when 1 then
- .rank
- ★ ☆ ☆ ☆ ☆
- - when 2 then
- .rank
- ★ ★ ☆ ☆ ☆
- - when 3 then
- .rank
- ★ ★ ★ ☆ ☆
- - when 4 then
- .rank
- ★ ★ ★ ★ ☆
- - when 5 then
- .rank
- ★ ★ ★ ★ ★
+ #{"★"*book_info[:book_rank]+"☆"*(5-book_info[:book_rank])}
.buttons
%input{ :type => 'button', :class=>"push_button", :onclick =>"location.href='/book_edit/#{book_info[:isbn]}'", :value => '編集' }
%input{ :type => 'button', :class=>"push_button", :onclick =>"location.href='/book_list/fromInfo'", :value => '一覧へ' }
「ISBN探索」を押下すると、該当する本の情報が取得できます。
.message
- ç\94»å±¤ファイルを指定して、「書影Upload」を押下すると、本の書影を登録できます。
+ ç\94»å\83\8fファイルを指定して、「書影Upload」を押下すると、本の書影を登録できます。
- if warning
.warning
%span
書影:
%input{ :name => 'cover_file', :type => 'file', :id => 'cover_file', :accept => 'image/png, image/jpeg', :style => "display:none"}
- %input{ :type => 'text', :class => 'input_text', :id => 'file_name', :value => ''}
+p %input{ :type => 'text', :class => 'input_text', :id => 'file_name', :value => ''}
%input{ :type => 'submit', :class => 'side_button', :value => '書影Upload', :formaction => '/book_upload_cover' }
:javascript
var file = document.getElementById( 'cover_file' );