enju_biblio 0.1.0.pre56 → 0.1.0.pre57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/agent_import_files_controller.rb +1 -1
  3. data/app/controllers/agent_import_results_controller.rb +30 -6
  4. data/app/controllers/agent_relationship_types_controller.rb +74 -4
  5. data/app/controllers/agent_relationships_controller.rb +92 -10
  6. data/app/controllers/agent_types_controller.rb +74 -3
  7. data/app/controllers/carrier_types_controller.rb +1 -1
  8. data/app/controllers/content_types_controller.rb +74 -4
  9. data/app/controllers/countries_controller.rb +66 -4
  10. data/app/controllers/create_types_controller.rb +74 -3
  11. data/app/controllers/extents_controller.rb +74 -4
  12. data/app/controllers/form_of_works_controller.rb +74 -4
  13. data/app/controllers/frequencies_controller.rb +74 -4
  14. data/app/controllers/identifier_types_controller.rb +4 -5
  15. data/app/controllers/import_requests_controller.rb +1 -1
  16. data/app/controllers/languages_controller.rb +66 -4
  17. data/app/controllers/licenses_controller.rb +74 -3
  18. data/app/controllers/manifestation_relationship_types_controller.rb +74 -3
  19. data/app/controllers/manifestation_relationships_controller.rb +92 -9
  20. data/app/controllers/medium_of_performances_controller.rb +74 -3
  21. data/app/controllers/picture_files_controller.rb +34 -10
  22. data/app/controllers/produce_types_controller.rb +74 -3
  23. data/app/controllers/realize_types_controller.rb +74 -3
  24. data/app/controllers/resource_import_files_controller.rb +2 -1
  25. data/app/controllers/resource_import_results_controller.rb +31 -11
  26. data/app/models/agent_import_file.rb +1 -1
  27. data/app/models/agent_import_result.rb +0 -2
  28. data/app/models/carrier_type.rb +1 -1
  29. data/app/models/identifier.rb +5 -0
  30. data/app/models/item.rb +1 -1
  31. data/app/models/manifestation.rb +13 -8
  32. data/app/models/resource_import_file.rb +73 -79
  33. data/app/views/agent_import_files/index.html.erb +1 -0
  34. data/app/views/agent_relationship_types/index.html.erb +5 -4
  35. data/app/views/agent_types/index.html.erb +5 -4
  36. data/app/views/carrier_types/index.html.erb +2 -1
  37. data/app/views/content_types/index.html.erb +1 -0
  38. data/app/views/countries/show.html.erb +5 -0
  39. data/app/views/create_types/index.html.erb +5 -4
  40. data/app/views/extents/index.html.erb +2 -1
  41. data/app/views/form_of_works/index.html.erb +2 -1
  42. data/app/views/frequencies/index.html.erb +2 -1
  43. data/app/views/identifier_types/index.html.erb +12 -5
  44. data/app/views/import_requests/index.html.erb +1 -0
  45. data/app/views/items/show.html.erb +3 -7
  46. data/app/views/languages/_form.html.erb +19 -4
  47. data/app/views/languages/index.html.erb +6 -5
  48. data/app/views/languages/show.html.erb +19 -4
  49. data/app/views/layouts/manifestations.html.erb +2 -1
  50. data/app/views/licenses/index.html.erb +2 -1
  51. data/app/views/manifestation_relationship_types/index.html.erb +5 -4
  52. data/app/views/manifestations/_call_number.html.erb +1 -1
  53. data/app/views/manifestations/_edit_detail.html.erb +4 -1
  54. data/app/views/manifestations/_form.html.erb +5 -5
  55. data/app/views/manifestations/_show_detail_librarian.html.erb +8 -3
  56. data/app/views/manifestations/_show_detail_user.html.erb +8 -3
  57. data/app/views/medium_of_performances/index.html.erb +2 -1
  58. data/app/views/notifier/manifestation_info.en.text.erb +1 -1
  59. data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
  60. data/app/views/picture_files/_index.html.erb +1 -0
  61. data/app/views/picture_files/_index_agent.html.erb +1 -0
  62. data/app/views/picture_files/_index_manifestation.html.erb +1 -0
  63. data/app/views/picture_files/show.html.erb +15 -7
  64. data/app/views/produce_types/index.html.erb +5 -4
  65. data/app/views/realize_types/index.html.erb +5 -4
  66. data/app/views/resource_import_files/index.html.erb +1 -0
  67. data/app/views/series_statements/_index.html.erb +1 -0
  68. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -0
  69. data/config/locales/translation_en.yml +70 -1
  70. data/config/locales/translation_ja.yml +77 -8
  71. data/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb +5 -0
  72. data/lib/enju_biblio/biblio_helper.rb +13 -0
  73. data/lib/enju_biblio/engine.rb +0 -2
  74. data/lib/enju_biblio/version.rb +1 -1
  75. data/lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml +1 -1
  76. data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +24 -3
  77. data/lib/tasks/enju_biblio_tasks.rake +2 -0
  78. data/lib/tasks/identifier_type.rb +12 -0
  79. data/lib/tasks/item.rb +1 -1
  80. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml +433 -0
  81. data/spec/controllers/agent_import_files_controller_spec.rb +35 -35
  82. data/spec/controllers/agent_import_results_controller_spec.rb +11 -11
  83. data/spec/controllers/agent_relationship_types_controller_spec.rb +51 -51
  84. data/spec/controllers/agent_relationships_controller_spec.rb +53 -53
  85. data/spec/controllers/agent_types_controller_spec.rb +15 -15
  86. data/spec/controllers/agents_controller_spec.rb +96 -96
  87. data/spec/controllers/carrier_types_controller_spec.rb +15 -15
  88. data/spec/controllers/content_types_controller_spec.rb +15 -15
  89. data/spec/controllers/countries_controller_spec.rb +25 -25
  90. data/spec/controllers/create_types_controller_spec.rb +15 -15
  91. data/spec/controllers/creates_controller_spec.rb +50 -50
  92. data/spec/controllers/donates_controller_spec.rb +49 -49
  93. data/spec/controllers/extents_controller_spec.rb +15 -15
  94. data/spec/controllers/form_of_works_controller_spec.rb +15 -15
  95. data/spec/controllers/frequencies_controller_spec.rb +6 -6
  96. data/spec/controllers/identifier_types_controller_spec.rb +15 -15
  97. data/spec/controllers/import_requests_controller_spec.rb +50 -50
  98. data/spec/controllers/items_controller_spec.rb +72 -72
  99. data/spec/controllers/languages_controller_spec.rb +18 -18
  100. data/spec/controllers/licenses_controller_spec.rb +15 -15
  101. data/spec/controllers/manifestation_relationship_types_controller_spec.rb +51 -51
  102. data/spec/controllers/manifestation_relationships_controller_spec.rb +53 -53
  103. data/spec/controllers/manifestations_controller_spec.rb +108 -108
  104. data/spec/controllers/medium_of_performances_controller_spec.rb +15 -15
  105. data/spec/controllers/owns_controller_spec.rb +52 -52
  106. data/spec/controllers/picture_files_controller_spec.rb +52 -52
  107. data/spec/controllers/produce_types_controller_spec.rb +15 -15
  108. data/spec/controllers/produces_controller_spec.rb +50 -50
  109. data/spec/controllers/realize_types_controller_spec.rb +15 -15
  110. data/spec/controllers/realizes_controller_spec.rb +51 -51
  111. data/spec/controllers/resource_export_files_controller_spec.rb +38 -38
  112. data/spec/controllers/resource_import_files_controller_spec.rb +38 -38
  113. data/spec/controllers/resource_import_results_controller_spec.rb +15 -15
  114. data/spec/controllers/series_statements_controller_spec.rb +54 -54
  115. data/spec/dummy/db/development.sqlite3 +0 -0
  116. data/spec/dummy/db/schema.rb +2 -3
  117. data/spec/dummy/db/test.sqlite3 +0 -0
  118. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -19
  119. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -19
  120. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-53863-1jz1wlr.txt +147 -0
  121. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-55246-1rvhs1s.txt +147 -0
  122. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-60268-1psjqua.txt +147 -0
  123. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-60996-1cy28m2.txt +147 -0
  124. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-67507-19qjhj3.txt +147 -0
  125. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-69234-1cllrec.txt +147 -0
  126. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-76875-1os6joy.txt +147 -0
  127. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-1148-136brhb.txt +147 -0
  128. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-473-1c326dm.txt +147 -0
  129. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-93795-1x882ik.txt +147 -0
  130. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-94274-1xr9d9e.txt +147 -0
  131. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-94643-1fjcept.txt +147 -0
  132. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-97947-mfqh5b.txt +147 -0
  133. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-98488-126cvb4.txt +147 -0
  134. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-98849-1lg47mm.txt +147 -0
  135. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  136. data/spec/dummy/solr/test/data/index/segments_5ur +0 -0
  137. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007580 +0 -0
  138. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007581 +0 -0
  139. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007582 +0 -0
  140. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007583 +0 -0
  141. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007584 +0 -0
  142. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007585 +0 -0
  143. data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +0 -0
  144. data/spec/dummy/tmp/cache/stdout +2554 -0
  145. data/spec/dummy/tmp/pids/redis-test.pid +1 -1
  146. data/spec/fixtures/agent_import_results.yml +0 -3
  147. data/spec/fixtures/carrier_types.yml +16 -16
  148. data/spec/fixtures/content_types.yml +78 -29
  149. data/spec/fixtures/frequencies.yml +32 -62
  150. data/spec/fixtures/manifestations.yml +1 -1
  151. data/spec/models/agent_import_result_spec.rb +0 -2
  152. data/spec/models/manifestation_spec.rb +1 -1
  153. data/spec/models/resource_import_file_spec.rb +30 -3
  154. data/spec/views/manifestations/show.html.erb_spec.rb +1 -1
  155. metadata +68 -103
  156. data/app/views/picture_files/_index_event.html.erb +0 -53
  157. data/app/views/picture_files/_index_shelf.html.erb +0 -53
  158. data/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
  159. data/spec/dummy/solr/test/data/index/_20i.fdt +0 -0
  160. data/spec/dummy/solr/test/data/index/_20i.fdx +0 -0
  161. data/spec/dummy/solr/test/data/index/_20i.fnm +0 -0
  162. data/spec/dummy/solr/test/data/index/_20i.nvd +0 -0
  163. data/spec/dummy/solr/test/data/index/_20i.nvm +0 -0
  164. data/spec/dummy/solr/test/data/index/_20i.si +0 -0
  165. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.doc +0 -0
  166. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.pos +0 -0
  167. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.tim +0 -0
  168. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.tip +0 -0
  169. data/spec/dummy/solr/test/data/index/_20j.fdt +0 -0
  170. data/spec/dummy/solr/test/data/index/_20j.fdx +0 -0
  171. data/spec/dummy/solr/test/data/index/_20j.fnm +0 -0
  172. data/spec/dummy/solr/test/data/index/_20j.nvd +0 -0
  173. data/spec/dummy/solr/test/data/index/_20j.nvm +0 -0
  174. data/spec/dummy/solr/test/data/index/_20j.si +0 -0
  175. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.doc +0 -0
  176. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.pos +0 -0
  177. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.tim +0 -0
  178. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.tip +0 -0
  179. data/spec/dummy/solr/test/data/index/_20k.fdt +0 -0
  180. data/spec/dummy/solr/test/data/index/_20k.fdx +0 -0
  181. data/spec/dummy/solr/test/data/index/_20k.fnm +0 -0
  182. data/spec/dummy/solr/test/data/index/_20k.nvd +0 -0
  183. data/spec/dummy/solr/test/data/index/_20k.nvm +0 -0
  184. data/spec/dummy/solr/test/data/index/_20k.si +0 -0
  185. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.doc +0 -0
  186. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.pos +0 -0
  187. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.tim +0 -0
  188. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.tip +0 -0
  189. data/spec/dummy/solr/test/data/index/segments_2uc +0 -0
  190. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003680 +0 -0
  191. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003681 +0 -0
  192. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003682 +0 -0
@@ -1 +1 @@
1
- 32844
1
+ 14408
@@ -4,14 +4,12 @@ one:
4
4
  id: 1
5
5
  agent_import_file_id: 1
6
6
  agent_id: 1
7
- user_id: 1
8
7
  body: MyText
9
8
 
10
9
  two:
11
10
  id: 2
12
11
  agent_import_file_id: 1
13
12
  agent_id: 1
14
- user_id: 1
15
13
  body: MyText
16
14
 
17
15
  # == Schema Information
@@ -21,7 +19,6 @@ two:
21
19
  # id :integer not null, primary key
22
20
  # agent_import_file_id :integer
23
21
  # agent_id :integer
24
- # user_id :integer
25
22
  # body :text
26
23
  # created_at :datetime not null
27
24
  # updated_at :datetime not null
@@ -1,17 +1,7 @@
1
1
  ---
2
- carrier_type_00004:
3
- name: file
4
- display_name: file
5
- updated_at: 2007-12-24 01:30:50.637433 +09:00
6
- id: 4
7
- note: !binary |
8
- 44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
9
-
10
- created_at: 2007-12-24 01:30:50.637433 +09:00
11
- position: 4
12
2
  carrier_type_00001:
13
- name: print
14
- display_name: print
3
+ name: volume
4
+ display_name: Volume
15
5
  updated_at: 2007-11-20 16:04:29.853828 +09:00
16
6
  id: 1
17
7
  note: !binary |
@@ -20,21 +10,31 @@ carrier_type_00001:
20
10
  created_at: 2007-11-20 15:47:03.641530 +09:00
21
11
  position: 1
22
12
  carrier_type_00002:
23
- name: cd
24
- display_name: CD
13
+ name: audio_disc
14
+ display_name: Audio disc
25
15
  updated_at: 2007-12-19 01:45:26.040674 +09:00
26
16
  id: 2
27
17
  note: "\xE9\x9F\xB3\xE6\xA5\xBDCD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
28
18
  created_at: 2007-12-19 01:45:26.040674 +09:00
29
19
  position: 2
30
20
  carrier_type_00003:
31
- name: dvd
32
- display_name: DVD
21
+ name: videodisc
22
+ display_name: Video disc
33
23
  updated_at: 2007-12-23 04:24:23.151410 +09:00
34
24
  id: 3
35
25
  note: "DVD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
36
26
  created_at: 2007-12-23 04:24:23.151410 +09:00
37
27
  position: 3
28
+ carrier_type_00004:
29
+ name: online_resource
30
+ display_name: online_resource
31
+ updated_at: 2007-12-24 01:30:50.637433 +09:00
32
+ id: 4
33
+ note: !binary |
34
+ 44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
35
+
36
+ created_at: 2007-12-24 01:30:50.637433 +09:00
37
+ position: 4
38
38
 
39
39
  # == Schema Information
40
40
  #
@@ -1,36 +1,85 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
1
+ ---
2
+ content_type_00001:
4
3
  id: 1
5
4
  name: text
6
- display_name: text
7
- note: MyText
5
+ display_name: "en: text\r\n\
6
+ ja: 文字"
7
+ note:
8
8
  position: 1
9
-
10
- two:
9
+ content_type_00002:
11
10
  id: 2
12
- name: Cartographic Dataset
13
- display_name: Cartographic Dataset
14
- note: MyText
11
+ name: performed_music
12
+ display_name: "en: Performed music\r\n\
13
+ ja: 音楽"
14
+ note: 曲の演奏など
15
15
  position: 2
16
-
17
- three:
16
+ content_type_00003:
18
17
  id: 3
19
- name: Cartographic Image
20
- display_name: Cartographic Image
21
- note: MyText
18
+ name: two_dimensional_moving_image
19
+ display_name: "en: Two-dimensional moving image\r\n\
20
+ ja: 動画"
21
+ note:
22
22
  position: 3
23
-
24
- # == Schema Information
25
- #
26
- # Table name: content_types
27
- #
28
- # id :integer not null, primary key
29
- # name :string(255) not null
30
- # display_name :text
31
- # note :text
32
- # position :integer
33
- # created_at :datetime not null
34
- # updated_at :datetime not null
35
- #
36
-
23
+ content_type_00004:
24
+ id: 4
25
+ name: tactile_text
26
+ display_name: "en: Tactile text\r\n\
27
+ ja: 点字など"
28
+ note: 触ることのできる文字
29
+ position: 4
30
+ content_type_00005:
31
+ id: 5
32
+ name: still_image
33
+ display_name: "en: Still image\r\n\
34
+ ja: 画像"
35
+ note: 静止画像
36
+ position: 5
37
+ content_type_00006:
38
+ id: 6
39
+ name: cartographic_image
40
+ display_name: "en: Cartographic image\r\n\
41
+ ja: 地図"
42
+ note:
43
+ position: 6
44
+ content_type_00007:
45
+ id: 7
46
+ name: spoken_word
47
+ display_name: "en: Spoken word\r\n\
48
+ ja: 音声"
49
+ note: 読み上げ音声など
50
+ position: 7
51
+ content_type_00008:
52
+ id: 8
53
+ name: sounds
54
+ display_name: "en: Sounds\r\n\
55
+ ja: 音"
56
+ note: 波音など
57
+ position: 8
58
+ content_type_00009:
59
+ id: 9
60
+ name: notated_music
61
+ display_name: "en: Notated music\r\n\
62
+ ja: 楽譜"
63
+ note:
64
+ position: 9
65
+ content_type_00010:
66
+ id: 10
67
+ name: three_dimensional_moving_image
68
+ display_name: "en: Three-dimensional moving image\r\n\
69
+ ja: 3D動画"
70
+ note:
71
+ position: 10
72
+ content_type_00011:
73
+ id: 11
74
+ name: other
75
+ display_name: "en: Other\r\n\
76
+ ja: その他"
77
+ note: LCMARCに由来
78
+ position: 11
79
+ content_type_00012:
80
+ id: 12
81
+ name: unspecified
82
+ display_name: "en: Unspecified\r\n\
83
+ ja: 不明"
84
+ note: LCMARCに由来
85
+ position: 12
@@ -1,85 +1,55 @@
1
1
  ---
2
- frequency_00006:
3
- name: bimonthly
4
- display_name: !binary |
5
- 5pes5YiK
6
-
7
- updated_at: 2007-12-31 21:40:49.776669 +09:00
8
- id: 6
9
- created_at: 2007-12-31 21:40:49.776669 +09:00
10
- position: 6
11
- frequency_00007:
12
- name: yearly
13
- display_name: !binary |
14
- 5bm05YiK
15
-
16
- updated_at: 2007-12-31 21:41:03.004736 +09:00
17
- id: 7
18
- created_at: 2007-12-31 21:41:03.004736 +09:00
19
- position: 7
20
2
  frequency_00001:
21
- name: not refularly
22
- display_name: !binary |
23
- 5pel5YiK
24
-
25
- updated_at: 2007-12-31 21:39:45.737531 +09:00
3
+ name: unknown
4
+ display_name: "en: unknown\r\n\
5
+ ja: 不明・不定期刊"
26
6
  id: 1
27
- created_at: 2007-12-31 21:39:45.737531 +09:00
28
7
  position: 1
29
8
  frequency_00002:
30
9
  name: daily
31
- display_name: !binary |
32
- 6YCx5YiK
33
-
34
- updated_at: 2007-12-31 21:39:54.980787 +09:00
10
+ display_name: "en: daily\r\n\
11
+ ja: 日刊"
35
12
  id: 2
36
- created_at: 2007-12-31 21:39:54.980787 +09:00
37
13
  position: 2
38
14
  frequency_00003:
39
15
  name: weekly
40
- display_name: !binary |
41
- 6ZqU6YCx5YiK
42
-
43
- updated_at: 2007-12-31 21:40:11.112040 +09:00
16
+ display_name: "en: weekly\r\n\
17
+ ja: 週刊"
44
18
  id: 3
45
- created_at: 2007-12-31 21:40:11.112040 +09:00
46
19
  position: 3
47
20
  frequency_00004:
48
21
  name: biweekly
49
- display_name: !binary |
50
- 5pyI5YiK
51
-
52
- updated_at: 2007-12-31 21:40:18.803661 +09:00
22
+ display_name: "en: biweekly\r\n\
23
+ ja: 隔週刊"
53
24
  id: 4
54
- created_at: 2007-12-31 21:40:18.803661 +09:00
55
25
  position: 4
56
26
  frequency_00005:
57
27
  name: monthly
58
- display_name: !binary |
59
- 6ZqU5pyI5YiK
60
-
61
- updated_at: 2007-12-31 21:40:31.247081 +09:00
28
+ display_name: "en: monthly\r\n\
29
+ ja: 月刊"
62
30
  id: 5
63
- created_at: 2007-12-31 21:40:31.247081 +09:00
64
31
  position: 5
65
32
  frequency_00006:
66
- name: other
67
- display_name: Other
68
- updated_at: 2007-12-31 21:40:31.247081 +09:00
33
+ name: bimonthly
34
+ display_name: "en: bimonthly\r\n\
35
+ ja: 隔月刊"
69
36
  id: 6
70
- created_at: 2007-12-31 21:40:31.247081 +09:00
71
37
  position: 6
72
-
73
- # == Schema Information
74
- #
75
- # Table name: frequencies
76
- #
77
- # id :integer not null, primary key
78
- # name :string(255) not null
79
- # display_name :text
80
- # note :text
81
- # position :integer
82
- # created_at :datetime not null
83
- # updated_at :datetime not null
84
- #
85
-
38
+ frequency_00007:
39
+ name: quarterly
40
+ display_name: "en: quarterly\r\n\
41
+ ja: 季刊"
42
+ id: 7
43
+ position: 7
44
+ frequency_00008:
45
+ name: yearly
46
+ display_name: "en: yearly\r\n\
47
+ ja: 年刊"
48
+ id: 8
49
+ position: 8
50
+ frequency_00009:
51
+ name: biyearly
52
+ display_name: "en: biyearly\r\n\
53
+ ja: 隔年刊"
54
+ id: 9
55
+ position: 9
@@ -1875,8 +1875,8 @@ manifestation_00216:
1875
1875
  # attachment_meta :text
1876
1876
  # month_of_publication :integer
1877
1877
  # fulltext_content :boolean
1878
- # doi :string(255)
1879
1878
  # periodical :boolean
1880
1879
  # statement_of_responsibility :text
1881
1880
  # publication_place :text
1881
+ # extent_of_text :text
1882
1882
  #
@@ -13,9 +13,7 @@ end
13
13
  # id :integer not null, primary key
14
14
  # agent_import_file_id :integer
15
15
  # agent_id :integer
16
- # user_id :integer
17
16
  # body :text
18
17
  # created_at :datetime not null
19
18
  # updated_at :datetime not null
20
19
  #
21
-
@@ -290,8 +290,8 @@ end
290
290
  # attachment_meta :text
291
291
  # month_of_publication :integer
292
292
  # fulltext_content :boolean
293
- # doi :string(255)
294
293
  # periodical :boolean
295
294
  # statement_of_responsibility :text
296
295
  # publication_place :text
296
+ # extent_of_text :text
297
297
  #
@@ -32,8 +32,8 @@ describe ResourceImportFile do
32
32
  manifestation_101.series_statements.count.should eq 1
33
33
  manifestation_101.series_statements.first.original_title.should eq '主シリーズ'
34
34
  manifestation_101.series_statements.first.title_transcription.should eq 'しゅしりーず'
35
- manifestation_101.series_statements.first.title_subseries.should eq '副シリーズ 1'
36
- manifestation_101.series_statements.first.title_subseries_transcription.should eq 'ふくしりーず いち'
35
+ manifestation_101.series_statements.first.title_subseries.should eq '副シリーズ'
36
+ manifestation_101.series_statements.first.title_subseries_transcription.should eq 'ふくしりーず'
37
37
 
38
38
  item_10101 = Item.where(item_identifier: '10101').first
39
39
  item_10101.manifestation.creators.size.should eq 2
@@ -53,10 +53,23 @@ describe ResourceImportFile do
53
53
  item_10101.binded_at.should eq Time.zone.parse('2014-08-16')
54
54
  item_10101.manifestation.publication_place.should eq '東京'
55
55
  item_10101.include_supplements.should eq true
56
+ item_10101.note.should eq 'カバーなし'
57
+ item_10101.url.should eq 'http://example.jp/item/1'
58
+ item_10101.manifestation.carrier_type.name.should eq 'volume'
59
+ item_10101.manifestation.manifestation_content_type.name.should eq 'text'
60
+ item_10101.manifestation.frequency.name.should eq 'monthly'
61
+ item_10101.manifestation.extent_of_text.should eq 'xv, 213 pages'
56
62
 
57
63
  item_10102 = Item.where(item_identifier: '10102').first
58
64
  item_10102.manifestation.date_of_publication.should eq Time.zone.parse('2001-01-01')
59
65
  item_10102.manifestation.language.name.should eq 'Japanese'
66
+ item_10102.manifestation.height.should eq 257
67
+ item_10102.manifestation.width.should eq 182
68
+ item_10102.manifestation.depth.should eq 12
69
+ item_10102.manifestation.start_page.should eq 1
70
+ item_10102.manifestation.end_page.should eq 200
71
+ item_10102.manifestation.series_statements.first.creator_string.should eq 'シリーズの著者'
72
+ item_10102.manifestation.series_statements.first.volume_number_string.should eq 'シリーズ1号'
60
73
 
61
74
  Manifestation.where(:manifestation_identifier => '103').first.original_title.should eq 'ダブル"クォート"を含む資料'
62
75
  item = Item.where(item_identifier: '11111').first
@@ -74,6 +87,20 @@ describe ResourceImportFile do
74
87
  item_10104.budget_type.name.should eq 'Public fund'
75
88
  item_10104.bookstore.should be_nil
76
89
  item_10104.call_number.should eq '007|A'
90
+ item_10104.manifestation.carrier_type.name.should eq 'online_resource'
91
+ item_10104.manifestation.manifestation_content_type.name.should eq 'still_image'
92
+ item_10104.manifestation.frequency.name.should eq 'unknown'
93
+ item_10104.manifestation.volume_number_string.should eq '第3巻'
94
+ item_10104.manifestation.volume_number.should eq 3
95
+ item_10104.manifestation.issue_number_string.should eq '第10号'
96
+ item_10104.manifestation.issue_number.should eq 10
97
+ item_10104.manifestation.edition_string.should eq '初版'
98
+ item_10104.manifestation.edition.should eq 1
99
+ item_10104.manifestation.serial_number.should eq 120
100
+ item_10104.manifestation.identifier_contents(:doi).should eq ['example/2014.08.18']
101
+ item_10104.manifestation.height.should be_nil
102
+ item_10104.manifestation.width.should be_nil
103
+ item_10104.manifestation.depth.should be_nil
77
104
 
78
105
  manifestation_104 = Manifestation.where(:manifestation_identifier => '104').first
79
106
  manifestation_104.identifier_contents(:isbn).should eq ['9784797327038']
@@ -88,7 +115,7 @@ describe ResourceImportFile do
88
115
  @file.error_message.should eq "The follwing column(s) were ignored: invalid"
89
116
  end
90
117
 
91
- it "should send message when import is completed" do
118
+ it "should send message when import is completed", vcr: true do
92
119
  old_message_count = Message.count
93
120
  @file.import_start
94
121
  Message.count.should eq old_message_count + 1
@@ -4,7 +4,7 @@ describe "manifestations/show" do
4
4
  fixtures :all
5
5
 
6
6
  before(:each) do
7
- @manifestation = assign(:manifestation, FactoryGirl.create(:manifestation))
7
+ assign(:manifestation, FactoryGirl.create(:manifestation))
8
8
  @ability = Object.new
9
9
  @ability.extend(CanCan::Ability)
10
10
  controller.stub(:current_ability) { @ability }