enju_standalone_interface 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +35 -0
  4. data/app/assets/javascripts/enju_standalone_interface/application.js +15 -0
  5. data/app/assets/javascripts/enju_standalone_interface/batch_action.js +2 -0
  6. data/app/assets/stylesheets/enju_standalone_interface/application.css +13 -0
  7. data/app/assets/stylesheets/enju_standalone_interface/batch_action.css +4 -0
  8. data/app/controllers/application_controller.rb +4 -0
  9. data/app/controllers/batch_action_controller.rb +9 -0
  10. data/app/helpers/enju_standalone_interface/application_helper.rb +4 -0
  11. data/app/helpers/enju_standalone_interface/batch_action_helper.rb +4 -0
  12. data/app/views/enju_standalone_interface/batch_action/recept.html.erb +1 -0
  13. data/app/views/layouts/enju_standalone_interface/application.html.erb +14 -0
  14. data/config/routes.rb +3 -0
  15. data/lib/enju_standalone_interface.rb +233 -0
  16. data/lib/enju_standalone_interface/engine.rb +5 -0
  17. data/lib/enju_standalone_interface/version.rb +3 -0
  18. data/lib/tasks/enju_standalone_interface_tasks.rake +4 -0
  19. data/spec/controllers/enju_standalone_interface/batch_action_controller_spec.rb +21 -0
  20. data/spec/dummy/README.rdoc +261 -0
  21. data/spec/dummy/Rakefile +7 -0
  22. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  23. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/helpers/users_helper.rb +36 -0
  27. data/spec/dummy/app/models/basket.rb +70 -0
  28. data/spec/dummy/app/models/carrier_type.rb +33 -0
  29. data/spec/dummy/app/models/checked_item.rb +177 -0
  30. data/spec/dummy/app/models/checkout.rb +307 -0
  31. data/spec/dummy/app/models/checkout_type.rb +33 -0
  32. data/spec/dummy/app/models/circulation_status.rb +23 -0
  33. data/spec/dummy/app/models/event.rb +124 -0
  34. data/spec/dummy/app/models/item.rb +1234 -0
  35. data/spec/dummy/app/models/item_has_use_restriction.rb +23 -0
  36. data/spec/dummy/app/models/lending_policy.rb +32 -0
  37. data/spec/dummy/app/models/library.rb +105 -0
  38. data/spec/dummy/app/models/library_group.rb +88 -0
  39. data/spec/dummy/app/models/manifestation.rb +698 -0
  40. data/spec/dummy/app/models/patron.rb +342 -0
  41. data/spec/dummy/app/models/role.rb +47 -0
  42. data/spec/dummy/app/models/shelf.rb +83 -0
  43. data/spec/dummy/app/models/use_restriction.rb +22 -0
  44. data/spec/dummy/app/models/user.rb +580 -0
  45. data/spec/dummy/app/models/user_group.rb +43 -0
  46. data/spec/dummy/app/models/user_group_has_checkout_type.rb +80 -0
  47. data/spec/dummy/app/models/user_has_role.rb +4 -0
  48. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  49. data/spec/dummy/config.ru +4 -0
  50. data/spec/dummy/config/application.rb +57 -0
  51. data/spec/dummy/config/boot.rb +10 -0
  52. data/spec/dummy/config/database.yml +25 -0
  53. data/spec/dummy/config/environment.rb +5 -0
  54. data/spec/dummy/config/environments/development.rb +37 -0
  55. data/spec/dummy/config/environments/production.rb +67 -0
  56. data/spec/dummy/config/environments/test.rb +37 -0
  57. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  58. data/spec/dummy/config/initializers/inflections.rb +15 -0
  59. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  60. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  61. data/spec/dummy/config/initializers/session_store.rb +8 -0
  62. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  63. data/spec/dummy/config/locales/en.yml +5 -0
  64. data/spec/dummy/config/locales/translation_en.yml +1724 -0
  65. data/spec/dummy/config/locales/validates_timeliness.en.yml +16 -0
  66. data/spec/dummy/config/routes.rb +4 -0
  67. data/spec/dummy/db/development.sqlite3 +0 -0
  68. data/spec/dummy/db/migrate/20120322223037_create_users.rb +71 -0
  69. data/spec/dummy/db/migrate/20120323053037_create_roles.rb +15 -0
  70. data/spec/dummy/db/migrate/20120323060718_create_user_has_roles.rb +10 -0
  71. data/spec/dummy/db/migrate/20120323062239_create_libraries.rb +37 -0
  72. data/spec/dummy/db/migrate/20120323063602_create_items.rb +33 -0
  73. data/spec/dummy/db/migrate/20120323064619_craete_circulation_statuses.rb +13 -0
  74. data/spec/dummy/db/migrate/20120323065157_craete_checkout_types.rb +13 -0
  75. data/spec/dummy/db/migrate/20120323070102_craete_shelves.rb +17 -0
  76. data/spec/dummy/db/migrate/20120323071616_craete_library_groups.rb +24 -0
  77. data/spec/dummy/db/migrate/20120323073022_craete_patrons.rb +72 -0
  78. data/spec/dummy/db/migrate/20120323141030_create_manifestations.rb +97 -0
  79. data/spec/dummy/db/migrate/20120323142330_create_carrier_types.rb +12 -0
  80. data/spec/dummy/db/migrate/20120324132708_create_baskets.rb +20 -0
  81. data/spec/dummy/db/migrate/20120324135409_checked_items.rb +16 -0
  82. data/spec/dummy/db/migrate/20120324141007_create_user_groups.rb +22 -0
  83. data/spec/dummy/db/migrate/20120324141950_create_user_group_has_checkout_type.rb +26 -0
  84. data/spec/dummy/db/migrate/20120324151951_create_lending_policies.rb +22 -0
  85. data/spec/dummy/db/migrate/20120324153756_create_use_restrictions.rb +15 -0
  86. data/spec/dummy/db/migrate/20120324154009_create_item_has_use_restrictions.rb +16 -0
  87. data/spec/dummy/db/migrate/20120324164815_create_checkouts.rb +26 -0
  88. data/spec/dummy/db/migrate/20120325160112_create_events.rb +23 -0
  89. data/spec/dummy/db/schema.rb +518 -0
  90. data/spec/dummy/db/test.sqlite3 +0 -0
  91. data/spec/dummy/lib/enju_leaf.rb +6 -0
  92. data/spec/dummy/lib/enju_leaf/master_model.rb +41 -0
  93. data/spec/dummy/lib/enju_leaf/url_validator.rb +10 -0
  94. data/spec/dummy/log/development.log +116 -0
  95. data/spec/dummy/log/test.log +17849 -0
  96. data/spec/dummy/public/404.html +26 -0
  97. data/spec/dummy/public/422.html +26 -0
  98. data/spec/dummy/public/500.html +25 -0
  99. data/spec/dummy/public/favicon.ico +0 -0
  100. data/spec/dummy/script/rails +6 -0
  101. data/spec/factories/item.rb +9 -0
  102. data/spec/factories/manifestation.rb +6 -0
  103. data/spec/factories/user.rb +27 -0
  104. data/spec/fixtures/carrier_types.yml +38 -0
  105. data/spec/fixtures/checkout_types.yml +34 -0
  106. data/spec/fixtures/circulation_statuses.yml +135 -0
  107. data/spec/fixtures/libraries.yml +40 -0
  108. data/spec/fixtures/roles.yml +21 -0
  109. data/spec/fixtures/shelves.yml +53 -0
  110. data/spec/fixtures/user_group_has_checkout_types.yml +14 -0
  111. data/spec/fixtures/user_groups.yml +7 -0
  112. data/spec/libs/enju_standalone_interface_spec.rb +133 -0
  113. data/spec/spec_helper.rb +36 -0
  114. metadata +358 -0
@@ -0,0 +1,16 @@
1
+ en:
2
+ errors:
3
+ messages:
4
+ invalid_date: "is not a valid date"
5
+ invalid_time: "is not a valid time"
6
+ invalid_datetime: "is not a valid datetime"
7
+ is_at: "must be at %{restriction}"
8
+ before: "must be before %{restriction}"
9
+ on_or_before: "must be on or before %{restriction}"
10
+ after: "must be after %{restriction}"
11
+ on_or_after: "must be on or after %{restriction}"
12
+ validates_timeliness:
13
+ error_value_formats:
14
+ date: '%Y-%m-%d'
15
+ time: '%H:%M:%S'
16
+ datetime: '%Y-%m-%d %H:%M:%S'
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount EnjuStandaloneInterface::Engine => "/enju_standalone_interface"
4
+ end
@@ -0,0 +1,71 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string "email", :default => ""
5
+ t.string "encrypted_password"
6
+ t.string "confirmation_token"
7
+ t.datetime "confirmed_at"
8
+ t.datetime "confirmation_sent_at"
9
+ t.string "reset_password_token"
10
+ t.datetime "reset_password_sent_at"
11
+ t.string "remember_token"
12
+ t.datetime "remember_created_at"
13
+ t.integer "sign_in_count", :default => 0
14
+ t.datetime "current_sign_in_at"
15
+ t.datetime "last_sign_in_at"
16
+ t.string "current_sign_in_ip"
17
+ t.string "last_sign_in_ip"
18
+ t.integer "failed_attempts", :default => 0
19
+ t.string "unlock_token"
20
+ t.datetime "locked_at"
21
+ t.string "authentication_token"
22
+ t.string "password_salt"
23
+ t.datetime "created_at", :null => false
24
+ t.datetime "updated_at", :null => false
25
+ t.datetime "deleted_at"
26
+ t.string "username"
27
+ t.integer "library_id", :default => 1, :null => false
28
+ t.integer "user_group_id", :default => 1, :null => false
29
+ t.integer "reserves_count", :default => 0, :null => false
30
+ t.datetime "expired_at"
31
+ t.integer "libraries_count", :default => 0, :null => false
32
+ t.integer "bookmarks_count", :default => 0, :null => false
33
+ t.integer "checkouts_count", :default => 0, :null => false
34
+ t.string "checkout_icalendar_token"
35
+ t.integer "questions_count", :default => 0, :null => false
36
+ t.integer "answers_count", :default => 0, :null => false
37
+ t.string "answer_feed_token"
38
+ t.integer "due_date_reminder_days", :default => 1, :null => false
39
+ t.text "note"
40
+ t.boolean "share_bookmarks", :default => false, :null => false
41
+ t.boolean "save_search_history", :default => false, :null => false
42
+ t.boolean "save_checkout_history", :default => false, :null => false
43
+ t.integer "required_role_id", :default => 1, :null => false
44
+ t.text "keyword_list"
45
+ t.string "user_number"
46
+ t.string "state"
47
+ t.integer "required_score", :default => 0, :null => false
48
+ t.string "locale"
49
+ t.string "openid_identifier"
50
+ t.string "oauth_token"
51
+ t.string "oauth_secret"
52
+ t.string "enju_access_key"
53
+ t.boolean "unable"
54
+
55
+ t.timestamps
56
+ end
57
+ add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true
58
+ add_index "users", ["email"], :name => "index_users_on_email"
59
+ add_index "users", ["enju_access_key"], :name => "index_users_on_enju_access_key", :unique => true
60
+ add_index "users", ["oauth_secret"], :name => "index_users_on_oauth_secret", :unique => true
61
+ add_index "users", ["oauth_token"], :name => "index_users_on_oauth_token", :unique => true
62
+ add_index "users", ["openid_identifier"], :name => "index_users_on_openid_identifier"
63
+ add_index "users", ["remember_token"], :name => "index_users_on_remember_token", :unique => true
64
+ add_index "users", ["required_role_id"], :name => "index_users_on_required_role_id"
65
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
66
+ add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
67
+ add_index "users", ["user_group_id"], :name => "index_users_on_user_group_id"
68
+ add_index "users", ["user_number"], :name => "index_users_on_user_number", :unique => true
69
+ add_index "users", ["username"], :name => "index_users_on_username", :unique => true
70
+ end
71
+ end
@@ -0,0 +1,15 @@
1
+ class CreateRoles < ActiveRecord::Migration
2
+ def change
3
+ create_table "roles", :force => true do |t|
4
+ t.string "name", :null => false
5
+ t.string "display_name"
6
+ t.text "note"
7
+ t.datetime "created_at"
8
+ t.datetime "updated_at"
9
+ t.integer "score", :default => 0, :null => false
10
+ t.integer "position"
11
+
12
+ t.timestamps
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,10 @@
1
+ class CreateUserHasRoles < ActiveRecord::Migration
2
+ def change
3
+ create_table :user_has_roles do |t|
4
+ t.integer :user_id
5
+ t.integer :role_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,37 @@
1
+ class CreateLibraries < ActiveRecord::Migration
2
+ def change
3
+ create_table "libraries" do |t|
4
+ t.integer "patron_id"
5
+ t.string "patron_type"
6
+ t.string "name", :null => false
7
+ t.text "display_name"
8
+ t.string "short_display_name", :null => false
9
+ t.string "zip_code"
10
+ t.text "street"
11
+ t.text "locality"
12
+ t.text "region"
13
+ t.string "telephone_number_1"
14
+ t.string "telephone_number_2"
15
+ t.string "fax_number"
16
+ t.text "note"
17
+ t.integer "call_number_rows", :default => 1, :null => false
18
+ t.string "call_number_delimiter", :default => "|", :null => false
19
+ t.integer "library_group_id", :default => 1, :null => false
20
+ t.integer "users_count", :default => 0, :null => false
21
+ t.integer "position"
22
+ t.integer "country_id"
23
+ t.datetime "created_at", :null => false
24
+ t.datetime "updated_at", :null => false
25
+ t.datetime "deleted_at"
26
+ t.text "opening_hour"
27
+ t.float "latitude"
28
+ t.float "longitude"
29
+ t.string "calil_systemid"
30
+ t.text "calil_neighborhood_systemid"
31
+ end
32
+
33
+ add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
34
+ add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
35
+ add_index "libraries", ["patron_id"], :name => "index_libraries_on_patron_id", :unique => true
36
+ end
37
+ end
@@ -0,0 +1,33 @@
1
+ class CreateItems < ActiveRecord::Migration
2
+ def change
3
+ create_table "items", :force => true do |t|
4
+ t.string "call_number"
5
+ t.string "item_identifier"
6
+ t.integer "circulation_status_id", :null => false
7
+ t.integer "checkout_type_id", :default => 1, :null => false
8
+ t.datetime "created_at", :null => false
9
+ t.datetime "updated_at", :null => false
10
+ t.datetime "deleted_at"
11
+ t.integer "shelf_id", :default => 1, :null => false
12
+ t.boolean "include_supplements", :default => false, :null => false
13
+ t.integer "checkouts_count", :default => 0, :null => false
14
+ t.integer "owns_count", :default => 0, :null => false
15
+ t.text "note"
16
+ t.string "url"
17
+ t.integer "price"
18
+ t.integer "lock_version", :default => 0, :null => false
19
+ t.integer "required_role_id", :default => 1, :null => false
20
+ t.string "state"
21
+ t.integer "required_score", :default => 0, :null => false
22
+ t.datetime "acquired_at"
23
+ t.integer "bookstore_id"
24
+ t.datetime "removed_at"
25
+ end
26
+
27
+ add_index :items, :circulation_status_id
28
+ add_index :items, :checkout_type_id
29
+ add_index :items, :shelf_id
30
+ add_index :items, :item_identifier
31
+ add_index :items, :required_role_id
32
+ end
33
+ end
@@ -0,0 +1,13 @@
1
+ class CraeteCirculationStatuses < ActiveRecord::Migration
2
+ def change
3
+ create_table "circulation_statuses" do |t|
4
+ t.string "name", :null => false
5
+ t.text "display_name"
6
+ t.text "note"
7
+ t.integer "position"
8
+ t.datetime "created_at", :null => false
9
+ t.datetime "updated_at", :null => false
10
+ end
11
+ end
12
+
13
+ end
@@ -0,0 +1,13 @@
1
+ class CraeteCheckoutTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table "checkout_types", :force => true do |t|
4
+ t.string "name", :null => false
5
+ t.text "display_name"
6
+ t.text "note"
7
+ t.integer "position"
8
+ t.datetime "created_at", :null => false
9
+ t.datetime "updated_at", :null => false
10
+ end
11
+ end
12
+
13
+ end
@@ -0,0 +1,17 @@
1
+ class CraeteShelves < ActiveRecord::Migration
2
+ def change
3
+ create_table "shelves" do |t|
4
+ t.string "name", :null => false
5
+ t.text "display_name"
6
+ t.text "note"
7
+ t.integer "library_id", :default => 1, :null => false
8
+ t.integer "items_count", :default => 0, :null => false
9
+ t.integer "position"
10
+ t.datetime "created_at", :null => false
11
+ t.datetime "updated_at", :null => false
12
+ t.datetime "deleted_at"
13
+ t.integer "open_access", :default => 0, :null => false
14
+ end
15
+ end
16
+
17
+ end
@@ -0,0 +1,24 @@
1
+ class CraeteLibraryGroups < ActiveRecord::Migration
2
+ def change
3
+ create_table "library_groups", :force => true do |t|
4
+ t.string "name", :null => false
5
+ t.text "display_name"
6
+ t.string "short_name", :null => false
7
+ t.string "email"
8
+ t.text "my_networks"
9
+ t.boolean "use_dsbl", :default => false, :null => false
10
+ t.text "dsbl_list"
11
+ t.text "login_banner"
12
+ t.text "note"
13
+ t.boolean "post_to_union_catalog", :default => false, :null => false
14
+ t.integer "country_id"
15
+ t.datetime "created_at", :null => false
16
+ t.datetime "updated_at", :null => false
17
+ t.text "admin_networks"
18
+ t.boolean "allow_bookmark_external_url", :default => false, :null => false
19
+ t.integer "position"
20
+ t.string "url", :default => "http://localhost:3000/"
21
+ end
22
+ end
23
+
24
+ end
@@ -0,0 +1,72 @@
1
+ class CraetePatrons < ActiveRecord::Migration
2
+ def change
3
+ create_table "patrons", :force => true do |t|
4
+ t.integer "user_id"
5
+ t.string "last_name"
6
+ t.string "middle_name"
7
+ t.string "first_name"
8
+ t.string "last_name_transcription"
9
+ t.string "middle_name_transcription"
10
+ t.string "first_name_transcription"
11
+ t.string "corporate_name"
12
+ t.string "corporate_name_transcription"
13
+ t.string "full_name"
14
+ t.text "full_name_transcription"
15
+ t.text "full_name_alternative"
16
+ t.datetime "created_at", :null => false
17
+ t.datetime "updated_at", :null => false
18
+ t.datetime "deleted_at"
19
+ t.string "zip_code_1"
20
+ t.string "zip_code_2"
21
+ t.text "address_1"
22
+ t.text "address_2"
23
+ t.text "address_1_note"
24
+ t.text "address_2_note"
25
+ t.string "telephone_number_1"
26
+ t.string "telephone_number_2"
27
+ t.string "fax_number_1"
28
+ t.string "fax_number_2"
29
+ t.text "other_designation"
30
+ t.text "place"
31
+ t.text "street"
32
+ t.text "locality"
33
+ t.text "region"
34
+ t.datetime "date_of_birth"
35
+ t.datetime "date_of_death"
36
+ t.integer "language_id", :default => 1, :null => false
37
+ t.integer "country_id", :default => 1, :null => false
38
+ t.integer "patron_type_id", :default => 1, :null => false
39
+ t.integer "lock_version", :default => 0, :null => false
40
+ t.text "note"
41
+ t.integer "required_role_id", :default => 1, :null => false
42
+ t.integer "required_score", :default => 0, :null => false
43
+ t.string "state"
44
+ t.text "email"
45
+ t.text "url"
46
+ t.text "full_name_alternative_transcription"
47
+ t.string "title"
48
+ t.string "birth_date"
49
+ t.string "death_date"
50
+ t.datetime "note_update_at"
51
+ t.string "note_update_by"
52
+ t.string "note_update_library"
53
+ t.string "extelephone_number_1"
54
+ t.string "extelephone_number_2"
55
+ t.integer "telephone_number_1_type_id"
56
+ t.integer "telephone_number_2_type_id"
57
+ t.integer "extelephone_number_1_type_id"
58
+ t.integer "extelephone_number_2_type_id"
59
+ t.integer "fax_number_1_type_id"
60
+ t.integer "fax_number_2_type_id"
61
+ t.string "patron_identifier"
62
+ end
63
+
64
+ add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
65
+ add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
66
+ add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
67
+ add_index "patrons", ["patron_identifier"], :name => "index_patrons_on_patron_identifier"
68
+ add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
69
+ add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
70
+ end
71
+
72
+ end
@@ -0,0 +1,97 @@
1
+ class CreateManifestations < ActiveRecord::Migration
2
+ def change
3
+ create_table "manifestations" do |t|
4
+ t.text "original_title", :null => false
5
+ t.text "title_alternative"
6
+ t.text "title_transcription"
7
+ t.string "classification_number"
8
+ t.string "identifier"
9
+ t.datetime "date_of_publication"
10
+ t.datetime "date_copyrighted"
11
+ t.datetime "created_at", :null => false
12
+ t.datetime "updated_at", :null => false
13
+ t.datetime "deleted_at"
14
+ t.string "access_address"
15
+ t.integer "language_id", :default => 1, :null => false
16
+ t.integer "carrier_type_id", :default => 1, :null => false
17
+ t.integer "extent_id", :default => 1, :null => false
18
+ t.integer "start_page"
19
+ t.integer "end_page"
20
+ t.decimal "height"
21
+ t.decimal "width"
22
+ t.decimal "depth"
23
+ t.string "isbn"
24
+ t.string "isbn10"
25
+ t.string "wrong_isbn"
26
+ t.string "nbn"
27
+ t.string "lccn"
28
+ t.string "oclc_number"
29
+ t.string "issn"
30
+ t.integer "price"
31
+ t.text "fulltext"
32
+ t.string "volume_number_string"
33
+ t.string "issue_number_string"
34
+ t.string "serial_number_string"
35
+ t.integer "edition"
36
+ t.text "note"
37
+ t.boolean "repository_content", :default => false, :null => false
38
+ t.integer "lock_version", :default => 0, :null => false
39
+ t.integer "required_role_id", :default => 1, :null => false
40
+ t.string "state"
41
+ t.integer "required_score", :default => 0, :null => false
42
+ t.integer "frequency_id", :default => 1, :null => false
43
+ t.boolean "subscription_master", :default => false, :null => false
44
+ t.integer "ipaper_id"
45
+ t.string "ipaper_access_key"
46
+ t.string "attachment_file_name"
47
+ t.string "attachment_content_type"
48
+ t.integer "attachment_file_size"
49
+ t.datetime "attachment_updated_at"
50
+ t.integer "nii_type_id"
51
+ t.text "title_alternative_transcription"
52
+ t.text "description"
53
+ t.text "abstract"
54
+ t.datetime "available_at"
55
+ t.datetime "valid_until"
56
+ t.datetime "date_submitted"
57
+ t.datetime "date_accepted"
58
+ t.datetime "date_caputured"
59
+ t.string "ndl_bib_id"
60
+ t.string "file_hash"
61
+ t.string "pub_date"
62
+ t.boolean "periodical_master", :default => false, :null => false
63
+ t.boolean "periodical", :default => false, :null => false
64
+ t.integer "volume_number"
65
+ t.integer "issue_number"
66
+ t.integer "serial_number"
67
+ t.string "ndc"
68
+ t.boolean "except_recent", :default => false
69
+ t.string "exinfo_1"
70
+ t.string "exinfo_2"
71
+ t.string "exinfo_3"
72
+ t.string "exinfo_4"
73
+ t.string "exinfo_5"
74
+ t.string "edition_display_value"
75
+ t.string "other_number_list"
76
+ t.string "marc_number"
77
+ t.text "supplement"
78
+ end
79
+ add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
80
+ add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
81
+ add_index "manifestations", ["created_at"], :name => "index_manifestations_on_created_at"
82
+ add_index "manifestations", ["deleted_at"], :name => "index_manifestations_on_deleted_at"
83
+ add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
84
+ add_index "manifestations", ["identifier"], :name => "index_manifestations_on_manifestation_identifier"
85
+ add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
86
+ add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
87
+ add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
88
+ add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
89
+ add_index "manifestations", ["ndl_bib_id"], :name => "index_manifestations_on_ndl_bib_id"
90
+ add_index "manifestations", ["nii_type_id"], :name => "index_manifestations_on_nii_type_id"
91
+ add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
92
+ add_index "manifestations", ["periodical"], :name => "index_manifestations_on_periodical"
93
+ add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
94
+ add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
95
+
96
+ end
97
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCarrierTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table "carrier_types" do |t|
4
+ t.string "name", :null => false
5
+ t.text "display_name"
6
+ t.text "note"
7
+ t.integer "position"
8
+ t.datetime "created_at", :null => false
9
+ t.datetime "updated_at", :null => false
10
+ end
11
+ end
12
+ end