enju_flower 0.1.0.pre20 → 0.1.0.pre21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -0
  3. data/app/views/manifestations/_index_form_series_statement.html.erb +1 -1
  4. data/app/views/manifestations/_manifestation.html.erb +4 -1
  5. data/app/views/manifestations/_show_detail_librarian.html.erb +3 -1
  6. data/app/views/manifestations/_show_holding.html.erb +5 -0
  7. data/app/views/manifestations/index.html.erb +7 -2
  8. data/app/views/manifestations/index.mobile.erb +1 -1
  9. data/app/views/manifestations/index.rdf.builder +1 -1
  10. data/app/views/manifestations/index.rss.builder +3 -3
  11. data/app/views/manifestations/index.sru.builder +1 -1
  12. data/app/views/manifestations/show.html.erb +1 -1
  13. data/app/views/manifestations/show.mobile.erb +1 -1
  14. data/app/views/manifestations/show.mods.builder +1 -1
  15. data/app/views/manifestations/show.rdf.builder +1 -1
  16. data/lib/enju_flower/version.rb +1 -1
  17. data/spec/controllers/manifestations_controller_spec.rb +115 -116
  18. data/spec/dummy/bin/bundle +3 -0
  19. data/spec/dummy/bin/rails +4 -0
  20. data/spec/dummy/bin/rake +4 -0
  21. data/spec/dummy/bin/setup +29 -0
  22. data/spec/dummy/config/application.rb +1 -1
  23. data/spec/dummy/config/database.yml +23 -18
  24. data/spec/dummy/config/environments/test.rb +1 -1
  25. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +5 -1
  26. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
  27. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
  28. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
  29. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  30. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +5 -1
  31. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
  32. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
  33. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
  34. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
  35. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
  36. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  37. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  38. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  39. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
  40. data/spec/dummy/db/schema.rb +5 -1
  41. data/spec/factories/agent.rb +1 -1
  42. data/spec/factories/create_types.rb +1 -1
  43. data/spec/factories/item.rb +8 -0
  44. data/spec/factories/produce_types.rb +1 -1
  45. data/spec/factories/realize_types.rb +1 -1
  46. data/spec/factories/series_statement.rb +5 -0
  47. data/spec/fixtures/agent_relationship_types.yml +5 -6
  48. data/spec/fixtures/agent_types.yml +5 -6
  49. data/spec/fixtures/agents.yml +0 -1
  50. data/spec/fixtures/carrier_types.yml +18 -19
  51. data/spec/fixtures/checkout_types.yml +34 -0
  52. data/spec/fixtures/circulation_statuses.yml +136 -0
  53. data/spec/fixtures/content_types.yml +80 -18
  54. data/spec/fixtures/frequencies.yml +34 -51
  55. data/spec/fixtures/identifier_types.yml +9 -3
  56. data/spec/fixtures/identifiers.yml +9 -3
  57. data/spec/fixtures/manifestations.yml +129 -119
  58. data/spec/fixtures/medium_of_performances.yml +4 -5
  59. data/spec/fixtures/profiles.yml +1 -1
  60. data/spec/fixtures/use_restrictions.yml +93 -0
  61. data/spec/fixtures/user_groups.yml +2 -2
  62. data/spec/fixtures/users.yml +4 -1
  63. data/spec/spec_helper.rb +4 -0
  64. data/spec/views/manifestations/index.html.erb_spec.rb +59 -0
  65. metadata +72 -158
  66. data/app/helpers/manifestations_helper.rb +0 -176
  67. data/app/views/manifestations/_submenu_parent.html.erb +0 -8
  68. data/spec/dummy/db/development.sqlite3 +0 -0
  69. data/spec/dummy/db/test.sqlite3 +0 -0
  70. data/spec/dummy/script/rails +0 -6
  71. data/spec/dummy/solr/conf/admin-extra.html +0 -31
  72. data/spec/dummy/solr/conf/elevate.xml +0 -36
  73. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
  74. data/spec/dummy/solr/conf/protwords.txt +0 -21
  75. data/spec/dummy/solr/conf/schema.xml +0 -255
  76. data/spec/dummy/solr/conf/scripts.conf +0 -24
  77. data/spec/dummy/solr/conf/solrconfig.xml +0 -667
  78. data/spec/dummy/solr/conf/spellings.txt +0 -2
  79. data/spec/dummy/solr/conf/stopwords.txt +0 -58
  80. data/spec/dummy/solr/conf/synonyms.txt +0 -31
  81. data/spec/dummy/solr/default/data/index/_d2.fdt +0 -0
  82. data/spec/dummy/solr/default/data/index/_d2.fdx +0 -0
  83. data/spec/dummy/solr/default/data/index/_d2.fnm +0 -0
  84. data/spec/dummy/solr/default/data/index/_d2.nvd +0 -0
  85. data/spec/dummy/solr/default/data/index/_d2.nvm +0 -0
  86. data/spec/dummy/solr/default/data/index/_d2.si +0 -0
  87. data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.doc +0 -0
  88. data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.pos +0 -0
  89. data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.tim +0 -0
  90. data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.tip +0 -0
  91. data/spec/dummy/solr/default/data/index/_d3.fdt +0 -0
  92. data/spec/dummy/solr/default/data/index/_d3.fdx +0 -0
  93. data/spec/dummy/solr/default/data/index/_d3.fnm +0 -0
  94. data/spec/dummy/solr/default/data/index/_d3.nvd +0 -0
  95. data/spec/dummy/solr/default/data/index/_d3.nvm +0 -0
  96. data/spec/dummy/solr/default/data/index/_d3.si +0 -0
  97. data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.doc +0 -0
  98. data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.pos +0 -0
  99. data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.tim +0 -0
  100. data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.tip +0 -0
  101. data/spec/dummy/solr/default/data/index/_d4.fdt +0 -0
  102. data/spec/dummy/solr/default/data/index/_d4.fdx +0 -0
  103. data/spec/dummy/solr/default/data/index/_d4.fnm +0 -0
  104. data/spec/dummy/solr/default/data/index/_d4.nvd +0 -0
  105. data/spec/dummy/solr/default/data/index/_d4.nvm +0 -0
  106. data/spec/dummy/solr/default/data/index/_d4.si +0 -0
  107. data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.doc +0 -0
  108. data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.pos +0 -0
  109. data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.tim +0 -0
  110. data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.tip +0 -0
  111. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  112. data/spec/dummy/solr/default/data/index/segments_hk +0 -0
  113. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000628 +0 -0
  114. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000629 +0 -0
  115. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000630 +0 -0
  116. data/spec/dummy/solr/development/data/index/segments.gen +0 -0
  117. data/spec/dummy/solr/development/data/index/segments_1 +0 -0
  118. data/spec/dummy/solr/solr.xml +0 -8
  119. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  120. data/spec/dummy/solr/test/data/index/segments_1 +0 -0
  121. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  122. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  123. data/spec/dummy/tmp/cache/assets/test/sprockets/006a5adcd278a9c5c9df80a7a2b414e6 +0 -0
  124. data/spec/dummy/tmp/cache/assets/test/sprockets/00a6cf2442f0e06a50f5c5f44d7aff65 +0 -0
  125. data/spec/dummy/tmp/cache/assets/test/sprockets/11f06eac4db4fb45d3bb109e7f97c1c9 +0 -0
  126. data/spec/dummy/tmp/cache/assets/test/sprockets/1f84f73be56154eba5c29f8ef2ac2177 +0 -0
  127. data/spec/dummy/tmp/cache/assets/test/sprockets/5867d1b0ac4e0597324985236c19a68f +0 -0
  128. data/spec/dummy/tmp/cache/assets/test/sprockets/59e554f7bfa724cc56b5d8cb56ef333a +0 -0
  129. data/spec/dummy/tmp/cache/assets/test/sprockets/67565528560062a46655ddd9d226e508 +0 -0
  130. data/spec/dummy/tmp/cache/assets/test/sprockets/6e466646ae89de53fd9397ce2555ca91 +0 -0
  131. data/spec/dummy/tmp/cache/assets/test/sprockets/75a69bb28a2f0aac5401bd0e5f65effc +0 -0
  132. data/spec/dummy/tmp/cache/assets/test/sprockets/bd6a0f9e031203673fda12a83251f03b +0 -0
  133. data/spec/dummy/tmp/cache/assets/test/sprockets/d49e28dc6b072432f42b121b05195488 +0 -0
  134. data/spec/dummy/tmp/cache/assets/test/sprockets/ebc83b1f2325c61a70d933aa7a17df5a +0 -0
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -47,7 +47,7 @@ module Dummy
47
47
  # This will create an empty whitelist of attributes available for mass-assignment for all models
48
48
  # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
49
49
  # parameters by using an attr_accessible or attr_protected declaration.
50
- config.active_record.whitelist_attributes = true
50
+ #config.active_record.whitelist_attributes = true
51
51
 
52
52
  # Enable the asset pipeline
53
53
  config.assets.enabled = true
@@ -1,25 +1,30 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
1
+ sqlite: &sqlite
7
2
  adapter: sqlite3
8
- database: db/development.sqlite3
3
+ database: db/<%= Rails.env %>.sqlite3
4
+
5
+ mysql: &mysql
6
+ adapter: mysql2
7
+ username: root
8
+ password:
9
+ database: enju_<%= Rails.env %>
10
+
11
+ postgresql: &postgresql
12
+ adapter: postgresql
13
+ username: postgres
14
+ password:
15
+ database: enju_<%= Rails.env %>
16
+
17
+ defaults: &defaults
9
18
  pool: 5
10
19
  timeout: 5000
20
+ host: localhost
21
+ <<: *<%= ENV['DB'] || "sqlite" %>
22
+
23
+ development:
24
+ <<: *defaults
11
25
 
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
26
  test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
27
+ <<: *defaults
20
28
 
21
29
  production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
30
+ <<: *defaults
@@ -31,7 +31,7 @@ Dummy::Application.configure do
31
31
  config.action_mailer.delivery_method = :test
32
32
 
33
33
  # Raise exception on mass assignment protection for Active Record models
34
- config.active_record.mass_assignment_sanitizer = :strict
34
+ #config.active_record.mass_assignment_sanitizer = :strict
35
35
 
36
36
  # Print deprecation notices to the stderr
37
37
  config.active_support.deprecation = :stderr
@@ -2,7 +2,11 @@ class CreateReserveTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :reserve_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :reserve_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateResourceImportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :resource_import_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :resource_import_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateImportRequestTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :import_request_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :import_request_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateAgentImportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :agent_import_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :agent_import_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserImportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_import_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateBookmarkStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :bookmark_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :bookmark_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserCheckoutStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_checkout_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_checkout_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserReserveStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_reserve_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_reserve_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateManifestationCheckoutStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :manifestation_checkout_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :manifestation_checkout_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateManifestationReserveStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :manifestation_reserve_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :manifestation_reserve_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateResourceExportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :resource_export_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :resource_export_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserExportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_export_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_export_file_id
8
12
  t.timestamps
@@ -0,0 +1,5 @@
1
+ class AddFullNameTranscriptionToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :full_name_transcription, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDateOfBirthToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :date_of_birth, :datetime
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddShelfIdToCheckout < ActiveRecord::Migration
2
+ def change
3
+ add_column :checkouts, :shelf_id, :integer
4
+ add_index :checkouts, :shelf_id
5
+ end
6
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20140823095740) do
14
+ ActiveRecord::Schema.define(version: 20141014065831) do
15
15
 
16
16
  create_table "accepts", force: true do |t|
17
17
  t.integer "basket_id"
@@ -337,6 +337,7 @@ ActiveRecord::Schema.define(version: 20140823095740) do
337
337
  t.integer "lock_version", default: 0, null: false
338
338
  t.datetime "created_at"
339
339
  t.datetime "updated_at"
340
+ t.integer "shelf_id"
340
341
  end
341
342
 
342
343
  add_index "checkouts", ["basket_id"], name: "index_checkouts_on_basket_id"
@@ -344,6 +345,7 @@ ActiveRecord::Schema.define(version: 20140823095740) do
344
345
  add_index "checkouts", ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
345
346
  add_index "checkouts", ["item_id"], name: "index_checkouts_on_item_id"
346
347
  add_index "checkouts", ["librarian_id"], name: "index_checkouts_on_librarian_id"
348
+ add_index "checkouts", ["shelf_id"], name: "index_checkouts_on_shelf_id"
347
349
  add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
348
350
 
349
351
  create_table "circulation_statuses", force: true do |t|
@@ -867,6 +869,8 @@ ActiveRecord::Schema.define(version: 20140823095740) do
867
869
  t.boolean "save_checkout_history", default: false, null: false
868
870
  t.datetime "expired_at"
869
871
  t.boolean "share_bookmarks"
872
+ t.text "full_name_transcription"
873
+ t.datetime "date_of_birth"
870
874
  end
871
875
 
872
876
  add_index "profiles", ["checkout_icalendar_token"], name: "index_profiles_on_checkout_icalendar_token", unique: true
@@ -1,7 +1,7 @@
1
1
  FactoryGirl.define do
2
2
  factory :agent do |f|
3
3
  f.sequence(:full_name){|n| "full_name_#{n}"}
4
- f.agent_type_id{AgentType.find_by_name('Person').id}
4
+ f.agent_type_id{AgentType.find_by_name('person').id}
5
5
  f.country_id{Country.first.id}
6
6
  f.language_id{Language.first.id}
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  FactoryGirl.define do
4
4
  factory :create_type do
5
- name "MyString"
5
+ name "mystring"
6
6
  display_name "MyText"
7
7
  note "MyText"
8
8
  end
@@ -4,4 +4,12 @@ FactoryGirl.define do
4
4
  f.circulation_status_id{CirculationStatus.find(1).id}
5
5
  f.manifestation_id{FactoryGirl.create(:manifestation).id}
6
6
  end
7
+
8
+ factory :item_for_checkout, class: Item do |f|
9
+ f.sequence(:item_identifier){|n| "item_#{n}"}
10
+ f.shelf_id {Shelf.find(2).id}
11
+ f.circulation_status_id {CirculationStatus.find(2).id}
12
+ f.use_restriction {UseRestriction.find(4)}
13
+ f.manifestation_id {FactoryGirl.create(:manifestation).id}
14
+ end
7
15
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  FactoryGirl.define do
4
4
  factory :produce_type do
5
- name "MyString"
5
+ name "mystring"
6
6
  display_name "MyText"
7
7
  note "MyText"
8
8
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  FactoryGirl.define do
4
4
  factory :realize_type do
5
- name "MyString"
5
+ name "mystring"
6
6
  display_name "MyText"
7
7
  note "MyText"
8
8
  end
@@ -2,4 +2,9 @@ FactoryGirl.define do
2
2
  factory :series_statement do |f|
3
3
  f.sequence(:original_title){|n| "series_statement_#{n}"}
4
4
  end
5
+ factory :series_statement_serial, class: SeriesStatement do |f|
6
+ f.sequence(:original_title){|n| "series_statement_serial_#{n}" }
7
+ #f.root_manifestation_id{FactoryGirl.create(:manifestation_serial).id}
8
+ f.series_master{true}
9
+ end
5
10
  end
@@ -2,19 +2,19 @@
2
2
 
3
3
  agent_relationship_type_00001:
4
4
  id: 1
5
- name: See also
5
+ name: see_also
6
6
  display_name: See also
7
7
  note:
8
8
  position: 1
9
9
  agent_relationship_type_00002:
10
10
  id: 2
11
- name: Member
11
+ name: member
12
12
  display_name: Member
13
13
  note:
14
14
  position: 2
15
15
  agent_relationship_type_00003:
16
16
  id: 3
17
- name: Child
17
+ name: child
18
18
  display_name: Child
19
19
  note:
20
20
  position: 3
@@ -28,7 +28,6 @@ agent_relationship_type_00003:
28
28
  # display_name :text
29
29
  # note :text
30
30
  # position :integer
31
- # created_at :datetime not null
32
- # updated_at :datetime not null
31
+ # created_at :datetime
32
+ # updated_at :datetime
33
33
  #
34
-
@@ -1,21 +1,21 @@
1
1
  ---
2
2
  agent_type_00001:
3
3
  id: 1
4
- name: Person
4
+ name: person
5
5
  display_name: Person
6
6
  note:
7
7
  position: 1
8
8
 
9
9
  agent_type_00002:
10
10
  id: 2
11
- name: CorporateBody
11
+ name: corporate_body
12
12
  display_name: CorporateBody
13
13
  note:
14
14
  position: 2
15
15
 
16
16
  agent_type_00003:
17
17
  id: 3
18
- name: Conference
18
+ name: conference
19
19
  display_name: Conference
20
20
  note:
21
21
  position: 3
@@ -29,7 +29,6 @@ agent_type_00003:
29
29
  # display_name :text
30
30
  # note :text
31
31
  # position :integer
32
- # created_at :datetime not null
33
- # updated_at :datetime not null
32
+ # created_at :datetime
33
+ # updated_at :datetime
34
34
  #
35
-