enju_biblio 0.1.0.pre10 → 0.1.0.pre11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/app/models/accept.rb +4 -3
  2. data/app/models/carrier_type.rb +4 -4
  3. data/app/models/content_type.rb +4 -4
  4. data/app/models/country.rb +2 -2
  5. data/app/models/create.rb +5 -6
  6. data/app/models/create_type.rb +3 -3
  7. data/app/models/donate.rb +5 -5
  8. data/app/models/exemplify.rb +5 -15
  9. data/app/models/extent.rb +4 -4
  10. data/app/models/form_of_work.rb +4 -4
  11. data/app/models/frequency.rb +4 -4
  12. data/app/models/import_request.rb +3 -3
  13. data/app/models/item.rb +13 -11
  14. data/app/models/language.rb +2 -2
  15. data/app/models/license.rb +4 -4
  16. data/app/models/manifestation.rb +55 -30
  17. data/app/models/manifestation_relationship.rb +3 -3
  18. data/app/models/manifestation_relationship_type.rb +4 -4
  19. data/app/models/medium_of_performance.rb +4 -4
  20. data/app/models/own.rb +5 -5
  21. data/app/models/patron.rb +10 -10
  22. data/app/models/patron_import_file.rb +11 -5
  23. data/app/models/patron_import_result.rb +3 -3
  24. data/app/models/patron_relationship.rb +3 -3
  25. data/app/models/patron_relationship_type.rb +4 -4
  26. data/app/models/patron_type.rb +4 -4
  27. data/app/models/picture_file.rb +3 -3
  28. data/app/models/produce.rb +5 -6
  29. data/app/models/produce_type.rb +3 -3
  30. data/app/models/realize.rb +5 -6
  31. data/app/models/realize_type.rb +3 -3
  32. data/app/models/resource_import_file.rb +64 -14
  33. data/app/models/resource_import_result.rb +3 -3
  34. data/app/models/series_has_manifestation.rb +3 -3
  35. data/app/models/series_statement.rb +16 -8
  36. data/app/models/series_statement_relationship.rb +13 -0
  37. data/db/migrate/20120516020924_add_online_isbn_to_manifestation.rb +5 -0
  38. data/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  39. data/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
  40. data/db/migrate/20121119153944_add_manifestation_id_to_item.rb +5 -0
  41. data/lib/enju_biblio/version.rb +1 -1
  42. data/spec/dummy/db/development.sqlite3 +0 -0
  43. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +1 -1
  44. data/spec/dummy/db/schema.rb +13 -11
  45. data/spec/dummy/db/test.sqlite3 +0 -0
  46. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  47. data/spec/dummy/solr/data/test/index/segments_b72 +0 -0
  48. data/spec/fixtures/carrier_types.yml +4 -4
  49. data/spec/fixtures/content_types.yml +4 -4
  50. data/spec/fixtures/countries.yml +2 -2
  51. data/spec/fixtures/create_types.yml +3 -3
  52. data/spec/fixtures/creates.yml +5 -6
  53. data/spec/fixtures/donates.yml +5 -5
  54. data/spec/fixtures/exemplifies.yml +5 -6
  55. data/spec/fixtures/extents.yml +4 -4
  56. data/spec/fixtures/form_of_works.yml +4 -4
  57. data/spec/fixtures/frequencies.yml +4 -4
  58. data/spec/fixtures/import_requests.yml +3 -3
  59. data/spec/fixtures/items.yml +12 -10
  60. data/spec/fixtures/languages.yml +3 -3
  61. data/spec/fixtures/licenses.yml +4 -4
  62. data/spec/fixtures/manifestation_relationship_types.yml +4 -4
  63. data/spec/fixtures/manifestation_relationships.yml +3 -3
  64. data/spec/fixtures/manifestations.yml +17 -21
  65. data/spec/fixtures/medium_of_performances.yml +4 -4
  66. data/spec/fixtures/owns.yml +5 -5
  67. data/spec/fixtures/patron_import_files.yml +3 -3
  68. data/spec/fixtures/patron_import_results.yml +3 -3
  69. data/spec/fixtures/patron_relationship_types.yml +4 -4
  70. data/spec/fixtures/patron_relationships.yml +3 -3
  71. data/spec/fixtures/patron_types.yml +4 -4
  72. data/spec/fixtures/patrons.yml +10 -14
  73. data/spec/fixtures/picture_files.yml +3 -3
  74. data/spec/fixtures/produce_types.yml +3 -3
  75. data/spec/fixtures/produces.yml +5 -6
  76. data/spec/fixtures/realize_types.yml +3 -3
  77. data/spec/fixtures/realizes.yml +5 -6
  78. data/spec/fixtures/resource_import_files.yml +3 -3
  79. data/spec/fixtures/resource_import_results.yml +3 -3
  80. data/spec/fixtures/series_has_manifestations.yml +3 -3
  81. data/spec/fixtures/series_statements.yml +4 -5
  82. data/spec/fixtures/user_group_has_checkout_types.yml +1 -1
  83. data/spec/models/accept_spec.rb +4 -3
  84. data/spec/models/carrier_type_spec.rb +4 -4
  85. data/spec/models/content_type_spec.rb +4 -4
  86. data/spec/models/country_spec.rb +2 -2
  87. data/spec/models/create_spec.rb +5 -6
  88. data/spec/models/create_type_spec.rb +3 -3
  89. data/spec/models/donate_spec.rb +5 -5
  90. data/spec/models/exemplify_spec.rb +5 -5
  91. data/spec/models/extent_spec.rb +4 -4
  92. data/spec/models/form_of_work_spec.rb +4 -4
  93. data/spec/models/frequency_spec.rb +4 -4
  94. data/spec/models/import_request_spec.rb +3 -3
  95. data/spec/models/item_spec.rb +20 -10
  96. data/spec/models/language_spec.rb +2 -2
  97. data/spec/models/license_spec.rb +4 -4
  98. data/spec/models/manifestation_relationship_spec.rb +3 -3
  99. data/spec/models/manifestation_relationship_type_spec.rb +4 -4
  100. data/spec/models/manifestation_spec.rb +17 -14
  101. data/spec/models/medium_of_performance_spec.rb +4 -4
  102. data/spec/models/own_spec.rb +5 -5
  103. data/spec/models/patron_import_file_spec.rb +3 -3
  104. data/spec/models/patron_import_result_spec.rb +3 -3
  105. data/spec/models/patron_relationship_spec.rb +3 -3
  106. data/spec/models/patron_relationship_type_spec.rb +4 -4
  107. data/spec/models/patron_spec.rb +10 -15
  108. data/spec/models/patron_type_spec.rb +4 -4
  109. data/spec/models/picture_file_spec.rb +3 -3
  110. data/spec/models/produce_spec.rb +5 -6
  111. data/spec/models/produce_type_spec.rb +3 -3
  112. data/spec/models/realize_spec.rb +5 -6
  113. data/spec/models/realize_type_spec.rb +3 -3
  114. data/spec/models/resource_import_file_spec.rb +3 -3
  115. data/spec/models/resource_import_result_spec.rb +3 -3
  116. data/spec/models/series_has_manifestation_spec.rb +3 -3
  117. data/spec/models/series_statement_relationship_spec.rb +13 -0
  118. data/spec/models/series_statement_spec.rb +4 -5
  119. metadata +10 -6
  120. data/spec/dummy/solr/data/test/index/segments_8fm +0 -0
@@ -10,15 +10,15 @@ end
10
10
  #
11
11
  # Table name: picture_files
12
12
  #
13
- # id :integer not null, primary key
13
+ # id :integer not null, primary key
14
14
  # picture_attachable_id :integer
15
15
  # picture_attachable_type :string(255)
16
16
  # content_type :string(255)
17
17
  # title :text
18
18
  # thumbnail :string(255)
19
19
  # position :integer
20
- # created_at :datetime not null
21
- # updated_at :datetime not null
20
+ # created_at :datetime not null
21
+ # updated_at :datetime not null
22
22
  # picture_file_name :string(255)
23
23
  # picture_content_type :string(255)
24
24
  # picture_file_size :integer
@@ -6,17 +6,16 @@ describe Produce do
6
6
 
7
7
  end
8
8
 
9
-
10
9
  # == Schema Information
11
10
  #
12
11
  # Table name: produces
13
12
  #
14
- # id :integer not null, primary key
15
- # patron_id :integer not null
16
- # manifestation_id :integer not null
13
+ # id :integer not null, primary key
14
+ # patron_id :integer not null
15
+ # manifestation_id :integer not null
17
16
  # position :integer
18
- # created_at :datetime not null
19
- # updated_at :datetime not null
17
+ # created_at :datetime not null
18
+ # updated_at :datetime not null
20
19
  # produce_type_id :integer
21
20
  #
22
21
 
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: produce_types
12
12
  #
13
- # id :integer not null, primary key
13
+ # id :integer not null, primary key
14
14
  # name :string(255)
15
15
  # display_name :text
16
16
  # note :text
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -6,17 +6,16 @@ describe Realize do
6
6
 
7
7
  end
8
8
 
9
-
10
9
  # == Schema Information
11
10
  #
12
11
  # Table name: realizes
13
12
  #
14
- # id :integer not null, primary key
15
- # patron_id :integer not null
16
- # expression_id :integer not null
13
+ # id :integer not null, primary key
14
+ # patron_id :integer not null
15
+ # expression_id :integer not null
17
16
  # position :integer
18
- # created_at :datetime not null
19
- # updated_at :datetime not null
17
+ # created_at :datetime not null
18
+ # updated_at :datetime not null
20
19
  # realize_type_id :integer
21
20
  #
22
21
 
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: realize_types
12
12
  #
13
- # id :integer not null, primary key
13
+ # id :integer not null, primary key
14
14
  # name :string(255)
15
15
  # display_name :text
16
16
  # note :text
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -154,7 +154,7 @@ end
154
154
  #
155
155
  # Table name: resource_import_files
156
156
  #
157
- # id :integer not null, primary key
157
+ # id :integer not null, primary key
158
158
  # parent_id :integer
159
159
  # content_type :string(255)
160
160
  # size :integer
@@ -166,8 +166,8 @@ end
166
166
  # resource_import_content_type :string(255)
167
167
  # resource_import_file_size :integer
168
168
  # resource_import_updated_at :datetime
169
- # created_at :datetime not null
170
- # updated_at :datetime not null
169
+ # created_at :datetime not null
170
+ # updated_at :datetime not null
171
171
  # edit_mode :string(255)
172
172
  # resource_import_fingerprint :string(255)
173
173
  # error_message :text
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: resource_import_results
12
12
  #
13
- # id :integer not null, primary key
13
+ # id :integer not null, primary key
14
14
  # resource_import_file_id :integer
15
15
  # manifestation_id :integer
16
16
  # item_id :integer
17
17
  # body :text
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -11,11 +11,11 @@ end
11
11
  #
12
12
  # Table name: series_has_manifestations
13
13
  #
14
- # id :integer not null, primary key
14
+ # id :integer not null, primary key
15
15
  # series_statement_id :integer
16
16
  # manifestation_id :integer
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -2,3 +2,16 @@ require 'spec_helper'
2
2
 
3
3
  describe SeriesStatementRelationship do
4
4
  end
5
+
6
+ # == Schema Information
7
+ #
8
+ # Table name: series_statement_relationships
9
+ #
10
+ # id :integer not null, primary key
11
+ # parent_id :integer
12
+ # child_id :integer
13
+ # position :integer
14
+ # created_at :datetime not null
15
+ # updated_at :datetime not null
16
+ #
17
+
@@ -25,24 +25,23 @@ describe SeriesStatement do
25
25
  end
26
26
  end
27
27
 
28
-
29
28
  # == Schema Information
30
29
  #
31
30
  # Table name: series_statements
32
31
  #
33
- # id :integer not null, primary key
32
+ # id :integer not null, primary key
34
33
  # original_title :text
35
34
  # numbering :text
36
35
  # title_subseries :text
37
36
  # numbering_subseries :text
38
37
  # position :integer
39
- # created_at :datetime not null
40
- # updated_at :datetime not null
38
+ # created_at :datetime not null
39
+ # updated_at :datetime not null
41
40
  # title_transcription :text
42
41
  # title_alternative :text
43
42
  # series_statement_identifier :string(255)
44
43
  # issn :string(255)
45
- # periodical :boolean
44
+ # periodical :boolean default(FALSE), not null
46
45
  # root_manifestation_id :integer
47
46
  # note :text
48
47
  # title_subseries_transcription :text
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre10
4
+ version: 0.1.0.pre11
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -482,7 +482,7 @@ dependencies:
482
482
  requirements:
483
483
  - - ~>
484
484
  - !ruby/object:Gem::Version
485
- version: 0.1.0.pre5
485
+ version: 0.1.0.pre8
486
486
  type: :development
487
487
  prerelease: false
488
488
  version_requirements: !ruby/object:Gem::Requirement
@@ -490,7 +490,7 @@ dependencies:
490
490
  requirements:
491
491
  - - ~>
492
492
  - !ruby/object:Gem::Version
493
- version: 0.1.0.pre5
493
+ version: 0.1.0.pre8
494
494
  - !ruby/object:Gem::Dependency
495
495
  name: enju_oai
496
496
  requirement: !ruby/object:Gem::Requirement
@@ -977,8 +977,12 @@ files:
977
977
  - db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
978
978
  - db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
979
979
  - db/migrate/20120511072422_add_patron_identifier_to_patron.rb
980
+ - db/migrate/20120516020924_add_online_isbn_to_manifestation.rb
980
981
  - db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
981
982
  - db/migrate/20120728204337_create_series_statement_relationships.rb
983
+ - db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
984
+ - db/migrate/20121116033446_add_doi_to_manifestation.rb
985
+ - db/migrate/20121119153944_add_manifestation_id_to_item.rb
982
986
  - lib/enju_biblio/biblio_helper.rb
983
987
  - lib/enju_biblio/engine.rb
984
988
  - lib/enju_biblio/openurl.rb
@@ -1188,7 +1192,7 @@ files:
1188
1192
  - spec/dummy/solr/conf/stopwords.txt
1189
1193
  - spec/dummy/solr/conf/synonyms.txt
1190
1194
  - spec/dummy/solr/data/test/index/segments.gen
1191
- - spec/dummy/solr/data/test/index/segments_8fm
1195
+ - spec/dummy/solr/data/test/index/segments_b72
1192
1196
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1193
1197
  - spec/dummy/solr/data/test/spellchecker/segments_1
1194
1198
  - spec/factories/accepts.rb
@@ -1627,7 +1631,7 @@ test_files:
1627
1631
  - spec/dummy/solr/conf/stopwords.txt
1628
1632
  - spec/dummy/solr/conf/synonyms.txt
1629
1633
  - spec/dummy/solr/data/test/index/segments.gen
1630
- - spec/dummy/solr/data/test/index/segments_8fm
1634
+ - spec/dummy/solr/data/test/index/segments_b72
1631
1635
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1632
1636
  - spec/dummy/solr/data/test/spellchecker/segments_1
1633
1637
  - spec/factories/accepts.rb