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.
- checksums.yaml +4 -4
- data/app/controllers/agent_import_files_controller.rb +1 -1
- data/app/controllers/agent_import_results_controller.rb +30 -6
- data/app/controllers/agent_relationship_types_controller.rb +74 -4
- data/app/controllers/agent_relationships_controller.rb +92 -10
- data/app/controllers/agent_types_controller.rb +74 -3
- data/app/controllers/carrier_types_controller.rb +1 -1
- data/app/controllers/content_types_controller.rb +74 -4
- data/app/controllers/countries_controller.rb +66 -4
- data/app/controllers/create_types_controller.rb +74 -3
- data/app/controllers/extents_controller.rb +74 -4
- data/app/controllers/form_of_works_controller.rb +74 -4
- data/app/controllers/frequencies_controller.rb +74 -4
- data/app/controllers/identifier_types_controller.rb +4 -5
- data/app/controllers/import_requests_controller.rb +1 -1
- data/app/controllers/languages_controller.rb +66 -4
- data/app/controllers/licenses_controller.rb +74 -3
- data/app/controllers/manifestation_relationship_types_controller.rb +74 -3
- data/app/controllers/manifestation_relationships_controller.rb +92 -9
- data/app/controllers/medium_of_performances_controller.rb +74 -3
- data/app/controllers/picture_files_controller.rb +34 -10
- data/app/controllers/produce_types_controller.rb +74 -3
- data/app/controllers/realize_types_controller.rb +74 -3
- data/app/controllers/resource_import_files_controller.rb +2 -1
- data/app/controllers/resource_import_results_controller.rb +31 -11
- data/app/models/agent_import_file.rb +1 -1
- data/app/models/agent_import_result.rb +0 -2
- data/app/models/carrier_type.rb +1 -1
- data/app/models/identifier.rb +5 -0
- data/app/models/item.rb +1 -1
- data/app/models/manifestation.rb +13 -8
- data/app/models/resource_import_file.rb +73 -79
- data/app/views/agent_import_files/index.html.erb +1 -0
- data/app/views/agent_relationship_types/index.html.erb +5 -4
- data/app/views/agent_types/index.html.erb +5 -4
- data/app/views/carrier_types/index.html.erb +2 -1
- data/app/views/content_types/index.html.erb +1 -0
- data/app/views/countries/show.html.erb +5 -0
- data/app/views/create_types/index.html.erb +5 -4
- data/app/views/extents/index.html.erb +2 -1
- data/app/views/form_of_works/index.html.erb +2 -1
- data/app/views/frequencies/index.html.erb +2 -1
- data/app/views/identifier_types/index.html.erb +12 -5
- data/app/views/import_requests/index.html.erb +1 -0
- data/app/views/items/show.html.erb +3 -7
- data/app/views/languages/_form.html.erb +19 -4
- data/app/views/languages/index.html.erb +6 -5
- data/app/views/languages/show.html.erb +19 -4
- data/app/views/layouts/manifestations.html.erb +2 -1
- data/app/views/licenses/index.html.erb +2 -1
- data/app/views/manifestation_relationship_types/index.html.erb +5 -4
- data/app/views/manifestations/_call_number.html.erb +1 -1
- data/app/views/manifestations/_edit_detail.html.erb +4 -1
- data/app/views/manifestations/_form.html.erb +5 -5
- data/app/views/manifestations/_show_detail_librarian.html.erb +8 -3
- data/app/views/manifestations/_show_detail_user.html.erb +8 -3
- data/app/views/medium_of_performances/index.html.erb +2 -1
- data/app/views/notifier/manifestation_info.en.text.erb +1 -1
- data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
- data/app/views/picture_files/_index.html.erb +1 -0
- data/app/views/picture_files/_index_agent.html.erb +1 -0
- data/app/views/picture_files/_index_manifestation.html.erb +1 -0
- data/app/views/picture_files/show.html.erb +15 -7
- data/app/views/produce_types/index.html.erb +5 -4
- data/app/views/realize_types/index.html.erb +5 -4
- data/app/views/resource_import_files/index.html.erb +1 -0
- data/app/views/series_statements/_index.html.erb +1 -0
- data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -0
- data/config/locales/translation_en.yml +70 -1
- data/config/locales/translation_ja.yml +77 -8
- data/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb +5 -0
- data/lib/enju_biblio/biblio_helper.rb +13 -0
- data/lib/enju_biblio/engine.rb +0 -2
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml +1 -1
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +24 -3
- data/lib/tasks/enju_biblio_tasks.rake +2 -0
- data/lib/tasks/identifier_type.rb +12 -0
- data/lib/tasks/item.rb +1 -1
- 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
- data/spec/controllers/agent_import_files_controller_spec.rb +35 -35
- data/spec/controllers/agent_import_results_controller_spec.rb +11 -11
- data/spec/controllers/agent_relationship_types_controller_spec.rb +51 -51
- data/spec/controllers/agent_relationships_controller_spec.rb +53 -53
- data/spec/controllers/agent_types_controller_spec.rb +15 -15
- data/spec/controllers/agents_controller_spec.rb +96 -96
- data/spec/controllers/carrier_types_controller_spec.rb +15 -15
- data/spec/controllers/content_types_controller_spec.rb +15 -15
- data/spec/controllers/countries_controller_spec.rb +25 -25
- data/spec/controllers/create_types_controller_spec.rb +15 -15
- data/spec/controllers/creates_controller_spec.rb +50 -50
- data/spec/controllers/donates_controller_spec.rb +49 -49
- data/spec/controllers/extents_controller_spec.rb +15 -15
- data/spec/controllers/form_of_works_controller_spec.rb +15 -15
- data/spec/controllers/frequencies_controller_spec.rb +6 -6
- data/spec/controllers/identifier_types_controller_spec.rb +15 -15
- data/spec/controllers/import_requests_controller_spec.rb +50 -50
- data/spec/controllers/items_controller_spec.rb +72 -72
- data/spec/controllers/languages_controller_spec.rb +18 -18
- data/spec/controllers/licenses_controller_spec.rb +15 -15
- data/spec/controllers/manifestation_relationship_types_controller_spec.rb +51 -51
- data/spec/controllers/manifestation_relationships_controller_spec.rb +53 -53
- data/spec/controllers/manifestations_controller_spec.rb +108 -108
- data/spec/controllers/medium_of_performances_controller_spec.rb +15 -15
- data/spec/controllers/owns_controller_spec.rb +52 -52
- data/spec/controllers/picture_files_controller_spec.rb +52 -52
- data/spec/controllers/produce_types_controller_spec.rb +15 -15
- data/spec/controllers/produces_controller_spec.rb +50 -50
- data/spec/controllers/realize_types_controller_spec.rb +15 -15
- data/spec/controllers/realizes_controller_spec.rb +51 -51
- data/spec/controllers/resource_export_files_controller_spec.rb +38 -38
- data/spec/controllers/resource_import_files_controller_spec.rb +38 -38
- data/spec/controllers/resource_import_results_controller_spec.rb +15 -15
- data/spec/controllers/series_statements_controller_spec.rb +54 -54
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +2 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -19
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -19
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-53863-1jz1wlr.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-55246-1rvhs1s.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-60268-1psjqua.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-60996-1cy28m2.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-67507-19qjhj3.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-69234-1cllrec.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-76875-1os6joy.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-1148-136brhb.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-473-1c326dm.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-93795-1x882ik.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-94274-1xr9d9e.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-94643-1fjcept.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-97947-mfqh5b.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-98488-126cvb4.txt +147 -0
- data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-98849-1lg47mm.txt +147 -0
- data/spec/dummy/solr/test/data/index/segments.gen +0 -0
- data/spec/dummy/solr/test/data/index/segments_5ur +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007580 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007581 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007582 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007583 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007584 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007585 +0 -0
- data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +0 -0
- data/spec/dummy/tmp/cache/stdout +2554 -0
- data/spec/dummy/tmp/pids/redis-test.pid +1 -1
- data/spec/fixtures/agent_import_results.yml +0 -3
- data/spec/fixtures/carrier_types.yml +16 -16
- data/spec/fixtures/content_types.yml +78 -29
- data/spec/fixtures/frequencies.yml +32 -62
- data/spec/fixtures/manifestations.yml +1 -1
- data/spec/models/agent_import_result_spec.rb +0 -2
- data/spec/models/manifestation_spec.rb +1 -1
- data/spec/models/resource_import_file_spec.rb +30 -3
- data/spec/views/manifestations/show.html.erb_spec.rb +1 -1
- metadata +68 -103
- data/app/views/picture_files/_index_event.html.erb +0 -53
- data/app/views/picture_files/_index_shelf.html.erb +0 -53
- data/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
- data/spec/dummy/solr/test/data/index/_20i.fdt +0 -0
- data/spec/dummy/solr/test/data/index/_20i.fdx +0 -0
- data/spec/dummy/solr/test/data/index/_20i.fnm +0 -0
- data/spec/dummy/solr/test/data/index/_20i.nvd +0 -0
- data/spec/dummy/solr/test/data/index/_20i.nvm +0 -0
- data/spec/dummy/solr/test/data/index/_20i.si +0 -0
- data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/test/data/index/_20j.fdt +0 -0
- data/spec/dummy/solr/test/data/index/_20j.fdx +0 -0
- data/spec/dummy/solr/test/data/index/_20j.fnm +0 -0
- data/spec/dummy/solr/test/data/index/_20j.nvd +0 -0
- data/spec/dummy/solr/test/data/index/_20j.nvm +0 -0
- data/spec/dummy/solr/test/data/index/_20j.si +0 -0
- data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/test/data/index/_20k.fdt +0 -0
- data/spec/dummy/solr/test/data/index/_20k.fdx +0 -0
- data/spec/dummy/solr/test/data/index/_20k.fnm +0 -0
- data/spec/dummy/solr/test/data/index/_20k.nvd +0 -0
- data/spec/dummy/solr/test/data/index/_20k.nvm +0 -0
- data/spec/dummy/solr/test/data/index/_20k.si +0 -0
- data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/test/data/index/segments_2uc +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003680 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003681 +0 -0
- data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003682 +0 -0
@@ -1 +1 @@
|
|
1
|
-
|
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:
|
14
|
-
display_name:
|
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:
|
24
|
-
display_name:
|
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:
|
32
|
-
display_name:
|
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
|
-
|
2
|
-
|
3
|
-
one:
|
1
|
+
---
|
2
|
+
content_type_00001:
|
4
3
|
id: 1
|
5
4
|
name: text
|
6
|
-
display_name: text
|
7
|
-
|
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:
|
13
|
-
display_name:
|
14
|
-
|
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:
|
20
|
-
display_name:
|
21
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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:
|
22
|
-
display_name:
|
23
|
-
|
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:
|
32
|
-
|
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:
|
41
|
-
|
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:
|
50
|
-
|
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:
|
59
|
-
|
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:
|
67
|
-
display_name:
|
68
|
-
|
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
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
#
|
@@ -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 '副シリーズ
|
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
|
-
|
7
|
+
assign(:manifestation, FactoryGirl.create(:manifestation))
|
8
8
|
@ability = Object.new
|
9
9
|
@ability.extend(CanCan::Ability)
|
10
10
|
controller.stub(:current_ability) { @ability }
|