enju_biblio 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/app/controllers/manifestations_controller.rb +36 -20
  2. data/app/controllers/picture_files_controller.rb +25 -16
  3. data/app/controllers/series_has_manifestations_controller.rb +4 -0
  4. data/app/controllers/series_statements_controller.rb +9 -7
  5. data/app/helpers/series_statements_helper.rb +6 -0
  6. data/app/models/item.rb +3 -0
  7. data/app/models/manifestation.rb +29 -15
  8. data/app/models/patron.rb +2 -0
  9. data/app/models/resource_import_file.rb +47 -12
  10. data/app/models/series_has_manifestation.rb +2 -3
  11. data/app/views/carrier_types/index.html.erb +1 -1
  12. data/app/views/content_types/index.html.erb +1 -1
  13. data/app/views/create_types/index.html.erb +1 -1
  14. data/app/views/creates/_index.html.erb +1 -1
  15. data/app/views/creates/_index_patron.html.erb +1 -1
  16. data/app/views/creates/_index_work.html.erb +2 -9
  17. data/app/views/donates/index.html.erb +1 -1
  18. data/app/views/exemplifies/index.html.erb +1 -1
  19. data/app/views/extents/index.html.erb +1 -1
  20. data/app/views/form_of_works/index.html.erb +1 -1
  21. data/app/views/frequencies/index.html.erb +1 -1
  22. data/app/views/import_requests/index.html.erb +1 -1
  23. data/app/views/import_requests/new.html.erb +1 -1
  24. data/app/views/items/edit.html.erb +1 -1
  25. data/app/views/items/show.html.erb +2 -1
  26. data/app/views/licenses/index.html.erb +1 -1
  27. data/app/views/manifestation_relationship_types/index.html.erb +1 -1
  28. data/app/views/manifestation_relationships/index.html.erb +1 -1
  29. data/app/views/manifestations/_form.html.erb +1 -1
  30. data/app/views/manifestations/_manifestation.html.erb +21 -17
  31. data/app/views/manifestations/_paginate_id_link.html.erb +20 -2
  32. data/app/views/manifestations/_session_ids.html.erb +10 -0
  33. data/app/views/manifestations/_show_detail_librarian.html.erb +7 -5
  34. data/app/views/manifestations/_show_detail_user.html.erb +7 -5
  35. data/app/views/manifestations/_show_index.html.erb +7 -1
  36. data/app/views/manifestations/_show_series_index.html.erb +15 -0
  37. data/app/views/manifestations/_show_series_statement.html.erb +30 -0
  38. data/app/views/manifestations/_submenu_series_statement.html.erb +8 -0
  39. data/app/views/manifestations/edit.html.erb +1 -1
  40. data/app/views/manifestations/index.html.erb +11 -0
  41. data/app/views/manifestations/show.html.erb +2 -2
  42. data/app/views/medium_of_performances/index.html.erb +1 -1
  43. data/app/views/owns/index.html.erb +1 -1
  44. data/app/views/patron_import_files/index.html.erb +1 -1
  45. data/app/views/patron_import_results/index.html.erb +1 -1
  46. data/app/views/patron_relationship_types/index.html.erb +1 -1
  47. data/app/views/patron_relationships/index.html.erb +1 -1
  48. data/app/views/patron_types/index.html.erb +1 -1
  49. data/app/views/patrons/_index_expression.html.erb +2 -1
  50. data/app/views/patrons/_index_manifestation.html.erb +2 -1
  51. data/app/views/patrons/_index_patron.html.erb +1 -1
  52. data/app/views/patrons/_index_patron_merge_list.html.erb +1 -1
  53. data/app/views/patrons/_index_work.html.erb +2 -1
  54. data/app/views/patrons/edit.html.erb +1 -1
  55. data/app/views/patrons/show.html.erb +1 -1
  56. data/app/views/picture_files/_index.html.erb +1 -1
  57. data/app/views/picture_files/_index_event.html.erb +1 -1
  58. data/app/views/picture_files/_index_manifestation.html.erb +1 -1
  59. data/app/views/picture_files/_index_patron.html.erb +1 -1
  60. data/app/views/picture_files/_index_shelf.html.erb +1 -1
  61. data/app/views/picture_files/_link.mobile.erb +3 -0
  62. data/app/views/picture_files/show.mobile.erb +49 -0
  63. data/app/views/produce_types/index.html.erb +1 -1
  64. data/app/views/produces/_index.html.erb +1 -1
  65. data/app/views/produces/_index_manifestation.html.erb +5 -11
  66. data/app/views/produces/_index_patron.html.erb +1 -1
  67. data/app/views/realize_types/index.html.erb +1 -1
  68. data/app/views/realizes/_index.html.erb +1 -1
  69. data/app/views/realizes/_index_expression.html.erb +5 -11
  70. data/app/views/realizes/_index_patron.html.erb +1 -1
  71. data/app/views/resource_import_files/index.html.erb +1 -1
  72. data/app/views/resource_import_results/index.html.erb +1 -1
  73. data/app/views/series_has_manifestations/index.html.erb +1 -1
  74. data/app/views/series_statements/_index.html.erb +1 -1
  75. data/app/views/series_statements/_index_manifestation.html.erb +1 -1
  76. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -1
  77. data/app/views/series_statements/show.html.erb +0 -3
  78. data/config/locales/translation_en.yml +34 -0
  79. data/config/locales/translation_ja.yml +34 -0
  80. data/config/routes.rb +7 -2
  81. data/lib/enju_biblio.rb +0 -5
  82. data/lib/enju_biblio/engine.rb +2 -6
  83. data/lib/enju_biblio/version.rb +1 -1
  84. data/spec/cassette_library/enju_ndl/ndl_search.yml +1140 -0
  85. data/spec/controllers/items_controller_spec.rb +1 -1
  86. data/spec/controllers/series_statements_controller_spec.rb +26 -21
  87. data/spec/dummy/config/application.rb +1 -0
  88. data/spec/dummy/config/routes.rb +1 -1
  89. data/spec/dummy/db/schema.rb +1 -1
  90. data/spec/dummy/db/test.sqlite3 +0 -0
  91. data/spec/dummy/lib/enju_leaf.rb +0 -1
  92. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_delete_file.tsv +8 -0
  93. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample1.tsv +5 -0
  94. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample3.tsv +5 -0
  95. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_update_file.tsv +3 -0
  96. data/spec/dummy/private/system/picture_files/pictures/000/000/005/medium/spinner.gif +0 -0
  97. data/spec/dummy/private/system/picture_files/pictures/000/000/005/original/spinner.gif +0 -0
  98. data/spec/dummy/private/system/picture_files/pictures/000/000/005/thumb/spinner.gif +0 -0
  99. data/spec/dummy/private/system/resource_imports/4/original/isbn_sample.txt +3 -0
  100. data/spec/dummy/private/system/resource_imports/4/original/item_delete_file.tsv +11 -0
  101. data/spec/dummy/private/system/resource_imports/4/original/item_update_file.tsv +4 -0
  102. data/spec/dummy/private/system/resource_imports/4/original/resource_import_file_sample1.tsv +19 -0
  103. data/spec/dummy/private/system/resource_imports/4/original/resource_import_file_sample2.tsv +19 -0
  104. data/spec/dummy/private/system/resource_imports/4/original/update_series_statement.tsv +2 -0
  105. data/spec/dummy/solr/data/test/index/_2z.fdt +0 -0
  106. data/spec/dummy/solr/data/test/index/_2z.fdx +0 -0
  107. data/spec/dummy/solr/data/test/index/{_2v.fnm → _2z.fnm} +0 -0
  108. data/spec/dummy/solr/data/test/index/_2z.frq +0 -0
  109. data/spec/dummy/solr/data/test/index/_2z.nrm +1 -0
  110. data/spec/dummy/solr/data/test/index/_2z.prx +0 -0
  111. data/spec/dummy/solr/data/test/index/_2z.tii +0 -0
  112. data/spec/dummy/solr/data/test/index/_2z.tis +0 -0
  113. data/spec/dummy/solr/data/test/index/{_2v.fdt → _39.fdt} +0 -0
  114. data/spec/dummy/solr/data/test/index/{_2v.fdx → _39.fdx} +0 -0
  115. data/spec/dummy/solr/data/test/index/_39.fnm +10 -0
  116. data/spec/dummy/solr/data/test/index/_39.frq +0 -0
  117. data/spec/dummy/solr/data/test/index/_39.nrm +1 -0
  118. data/spec/dummy/solr/data/test/index/_39.prx +0 -0
  119. data/spec/dummy/solr/data/test/index/{_2v.tii → _39.tii} +0 -0
  120. data/spec/dummy/solr/data/test/index/_39.tis +0 -0
  121. data/spec/dummy/solr/data/test/index/_39_1.del +0 -0
  122. data/spec/dummy/solr/data/test/index/_k_3.del +0 -0
  123. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  124. data/spec/dummy/solr/data/test/index/{segments_2v → segments_39} +0 -0
  125. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  126. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  127. data/spec/fixtures/exemplifies.yml +6 -0
  128. data/spec/models/resource_import_file_spec.rb +8 -0
  129. metadata +88 -129
  130. data/lib/enju_biblio/expire_editable_fragment.rb +0 -30
  131. data/lib/enju_biblio/expire_fragment_cache.rb +0 -17
  132. data/lib/enju_biblio/import_file.rb +0 -13
  133. data/lib/enju_biblio/master_model.rb +0 -19
  134. data/lib/enju_biblio/url_validator.rb +0 -10
  135. data/spec/dummy/app/models/library_group.rb +0 -86
  136. data/spec/dummy/lib/enju_leaf/localized_name.rb +0 -15
  137. data/spec/dummy/solr/data/test/index/_2v.frq +0 -0
  138. data/spec/dummy/solr/data/test/index/_2v.nrm +0 -1
  139. data/spec/dummy/solr/data/test/index/_2v.prx +0 -0
  140. data/spec/dummy/solr/data/test/index/_2v.tis +0 -0
  141. data/spec/dummy/solr/data/test/index/_2v_1.del +0 -0
  142. data/spec/dummy/solr/data/test/index/_k_2.del +0 -0
  143. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
@@ -65,7 +65,7 @@ describe ItemsController do
65
65
  get :index, :manifestation_id => 1
66
66
  response.should be_success
67
67
  assigns(:manifestation).should eq Manifestation.find(1)
68
- assigns(:items).should eq assigns(:manifestation).items.order('created_at DESC').page(1)
68
+ assigns(:items).collect(&:id).should eq assigns(:manifestation).items.order('items.created_at DESC').page(1).collect(&:id)
69
69
  end
70
70
 
71
71
  it "should get index with shelf_id" do
@@ -1,6 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe SeriesStatementsController do
4
+ fixtures :users
4
5
 
5
6
  def valid_attributes
6
7
  FactoryGirl.attributes_for(:series_statement)
@@ -8,7 +9,7 @@ describe SeriesStatementsController do
8
9
 
9
10
  describe "GET index", :solr => true do
10
11
  describe "When logged in as Administrator" do
11
- login_admin
12
+ login_fixture_admin
12
13
 
13
14
  it "assigns all series_statements as @series_statements" do
14
15
  get :index
@@ -17,7 +18,7 @@ describe SeriesStatementsController do
17
18
  end
18
19
 
19
20
  describe "When logged in as Librarian" do
20
- login_librarian
21
+ login_fixture_librarian
21
22
 
22
23
  it "assigns all series_statements as @series_statements" do
23
24
  get :index
@@ -26,7 +27,7 @@ describe SeriesStatementsController do
26
27
  end
27
28
 
28
29
  describe "When logged in as User" do
29
- login_user
30
+ login_fixture_user
30
31
 
31
32
  it "assigns all series_statements as @series_statements" do
32
33
  get :index
@@ -44,32 +45,35 @@ describe SeriesStatementsController do
44
45
 
45
46
  describe "GET show" do
46
47
  describe "When logged in as Administrator" do
47
- login_admin
48
+ login_fixture_admin
48
49
 
49
50
  it "assigns the requested series_statement as @series_statement" do
50
51
  series_statement = FactoryGirl.create(:series_statement)
51
52
  get :show, :id => series_statement.id
52
53
  assigns(:series_statement).should eq(series_statement)
54
+ response.should redirect_to series_statement_manifestations_url(assigns(:series_statement))
53
55
  end
54
56
  end
55
57
 
56
58
  describe "When logged in as Librarian" do
57
- login_librarian
59
+ login_fixture_librarian
58
60
 
59
61
  it "assigns the requested series_statement as @series_statement" do
60
62
  series_statement = FactoryGirl.create(:series_statement)
61
63
  get :show, :id => series_statement.id
62
64
  assigns(:series_statement).should eq(series_statement)
65
+ response.should redirect_to series_statement_manifestations_url(assigns(:series_statement))
63
66
  end
64
67
  end
65
68
 
66
69
  describe "When logged in as User" do
67
- login_user
70
+ login_fixture_user
68
71
 
69
72
  it "assigns the requested series_statement as @series_statement" do
70
73
  series_statement = FactoryGirl.create(:series_statement)
71
74
  get :show, :id => series_statement.id
72
75
  assigns(:series_statement).should eq(series_statement)
76
+ response.should redirect_to series_statement_manifestations_url(assigns(:series_statement))
73
77
  end
74
78
  end
75
79
 
@@ -78,13 +82,14 @@ describe SeriesStatementsController do
78
82
  series_statement = FactoryGirl.create(:series_statement)
79
83
  get :show, :id => series_statement.id
80
84
  assigns(:series_statement).should eq(series_statement)
85
+ response.should redirect_to series_statement_manifestations_url(assigns(:series_statement))
81
86
  end
82
87
  end
83
88
  end
84
89
 
85
90
  describe "GET new" do
86
91
  describe "When logged in as Administrator" do
87
- login_admin
92
+ login_fixture_admin
88
93
 
89
94
  it "assigns the requested series_statement as @series_statement" do
90
95
  get :new
@@ -93,7 +98,7 @@ describe SeriesStatementsController do
93
98
  end
94
99
 
95
100
  describe "When logged in as Librarian" do
96
- login_librarian
101
+ login_fixture_librarian
97
102
 
98
103
  it "assigns the requested series_statement as @series_statement" do
99
104
  get :new
@@ -102,7 +107,7 @@ describe SeriesStatementsController do
102
107
  end
103
108
 
104
109
  describe "When logged in as User" do
105
- login_user
110
+ login_fixture_user
106
111
 
107
112
  it "should not assign the requested series_statement as @series_statement" do
108
113
  get :new
@@ -122,7 +127,7 @@ describe SeriesStatementsController do
122
127
 
123
128
  describe "GET edit" do
124
129
  describe "When logged in as Administrator" do
125
- login_admin
130
+ login_fixture_admin
126
131
 
127
132
  it "assigns the requested series_statement as @series_statement" do
128
133
  series_statement = FactoryGirl.create(:series_statement)
@@ -132,7 +137,7 @@ describe SeriesStatementsController do
132
137
  end
133
138
 
134
139
  describe "When logged in as Librarian" do
135
- login_librarian
140
+ login_fixture_librarian
136
141
 
137
142
  it "assigns the requested series_statement as @series_statement" do
138
143
  series_statement = FactoryGirl.create(:series_statement)
@@ -142,7 +147,7 @@ describe SeriesStatementsController do
142
147
  end
143
148
 
144
149
  describe "When logged in as User" do
145
- login_user
150
+ login_fixture_user
146
151
 
147
152
  it "assigns the requested series_statement as @series_statement" do
148
153
  series_statement = FactoryGirl.create(:series_statement)
@@ -167,7 +172,7 @@ describe SeriesStatementsController do
167
172
  end
168
173
 
169
174
  describe "When logged in as Administrator" do
170
- login_admin
175
+ login_fixture_admin
171
176
 
172
177
  describe "with valid params" do
173
178
  it "assigns a newly created series_statement as @series_statement" do
@@ -195,7 +200,7 @@ describe SeriesStatementsController do
195
200
  end
196
201
 
197
202
  describe "When logged in as Librarian" do
198
- login_librarian
203
+ login_fixture_librarian
199
204
 
200
205
  describe "with valid params" do
201
206
  it "assigns a newly created series_statement as @series_statement" do
@@ -223,7 +228,7 @@ describe SeriesStatementsController do
223
228
  end
224
229
 
225
230
  describe "When logged in as User" do
226
- login_user
231
+ login_fixture_user
227
232
 
228
233
  describe "with valid params" do
229
234
  it "assigns a newly created series_statement as @series_statement" do
@@ -285,7 +290,7 @@ describe SeriesStatementsController do
285
290
  end
286
291
 
287
292
  describe "When logged in as Administrator" do
288
- login_admin
293
+ login_fixture_admin
289
294
 
290
295
  describe "with valid params" do
291
296
  it "updates the requested series_statement" do
@@ -312,7 +317,7 @@ describe SeriesStatementsController do
312
317
  end
313
318
 
314
319
  describe "When logged in as Librarian" do
315
- login_librarian
320
+ login_fixture_librarian
316
321
 
317
322
  describe "with valid params" do
318
323
  it "updates the requested series_statement" do
@@ -340,7 +345,7 @@ describe SeriesStatementsController do
340
345
  end
341
346
 
342
347
  describe "When logged in as User" do
343
- login_user
348
+ login_fixture_user
344
349
 
345
350
  describe "with valid params" do
346
351
  it "updates the requested series_statement" do
@@ -389,7 +394,7 @@ describe SeriesStatementsController do
389
394
  end
390
395
 
391
396
  describe "When logged in as Administrator" do
392
- login_admin
397
+ login_fixture_admin
393
398
 
394
399
  it "destroys the requested series_statement" do
395
400
  delete :destroy, :id => @series_statement.id
@@ -402,7 +407,7 @@ describe SeriesStatementsController do
402
407
  end
403
408
 
404
409
  describe "When logged in as Librarian" do
405
- login_librarian
410
+ login_fixture_librarian
406
411
 
407
412
  it "destroys the requested series_statement" do
408
413
  delete :destroy, :id => @series_statement.id
@@ -415,7 +420,7 @@ describe SeriesStatementsController do
415
420
  end
416
421
 
417
422
  describe "When logged in as User" do
418
- login_user
423
+ login_fixture_user
419
424
 
420
425
  it "destroys the requested series_statement" do
421
426
  delete :destroy, :id => @series_statement.id
@@ -54,4 +54,5 @@ module Dummy
54
54
  end
55
55
  end
56
56
 
57
+ require 'enju_core'
57
58
  require 'enju_leaf'
@@ -50,7 +50,7 @@ Dummy::Application.routes.draw do
50
50
 
51
51
  # You can have the root of your site routed with "root"
52
52
  # just remember to delete public/index.html.
53
- # root :to => 'welcome#index'
53
+ root :to => 'page#index'
54
54
 
55
55
  # See how all your routes lay out with "rake routes"
56
56
 
@@ -687,7 +687,7 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
687
687
  t.text "title", :null => false
688
688
  t.text "body", :null => false
689
689
  t.integer "position"
690
- t.string "locale", :default => "en"
690
+ t.string "locale", :default => "ja"
691
691
  t.datetime "created_at", :null => false
692
692
  t.datetime "updated_at", :null => false
693
693
  end
Binary file
@@ -2,7 +2,6 @@ require 'plugins'
2
2
  require 'enju_leaf/sru'
3
3
  require 'enju_leaf/openurl'
4
4
  require 'enju_leaf/calculate_stat'
5
- require 'enju_leaf/localized_name'
6
5
  require 'enju_library'
7
6
  require 'enju_circulation'
8
7
  require 'enju_inventory'
@@ -0,0 +1,5 @@
1
+ "full_name" "first_name" "last_name" "middle_name" "username" "email" "library_short_name" "user_group_name" "role_name" "language" "country" "address_1" "address_2" "zip_code_1" "zip_code_2" "telephone_number_1" "telephone_number_2" "fax_number_1" "fax_number_2" "birth_date" "note" "dummy"
2
+ "フルネーム" "名" "姓" "ミドルネーム" "ユーザ名" "メールアドレス" "所属館名" "所属グループ名" "権限" "言語名" "国名" "住所1" "住所2" "郵便番号1" "郵便番号2" "電話番号1" "電話番号2" "ファックス番号1" "ファックス番号2" "誕生日" "備考" "インポート省略"
3
+ "hogehoge" 1978
4
+ "田辺浩介" "tanabe" "tanabe@library.example.jp" "kamata" "User" "Administrator" "Japanese" "Japan" "東京都港区" "東京都港区" "108-8345" "108-8345" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "1978-4-12" "備考"
5
+ "隆史" "原田" "ushi" "ushi" "ushi@slis.keio.ac.jp" "kamata" "Faculty" "Librarian" "English" "Japan" "備考"
@@ -0,0 +1,5 @@
1
+ "full_name" "first_name" "last_name" "middle_name" "username" "email" "library_short_name" "user_group_name" "role_name" "language" "country" "address_1" "address_2" "zip_code_1" "zip_code_2" "telephone_number_1" "telephone_number_2" "fax_number_1" "fax_number_2" "birth_date" "required_role_name" "note"
2
+ "hogehoge"
3
+ "fugafuga" "fugafuga@example.jp" "Guest"
4
+ "�c�Ӎ_��" "tanabe" "tanabe@library.example.jp" "kamata" "User" "Administrator" "Japanese" "Japan" "�����s�`��" "�����s�`��" "108-8345" "108-8345" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "03-xxxx-xxxx" "1978-4-12" "User" "���l"
5
+ "���j" "���c" "ushi" "ushi" "ushi@slis.keio.ac.jp" "kamata" "Faculty" "Librarian" "English" "Japan" "Librarian" "���l"
@@ -0,0 +1,3 @@
1
+ id full_name address_1
2
+ 1 たなべこうすけ 東京都
3
+ 2 田辺浩介 岡山県
@@ -0,0 +1,3 @@
1
+ isbn library_short_name
2
+ invalid
3
+ 9784873113647
@@ -0,0 +1,11 @@
1
+ "item_identifier"
2
+ "00001"
3
+ "00002"
4
+ "00003"
5
+ "00004"
6
+ "00005"
7
+ "00006"
8
+ "00007"
9
+ "00008"
10
+ "00009"
11
+ "00010"
@@ -0,0 +1,4 @@
1
+ item_identifier original_title creator publisher subject acquired_at
2
+ "00001" たなべ// こうすけ test1 test1// test2
3
+ "00002" test2
4
+ "00003" テスト3 2012-01-01
@@ -0,0 +1,19 @@
1
+ manifestation_identifier original_title note title_transcription title_alternative periodical series_statement_identifier series_title series_title_transcription creator creator_transcription publisher publisher_transcription pub_date volume_number_string edition isbn issn manifestation_price item_price height shelf item_identifier nbn lccn subject budget_type bookstore dummy
2
+ 資料ID タイトル 注記 タイトルよみ 代替タイトル 定期刊行物フラグ シリーズ番号 シリーズタイトル シリーズタイトルよみ 著者 著者よみ 出版者 出版者よみ 出版日 巻 版 isbn issn 販売価格 受入価格 高さ 書架名 個別資料ID nbn lccn 件名 インポート省略
3
+ test1 ○ identifierなし、item_identifierなし test てすと test2 invalid
4
+ test2 ○ identifierなし、item_identifierあり test||author//test1||illustrator 2001 10101 Public fund Example store
5
+ 101 test3 × ダミー test test2 Public fund Example store 適当な値
6
+ 101 test3 ○ identifierあり、item_identifierなし 主シリーズ//副シリーズ//1 しゅしりーず//ふくしりーず//いち test test2
7
+ 102 test4 ○ identifierあり、item_identifierあり test1 test 2001-1 10102
8
+ 101 “test 5” △ identifier重複、item_identifier非重複 test1||author//test2||illustrator てすと1//てすと2 test 10103 Example store
9
+ 102 test6 × identifier重複、item_identifier重複 test test3 10101
10
+ test7 ○ ISBN不正、タイトルあり、所蔵情報あり 2001-1-1 9000000000000 first_shelf 10104 Public fund
11
+ × ISBN不正、タイトルなし 22222222 10105
12
+ test8 ○ ISBNなし、所蔵情報あり test test4//test5 てすと4//てすと5 1000 0 first_shelf 11111
13
+ test9 × item_identifier重複 11111
14
+ ○ ISBN重複(シリーズ情報あり)、item_identifierなし 4798002062
15
+ △ ISBN重複(シリーズ情報なし)、item_identifier非重複 4798002062 11112
16
+ × ISBN重複、item_identifier重複 4798002062 11111
17
+ × ISBN重複(13桁)、item_identifierなし 978-4798002064
18
+ 103 "ダブル""クォート""を含む資料" ○ ダブルクォートを含む資料
19
+ 104 test10 ○ TSV中にタイトルがあれば他の項目もTSVファイル優先 test3 test4 4797327030
@@ -0,0 +1,19 @@
1
+ manifestation_identifier original_title note title_transcription title_alternative periodical series_statement_identifier series_title series_title_transcription creator creator_transcription publisher publisher_transcription pub_date volume_number_string edition isbn issn manifestation_price item_price height shelf item_identifier nbn lccn subject budget_type bookstore dummy
2
+ ����ID �^�C�g�� ���L �^�C�g����� ��փ^�C�g�� ������s���t���O �V���[�Y�ԍ� �V���[�Y�^�C�g�� �V���[�Y�^�C�g����� ���� ���҂�� �o�Ŏ� �o�Ŏ҂�� �o�œ� �� �� isbn issn �̔����i ������i ���� ���˖� �•ʎ���ID nbn lccn ���� �C���|�[�g�ȗ�
3
+ test1 �� identifier�Ȃ��Aitem_identifier�Ȃ� test �Ă��� test2 invalid
4
+ test2 �� identifier�Ȃ��Aitem_identifier���� test||author//test1||illustrator 2001 10101 Public fund Example store
5
+ 101 test3 �~ �_�~�[ test test2 Public fund Example store �K���Ȓl
6
+ 101 test3 �� identifier����Aitem_identifier�Ȃ� ��V���[�Y//���V���[�Y//1 ���サ��[��//�ӂ�����[��//���� test test2
7
+ 102 test4 �� identifier����Aitem_identifier���� test1 test 2001-1 10102
8
+ 101 �gtest 5�h �� identifier�d���Aitem_identifier��d�� test1||author//test2||illustrator ����1//����2 test 10103 Example store
9
+ 102 test6 �~ identifier�d���Aitem_identifier�d�� test test3 10101
10
+ test7 �� ISBN�s���A�^�C�g������A������񂠂� 2001-1-1 9000000000000 first_shelf 10104 Public fund
11
+ �~ ISBN�s���A�^�C�g���Ȃ� 22222222 10105
12
+ test8 �� ISBN�Ȃ��A������񂠂� test test4//test5 �Ă���4//�Ă���5 1000 0 first_shelf 11111
13
+ test9 �~ item_identifier�d�� 11111
14
+ �� ISBN�d���i�V���[�Y��񂠂�j�Aitem_identifier�Ȃ� 4798002062
15
+ �� ISBN�d���i�V���[�Y���Ȃ��j�Aitem_identifier��d�� 4798002062 11112
16
+ �~ ISBN�d���Aitem_identifier�d�� 4798002062 11111
17
+ �~ ISBN�d���i13���j�Aitem_identifier�Ȃ� 978-4798002064
18
+ 103 "�_�u��""�N�H�[�g""���܂ގ���" �� �_�u���N�H�[�g���܂ގ���
19
+ 104 test10 �� TSV���Ƀ^�C�g��������Α��̍��ڂ�TSV�t�@�C���D�� test3 test4 4797327030
@@ -0,0 +1,2 @@
1
+ manifestation_id series_statement_id
2
+ 10 2
@@ -0,0 +1 @@
1
+ NRM�|||||||||||||||||||||||ttrttrttrttttttrrttttttxy|xy|xy|xxyyyy||xxx|||wxwwxwwxwwwxxxxwwwww|||wxwwxwwxwwwxxxxwwwww|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,10 @@
1
+ ����Bidtype
2
+ class_nameitem_identifier_srequired_role_id_imanifestation_id_i
3
+ shelf_id_i created_at_d updated_at_dcirculation_status_id_i library_sitem_identifier_text
4
+ title_text creator_textcontributor_textpublisher_texttitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
5
+ language_srepository_content_b sort_title_s periodical_bperiodical_master_b reservable_b btitle_text isbn_textmanifestation_ids_im
6
+ position_iseries_statement_id_idate_of_birth_d work_ids_imexpression_ids_impatron_type_id_i name_text
7
+ place_textother_designation_textoriginal_patron_ids_im
8
+ library_smitem_identifier_smshelf_smcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_im start_page_i
9
+ end_page_inumber_of_pages_i
10
+ creator_sm aulast_text aufirst_textau_textoriginal_manifestation_ids_im atitle_textdate_of_publication_dissn_sm jtitle_text issn_textvolume_number_imissue_number_imserial_number_impub_text
@@ -0,0 +1 @@
1
+ NRM�||||||||||yy||yyyxyx||||||||||||||||||||||||||||||yy||y||x|x��||�||�|�||qt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -43,6 +43,7 @@ exemplify_00007:
43
43
  manifestation_id: 1
44
44
  id: 7
45
45
  created_at: 2008-01-11 02:40:24.038276 +09:00
46
+ position: 3
46
47
  exemplify_00008:
47
48
  updated_at: 2008-01-11 02:40:40.316742 +09:00
48
49
  item_id: 8
@@ -61,12 +62,14 @@ exemplify_00010:
61
62
  manifestation_id: 1
62
63
  id: 10
63
64
  created_at: 2008-01-11 02:44:37.135721 +09:00
65
+ position: 4
64
66
  exemplify_00011:
65
67
  updated_at: 2008-01-11 02:44:37.135721 +09:00
66
68
  item_id: 11
67
69
  manifestation_id: 1
68
70
  id: 11
69
71
  created_at: 2008-01-11 02:44:37.135721 +09:00
72
+ position: 5
70
73
  exemplify_00012:
71
74
  updated_at: 2008-01-11 02:44:37.135721 +09:00
72
75
  item_id: 12
@@ -109,18 +112,21 @@ exemplify_00018:
109
112
  manifestation_id: 1
110
113
  id: 18
111
114
  created_at: 2008-01-11 02:44:37.135721 +09:00
115
+ position: 6
112
116
  exemplify_00019:
113
117
  updated_at: 2008-01-11 02:44:37.135721 +09:00
114
118
  item_id: 19
115
119
  manifestation_id: 1
116
120
  id: 19
117
121
  created_at: 2008-01-11 02:44:37.135721 +09:00
122
+ position: 7
118
123
  exemplify_00020:
119
124
  updated_at: 2008-01-11 02:44:37.135721 +09:00
120
125
  item_id: 20
121
126
  manifestation_id: 1
122
127
  id: 20
123
128
  created_at: 2008-01-11 02:44:37.135721 +09:00
129
+ position: 8
124
130
  exemplify_00021:
125
131
  updated_at: 2008-01-11 02:44:37.135721 +09:00
126
132
  item_id: 21