enju_ndl 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,9 +6,9 @@ module NdlBooksHelper
6
6
  else
7
7
  manifestation = Manifestation.where(:nbn => nbn).first
8
8
  unless manifestation
9
- link_to '追加', ndl_books_path(:book => {:nbn => nbn}), :method => :post
9
+ link_to t('enju_ndl.add'), ndl_books_path(:book => {:nbn => nbn}), :method => :post
10
10
  else
11
- '登録済み'
11
+ link_to t('enju_ndl.already_exists'), manifestation
12
12
  end
13
13
  end
14
14
  end
@@ -28,7 +28,7 @@
28
28
  <br />
29
29
  <%= book.xpath('./dc:creator').collect(&:content).join(' ') %>
30
30
  <%= book.xpath('./dc:publisher').collect(&:content).join(' ') %>
31
- (<%= Time.zone.parse(book.at('./pubDate').content).year %>,
31
+ (<%= book.at('./dcterms:issued[@xsi:type="dcterms:W3CDTF"]').try(:content) %>,
32
32
  ISBN: <%= book.at('./dc:identifier[@xsi:type="dcndl:ISBN"]').try(:content).to_s %>)
33
33
  </td>
34
34
  </tr>
@@ -3,4 +3,5 @@ en:
3
3
  import_from_ndl_search: Import from NDL Search
4
4
  record_not_found: Record not found.
5
5
  not_available: Not available
6
-
6
+ add: Add
7
+ already_exists: Already exists
@@ -3,3 +3,5 @@ ja:
3
3
  import_from_ndl_search: NDLサーチ検索によるインポート
4
4
  record_not_found: 資料が見つかりません。
5
5
  not_available: 利用不可
6
+ add: 追加
7
+ already_exists: 登録済み
@@ -1,3 +1,3 @@
1
1
  module EnjuNdl
2
- VERSION = "0.0.32"
2
+ VERSION = "0.0.33"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_ndl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-11 00:00:00.000000000 Z
12
+ date: 2012-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails