enju_biblio 0.1.0.pre33 → 0.1.0.pre34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/manifestations_controller.rb +6 -27
  3. data/app/controllers/series_has_manifestations_controller.rb +2 -2
  4. data/app/controllers/series_statements_controller.rb +1 -17
  5. data/app/models/enju_biblio/ability.rb +2 -2
  6. data/app/models/item.rb +2 -3
  7. data/app/models/manifestation.rb +109 -163
  8. data/app/models/page_sweeper.rb +1 -3
  9. data/app/models/resource_import_file.rb +26 -62
  10. data/app/models/series_statement.rb +35 -76
  11. data/app/views/manifestations/_form.html.erb +9 -24
  12. data/app/views/manifestations/_manifestation.html.erb +5 -5
  13. data/app/views/manifestations/_show_detail_librarian.html.erb +6 -2
  14. data/app/views/manifestations/_show_detail_user.html.erb +6 -2
  15. data/app/views/manifestations/_show_index.html.erb +3 -8
  16. data/app/views/manifestations/_show_periodical_master.html.erb +6 -23
  17. data/app/views/manifestations/_show_series_index.html.erb +1 -9
  18. data/app/views/manifestations/show.html.erb +1 -1
  19. data/app/views/series_statements/_form.html.erb +0 -8
  20. data/app/views/series_statements/_index.html.erb +3 -17
  21. data/app/views/series_statements/_index_manifestation.html.erb +0 -15
  22. data/app/views/series_statements/_index_parent.html.erb +0 -2
  23. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +0 -2
  24. data/app/views/series_statements/_manifestation_list.html.erb +1 -1
  25. data/app/views/series_statements/show.html.erb +0 -9
  26. data/config/locales/translation_en.yml +1 -0
  27. data/config/locales/translation_ja.yml +1 -0
  28. data/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
  29. data/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
  30. data/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
  31. data/lib/enju_biblio/version.rb +1 -1
  32. data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +49 -47
  33. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml +624 -0
  34. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +624 -0
  35. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +624 -0
  36. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +624 -0
  37. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +624 -0
  38. data/spec/controllers/import_requests_controller_spec.rb +29 -31
  39. data/spec/controllers/manifestations_controller_spec.rb +5 -37
  40. data/spec/dummy/app/models/ability.rb +2 -2
  41. data/spec/dummy/config/application.rb +0 -1
  42. data/spec/dummy/db/development.sqlite3 +0 -0
  43. data/spec/dummy/db/schema.rb +10 -7
  44. data/spec/dummy/db/test.sqlite3 +0 -0
  45. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +1 -1
  46. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +1 -1
  47. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  48. data/spec/dummy/solr/data/test/index/segments_gs2 +0 -0
  49. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  50. data/spec/fixtures/items.yml +2 -3
  51. data/spec/fixtures/manifestations.yml +72 -72
  52. data/spec/fixtures/series_statements.yml +21 -23
  53. data/spec/models/item_spec.rb +26 -28
  54. data/spec/models/manifestation_spec.rb +80 -76
  55. data/spec/models/resource_import_file_spec.rb +33 -9
  56. data/spec/models/series_statement_spec.rb +22 -34
  57. metadata +22 -25
  58. data/app/views/series_statements/_periodical_facet.html.erb +0 -15
  59. data/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  60. data/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  61. data/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
  62. data/spec/dummy/solr/data/test/index/segments_6n6 +0 -0
@@ -164,45 +164,43 @@ describe ImportRequestsController do
164
164
  @attrs = {:isbn => '9784873114422'}
165
165
  @invalid_attrs = {:isbn => 'invalid'}
166
166
  end
167
- VCR.use_cassette "enju_ndl/ndl_search", :record => :new_episodes do
168
167
 
169
- describe "When logged in as Administrator" do
170
- login_admin
168
+ describe "When logged in as Administrator" do
169
+ login_admin
171
170
 
172
- describe "with valid params" do
173
- it "assigns a newly created import_request as @import_request" do
174
- post :create, :import_request => @attrs
175
- assigns(:import_request).should be_valid
176
- end
171
+ describe "with valid params", :vcr => true do
172
+ it "assigns a newly created import_request as @import_request" do
173
+ post :create, :import_request => @attrs
174
+ assigns(:import_request).should be_valid
175
+ end
177
176
 
178
- it "redirects to the created import_request" do
179
- post :create, :import_request => @attrs
180
- response.should redirect_to manifestation_items_url(assigns(:import_request).manifestation)
181
- end
177
+ it "redirects to the created import_request" do
178
+ post :create, :import_request => @attrs
179
+ response.should redirect_to manifestation_items_url(assigns(:import_request).manifestation)
182
180
  end
181
+ end
183
182
 
184
- describe "with invalid params" do
185
- it "assigns a newly created but unsaved import_request as @import_request" do
186
- post :create, :import_request => @invalid_attrs
187
- assigns(:import_request).should_not be_valid
188
- end
183
+ describe "with invalid params" do
184
+ it "assigns a newly created but unsaved import_request as @import_request" do
185
+ post :create, :import_request => @invalid_attrs
186
+ assigns(:import_request).should_not be_valid
187
+ end
189
188
 
190
- it "re-renders the 'new' template" do
191
- post :create, :import_request => @invalid_attrs
192
- response.should render_template("new")
193
- end
189
+ it "re-renders the 'new' template" do
190
+ post :create, :import_request => @invalid_attrs
191
+ response.should render_template("new")
194
192
  end
193
+ end
195
194
 
196
- describe "with isbn which is already imported" do
197
- it "assigns a newly created import_request as @import_request" do
198
- post :create, :import_request => {:isbn => manifestations(:manifestation_00001).isbn}
199
- assigns(:import_request).should be_valid
200
- end
195
+ describe "with isbn which is already imported" do
196
+ it "assigns a newly created import_request as @import_request" do
197
+ post :create, :import_request => {:isbn => manifestations(:manifestation_00001).isbn}
198
+ assigns(:import_request).should be_valid
199
+ end
201
200
 
202
- it "redirects to the created import_request" do
203
- post :create, :import_request => @attrs
204
- response.should redirect_to manifestation_items_url(assigns(:import_request).manifestation)
205
- end
201
+ it "redirects to the created import_request", :vcr => true do
202
+ post :create, :import_request => @attrs
203
+ response.should redirect_to manifestation_items_url(assigns(:import_request).manifestation)
206
204
  end
207
205
  end
208
206
  end
@@ -210,7 +208,7 @@ describe ImportRequestsController do
210
208
  describe "When logged in as Librarian" do
211
209
  login_librarian
212
210
 
213
- describe "with valid params" do
211
+ describe "with valid params", :vcr => true do
214
212
  it "assigns a newly created import_request as @import_request" do
215
213
  post :create, :import_request => @attrs
216
214
  assigns(:import_request).should be_valid
@@ -111,38 +111,6 @@ describe ManifestationsController do
111
111
  response.should render_template("manifestations/index")
112
112
  end
113
113
 
114
- it "assigns all manifestations as @manifestations in oai format without verb" do
115
- get :index, :format => 'oai'
116
- assigns(:manifestations).should_not be_nil
117
- response.should render_template("manifestations/index")
118
- end
119
-
120
- it "assigns all manifestations as @manifestations in oai format with ListRecords" do
121
- get :index, :format => 'oai', :verb => 'ListRecords'
122
- assigns(:manifestations).should_not be_nil
123
- response.should render_template("manifestations/list_records")
124
- end
125
-
126
- it "assigns all manifestations as @manifestations in oai format with ListIdentifiers" do
127
- get :index, :format => 'oai', :verb => 'ListIdentifiers'
128
- assigns(:manifestations).should_not be_nil
129
- response.should render_template("manifestations/list_identifiers")
130
- end
131
-
132
- it "assigns all manifestations as @manifestations in oai format with GetRecord without identifier" do
133
- get :index, :format => 'oai', :verb => 'GetRecord'
134
- assigns(:manifestations).should be_nil
135
- assigns(:manifestation).should be_nil
136
- response.should render_template('manifestations/index')
137
- end
138
-
139
- it "assigns all manifestations as @manifestations in oai format with GetRecord with identifier" do
140
- get :index, :format => 'oai', :verb => 'GetRecord', :identifier => 'oai:localhost:manifestations-1'
141
- assigns(:manifestations).should be_nil
142
- assigns(:manifestation).should_not be_nil
143
- response.should render_template('manifestations/show')
144
- end
145
-
146
114
  it "should get index with manifestation_id" do
147
115
  get :index, :manifestation_id => 1
148
116
  response.should be_success
@@ -417,9 +385,9 @@ describe ManifestationsController do
417
385
  end
418
386
 
419
387
  it "assigns a series_statement" do
420
- post :create, :manifestation => @attrs.merge(:series_has_manifestation_attributes => {:series_statement_id => 1})
388
+ post :create, :manifestation => @attrs.merge(:series_statements_attributes => {[0] => {:original_title => SeriesStatement.find(1).original_title}})
421
389
  assigns(:manifestation).reload
422
- assigns(:manifestation).series_statement.should eq SeriesStatement.find(1)
390
+ assigns(:manifestation).series_statements.pluck(:original_title).include?(series_statements(:one).original_title).should be_true
423
391
  end
424
392
 
425
393
  it "redirects to the created manifestation" do
@@ -527,7 +495,7 @@ describe ManifestationsController do
527
495
  describe "PUT update" do
528
496
  before(:each) do
529
497
  @manifestation = FactoryGirl.create(:manifestation)
530
- @manifestation.series_statement = SeriesStatement.find(1)
498
+ @manifestation.series_statements = [SeriesStatement.find(1)]
531
499
  @attrs = valid_attributes
532
500
  @invalid_attrs = {:original_title => ''}
533
501
  end
@@ -541,9 +509,9 @@ describe ManifestationsController do
541
509
  end
542
510
 
543
511
  it "assigns a series_statement" do
544
- put :update, :id => @manifestation.id, :manifestation => @attrs.merge(:series_has_manifestation_attributes => {:series_statement_id => 2})
512
+ put :update, :id => @manifestation.id, :manifestation => @attrs.merge(:series_statements_attributes => {[0] => {:original_title => series_statements(:two).original_title, "_destroy"=>"false"}})
545
513
  assigns(:manifestation).reload
546
- assigns(:manifestation).series_statement.should eq SeriesStatement.find(2)
514
+ assigns(:manifestation).series_statements.pluck(:original_title).include?(series_statements(:two).original_title).should be_true
547
515
  end
548
516
 
549
517
  it "assigns the requested manifestation as @manifestation" do
@@ -15,7 +15,7 @@
15
15
  end
16
16
  can [:read, :create, :update], Manifestation
17
17
  can [:destroy, :delete], Manifestation do |manifestation|
18
- manifestation.items.empty? and !manifestation.periodical_master?
18
+ manifestation.items.empty? and !manifestation.series_master?
19
19
  end
20
20
  can :manage, [
21
21
  Create,
@@ -74,7 +74,7 @@
74
74
  can :index, Manifestation
75
75
  can [:show, :create, :update], Manifestation
76
76
  can [:destroy, :delete], Manifestation do |manifestation|
77
- manifestation.items.empty? and !manifestation.periodical_master?
77
+ manifestation.items.empty? and !manifestation.series_master?
78
78
  end
79
79
  can [:index, :create], Patron
80
80
  can :show, Patron do |patron|
@@ -61,7 +61,6 @@ require 'enju_bookmark'
61
61
  require 'enju_event'
62
62
  require 'enju_manifestation_viewer'
63
63
  require 'enju_export'
64
- require 'enju_oai'
65
64
  require 'enju_ndl'
66
65
  require 'mobylette'
67
66
  require 'plugins'
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130416054135) do
14
+ ActiveRecord::Schema.define(:version => 20130421164124) do
15
15
 
16
16
  create_table "baskets", :force => true do |t|
17
17
  t.integer "user_id"
@@ -636,6 +636,7 @@ ActiveRecord::Schema.define(:version => 20130416054135) do
636
636
  t.integer "month_of_publication"
637
637
  t.boolean "fulltext_content"
638
638
  t.string "doi"
639
+ t.boolean "periodical"
639
640
  end
640
641
 
641
642
  add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
@@ -1070,19 +1071,21 @@ ActiveRecord::Schema.define(:version => 20130416054135) do
1070
1071
  t.text "title_subseries"
1071
1072
  t.text "numbering_subseries"
1072
1073
  t.integer "position"
1073
- t.datetime "created_at", :null => false
1074
- t.datetime "updated_at", :null => false
1074
+ t.datetime "created_at", :null => false
1075
+ t.datetime "updated_at", :null => false
1075
1076
  t.text "title_transcription"
1076
1077
  t.text "title_alternative"
1077
1078
  t.string "series_statement_identifier"
1078
- t.string "issn"
1079
- t.boolean "periodical", :default => false, :null => false
1080
- t.integer "root_manifestation_id"
1079
+ t.integer "manifestation_id"
1081
1080
  t.text "note"
1082
1081
  t.text "title_subseries_transcription"
1082
+ t.text "creator_string"
1083
+ t.text "volume_number_string"
1084
+ t.text "volume_number_transcription_string"
1085
+ t.boolean "series_master"
1083
1086
  end
1084
1087
 
1085
- add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_manifestation_id"
1088
+ add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
1086
1089
  add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
1087
1090
 
1088
1091
  create_table "shelves", :force => true do |t|
Binary file
@@ -1,4 +1,4 @@
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
1
+ manifestation_identifier original_title note title_transcription title_alternative periodical series_statement_identifier series_original_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
2
  資料ID タイトル 注記 タイトルよみ 代替タイトル 定期刊行物フラグ シリーズ番号 シリーズタイトル シリーズタイトルよみ 著者 著者よみ 出版者 出版者よみ 出版日 巻 版 isbn issn 販売価格 受入価格 高さ 書架名 個別資料ID nbn lccn 件名 インポート省略
3
3
  test1 ○ identifierなし、item_identifierなし test てすと test2 invalid
4
4
  test2 ○ identifierなし、item_identifierあり test||author//test1||illustrator 2001 10101 Public fund Example store
@@ -1,4 +1,4 @@
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
1
+ manifestation_identifier original_title note title_transcription title_alternative periodical series_statement_identifier series_original_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
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
3
  test1 �� identifier�Ȃ��Aitem_identifier�Ȃ� test �Ă��� test2 invalid
4
4
  test2 �� identifier�Ȃ��Aitem_identifier���� test||author//test1||illustrator 2001 10101 Public fund Example store
@@ -237,8 +237,6 @@ item_00023:
237
237
  # id :integer not null, primary key
238
238
  # call_number :string(255)
239
239
  # item_identifier :string(255)
240
- # circulation_status_id :integer default(5), not null
241
- # checkout_type_id :integer default(1), not null
242
240
  # created_at :datetime not null
243
241
  # updated_at :datetime not null
244
242
  # deleted_at :datetime
@@ -254,6 +252,7 @@ item_00023:
254
252
  # acquired_at :datetime
255
253
  # bookstore_id :integer
256
254
  # budget_type_id :integer
257
- # manifestation_id :integer
255
+ # circulation_status_id :integer default(5), not null
256
+ # checkout_type_id :integer default(1), not null
258
257
  #
259
258
 
@@ -1695,6 +1695,7 @@ manifestation_00201:
1695
1695
  created_at: 2007-11-19 17:55:41 UTC
1696
1696
  frequency_id: 3
1697
1697
  issn: 09130000
1698
+ periodical: true
1698
1699
  manifestation_00202:
1699
1700
  carrier_type_id: 1
1700
1701
  language_id: 1
@@ -1715,6 +1716,7 @@ manifestation_00202:
1715
1716
  serial_number: 2
1716
1717
  volume_number: 1
1717
1718
  issue_number: 2
1719
+ periodical: true
1718
1720
  manifestation_00203:
1719
1721
  carrier_type_id: 1
1720
1722
  language_id: 1
@@ -1942,81 +1944,79 @@ manifestation_00216:
1942
1944
  required_role_id: 1
1943
1945
  repository_content: false
1944
1946
 
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
1947
  # == Schema Information
1953
1948
  #
1954
1949
  # Table name: manifestations
1955
1950
  #
1956
- # id :integer not null, primary key
1957
- # original_title :text not null
1958
- # title_alternative :text
1959
- # title_transcription :text
1960
- # classification_number :string(255)
1961
- # manifestation_identifier :string(255)
1962
- # date_of_publication :datetime
1963
- # date_copyrighted :datetime
1964
- # created_at :datetime not null
1965
- # updated_at :datetime not null
1966
- # deleted_at :datetime
1967
- # access_address :string(255)
1968
- # language_id :integer default(1), not null
1969
- # carrier_type_id :integer default(1), not null
1970
- # extent_id :integer default(1), not null
1971
- # start_page :integer
1972
- # end_page :integer
1973
- # height :integer
1974
- # width :integer
1975
- # depth :integer
1976
- # isbn :string(255)
1977
- # isbn10 :string(255)
1978
- # wrong_isbn :string(255)
1979
- # nbn :string(255)
1980
- # lccn :string(255)
1981
- # oclc_number :string(255)
1982
- # issn :string(255)
1983
- # price :integer
1984
- # fulltext :text
1985
- # volume_number_string :string(255)
1986
- # issue_number_string :string(255)
1987
- # serial_number_string :string(255)
1988
- # edition :integer
1989
- # note :text
1990
- # repository_content :boolean default(FALSE), not null
1991
- # lock_version :integer default(0), not null
1992
- # required_role_id :integer default(1), not null
1993
- # state :string(255)
1994
- # required_score :integer default(0), not null
1995
- # frequency_id :integer default(1), not null
1996
- # subscription_master :boolean default(FALSE), not null
1997
- # attachment_file_name :string(255)
1998
- # attachment_content_type :string(255)
1999
- # attachment_file_size :integer
2000
- # attachment_updated_at :datetime
2001
- # title_alternative_transcription :text
2002
- # description :text
2003
- # abstract :text
2004
- # available_at :datetime
2005
- # valid_until :datetime
2006
- # date_submitted :datetime
2007
- # date_accepted :datetime
2008
- # date_caputured :datetime
2009
- # ndl_bib_id :string(255)
2010
- # pub_date :string(255)
2011
- # edition_string :string(255)
2012
- # volume_number :integer
2013
- # issue_number :integer
2014
- # serial_number :integer
2015
- # ndc :string(255)
2016
- # content_type_id :integer default(1)
2017
- # year_of_publication :integer
2018
- # attachment_fingerprint :string(255)
2019
- # attachment_meta :text
2020
- # month_of_publication :integer
1951
+ # id :integer not null, primary key
1952
+ # original_title :text not null
1953
+ # title_alternative :text
1954
+ # title_transcription :text
1955
+ # classification_number :string(255)
1956
+ # manifestation_identifier :string(255)
1957
+ # date_of_publication :datetime
1958
+ # date_copyrighted :datetime
1959
+ # created_at :datetime not null
1960
+ # updated_at :datetime not null
1961
+ # deleted_at :datetime
1962
+ # access_address :string(255)
1963
+ # language_id :integer default(1), not null
1964
+ # carrier_type_id :integer default(1), not null
1965
+ # extent_id :integer default(1), not null
1966
+ # start_page :integer
1967
+ # end_page :integer
1968
+ # height :integer
1969
+ # width :integer
1970
+ # depth :integer
1971
+ # isbn :string(255)
1972
+ # isbn10 :string(255)
1973
+ # wrong_isbn :string(255)
1974
+ # nbn :string(255)
1975
+ # lccn :string(255)
1976
+ # oclc_number :string(255)
1977
+ # issn :string(255)
1978
+ # price :integer
1979
+ # fulltext :text
1980
+ # volume_number_string :string(255)
1981
+ # issue_number_string :string(255)
1982
+ # serial_number_string :string(255)
1983
+ # edition :integer
1984
+ # note :text
1985
+ # repository_content :boolean default(FALSE), not null
1986
+ # lock_version :integer default(0), not null
1987
+ # required_role_id :integer default(1), not null
1988
+ # state :string(255)
1989
+ # required_score :integer default(0), not null
1990
+ # frequency_id :integer default(1), not null
1991
+ # subscription_master :boolean default(FALSE), not null
1992
+ # attachment_file_name :string(255)
1993
+ # attachment_content_type :string(255)
1994
+ # attachment_file_size :integer
1995
+ # attachment_updated_at :datetime
1996
+ # title_alternative_transcription :text
1997
+ # description :text
1998
+ # abstract :text
1999
+ # available_at :datetime
2000
+ # valid_until :datetime
2001
+ # date_submitted :datetime
2002
+ # date_accepted :datetime
2003
+ # date_caputured :datetime
2004
+ # pub_date :string(255)
2005
+ # edition_string :string(255)
2006
+ # volume_number :integer
2007
+ # issue_number :integer
2008
+ # serial_number :integer
2009
+ # ndc :string(255)
2010
+ # content_type_id :integer default(1)
2011
+ # year_of_publication :integer
2012
+ # attachment_meta :text
2013
+ # month_of_publication :integer
2014
+ # fulltext_content :boolean
2015
+ # doi :string(255)
2016
+ # periodical :boolean
2017
+ # series_original_title :text
2018
+ # series_title_transcription :text
2019
+ # series_title_creator_string :text
2020
+ # series_title_volume_number_string :text
2021
2021
  #
2022
2022
 
@@ -1,45 +1,43 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
1
  one:
4
2
  id: 1
5
3
  original_title: title1
6
- periodical: false
7
4
  position: 1
8
5
 
9
6
  two:
10
7
  id: 2
11
8
  original_title: title2
12
9
  title_transcription: テスト
13
- periodical: true
14
- issn: 09135707
15
10
  position: 2
11
+ manifestation_id: 202
12
+ series_master: true
16
13
 
17
14
  three:
18
15
  id: 3
19
16
  original_title: テスト雑誌
20
- periodical: true
21
17
  position: 3
22
- root_manifestation_id: 201
18
+ manifestation_id: 201
23
19
 
24
20
  # == Schema Information
25
21
  #
26
22
  # Table name: series_statements
27
23
  #
28
- # id :integer not null, primary key
29
- # original_title :text
30
- # numbering :text
31
- # title_subseries :text
32
- # numbering_subseries :text
33
- # position :integer
34
- # created_at :datetime not null
35
- # updated_at :datetime not null
36
- # title_transcription :text
37
- # title_alternative :text
38
- # series_statement_identifier :string(255)
39
- # issn :string(255)
40
- # periodical :boolean default(FALSE), not null
41
- # root_manifestation_id :integer
42
- # note :text
43
- # title_subseries_transcription :text
24
+ # id :integer not null, primary key
25
+ # original_title :text
26
+ # numbering :text
27
+ # title_subseries :text
28
+ # numbering_subseries :text
29
+ # position :integer
30
+ # created_at :datetime not null
31
+ # updated_at :datetime not null
32
+ # title_transcription :text
33
+ # title_alternative :text
34
+ # series_statement_identifier :string(255)
35
+ # manifestation_id :integer
36
+ # note :text
37
+ # title_subseries_transcription :text
38
+ # creator_string :text
39
+ # volume_number_string :text
40
+ # volume_number_transcription_string :text
41
+ # series_master :boolean
44
42
  #
45
43
 
@@ -1,3 +1,29 @@
1
+ # == Schema Information
2
+ #
3
+ # Table name: items
4
+ #
5
+ # id :integer not null, primary key
6
+ # call_number :string(255)
7
+ # item_identifier :string(255)
8
+ # created_at :datetime not null
9
+ # updated_at :datetime not null
10
+ # deleted_at :datetime
11
+ # shelf_id :integer default(1), not null
12
+ # include_supplements :boolean default(FALSE), not null
13
+ # note :text
14
+ # url :string(255)
15
+ # price :integer
16
+ # lock_version :integer default(0), not null
17
+ # required_role_id :integer default(1), not null
18
+ # state :string(255)
19
+ # required_score :integer default(0), not null
20
+ # acquired_at :datetime
21
+ # bookstore_id :integer
22
+ # budget_type_id :integer
23
+ # circulation_status_id :integer default(5), not null
24
+ # checkout_type_id :integer default(1), not null
25
+ #
26
+
1
27
  # -*- encoding: utf-8 -*-
2
28
  require 'spec_helper'
3
29
 
@@ -50,31 +76,3 @@ describe Item do
50
76
  item.lending_policies.where(:user_group_id => 1).first.loan_period.should eq 10
51
77
  end
52
78
  end
53
-
54
- # == Schema Information
55
- #
56
- # Table name: items
57
- #
58
- # id :integer not null, primary key
59
- # call_number :string(255)
60
- # item_identifier :string(255)
61
- # circulation_status_id :integer default(5), not null
62
- # checkout_type_id :integer default(1), not null
63
- # created_at :datetime not null
64
- # updated_at :datetime not null
65
- # deleted_at :datetime
66
- # shelf_id :integer default(1), not null
67
- # include_supplements :boolean default(FALSE), not null
68
- # note :text
69
- # url :string(255)
70
- # price :integer
71
- # lock_version :integer default(0), not null
72
- # required_role_id :integer default(1), not null
73
- # state :string(255)
74
- # required_score :integer default(0), not null
75
- # acquired_at :datetime
76
- # bookstore_id :integer
77
- # budget_type_id :integer
78
- # manifestation_id :integer
79
- #
80
-