enju_library 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/app/controllers/shelves_controller.rb +2 -1
- data/app/helpers/shelves_helper.rb +9 -5
- data/app/models/library.rb +1 -2
- data/app/models/library_group.rb +7 -1
- data/app/models/shelf.rb +1 -0
- data/app/views/accepts/index.html.erb +2 -2
- data/app/views/bookstores/index.html.erb +3 -3
- data/app/views/bookstores/show.html.erb +1 -1
- data/app/views/budget_types/index.html.erb +2 -2
- data/app/views/libraries/_form.html.erb +1 -1
- data/app/views/libraries/index.html.erb +3 -3
- data/app/views/libraries/show.html.erb +1 -1
- data/app/views/library_groups/index.html.erb +1 -1
- data/app/views/request_status_types/index.html.erb +2 -2
- data/app/views/request_types/index.html.erb +2 -2
- data/app/views/search_engines/index.html.erb +2 -2
- data/app/views/shelves/_library_facet.html.erb +1 -4
- data/app/views/shelves/index.html.erb +2 -2
- data/app/views/shelves/show.mobile.erb +33 -0
- data/app/views/subscribes/index.html.erb +2 -2
- data/app/views/subscriptions/index.html.erb +2 -2
- data/app/views/subscriptions/show.html.erb +1 -1
- data/lib/enju_library/engine.rb +0 -8
- data/lib/enju_library/version.rb +1 -1
- data/lib/enju_library.rb +0 -2
- data/spec/controllers/bookstores_controller_spec.rb +447 -0
- data/spec/controllers/budget_types_controller_spec.rb +167 -0
- data/spec/controllers/libraries_controller_spec.rb +517 -0
- data/spec/controllers/library_groups_controller_spec.rb +133 -0
- data/spec/controllers/request_status_types_controller_spec.rb +447 -0
- data/spec/controllers/request_types_controller_spec.rb +447 -0
- data/spec/controllers/search_engines_controller_spec.rb +447 -0
- data/spec/controllers/shelves_controller_spec.rb +437 -0
- data/spec/controllers/subscribes_controller_spec.rb +441 -0
- data/spec/controllers/subscriptions_controller_spec.rb +442 -0
- data/{test → spec}/dummy/README.rdoc +0 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +59 -0
- data/spec/dummy/app/helpers/application_helper.rb +13 -0
- data/spec/dummy/app/models/ability.rb +51 -0
- data/spec/dummy/app/models/picture_file.rb +49 -0
- data/spec/dummy/app/models/role.rb +46 -0
- data/spec/dummy/app/models/user.rb +94 -0
- data/spec/dummy/app/models/user_group.rb +40 -0
- data/spec/dummy/app/models/user_has_role.rb +5 -0
- data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy/app/views/page/403.html.erb +9 -0
- data/spec/dummy/app/views/page/403.mobile.erb +5 -0
- data/spec/dummy/app/views/page/403.xml.erb +4 -0
- data/spec/dummy/app/views/page/404.html.erb +9 -0
- data/spec/dummy/app/views/page/404.mobile.erb +5 -0
- data/spec/dummy/app/views/page/404.xml.erb +4 -0
- data/{test → spec}/dummy/config/application.rb +3 -0
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +0 -0
- data/{test → spec}/dummy/config/environments/production.rb +0 -0
- data/{test → spec}/dummy/config/environments/test.rb +0 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/devise.rb +205 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
- data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/{test → spec}/dummy/config/routes.rb +2 -0
- data/{test → spec}/dummy/config.ru +0 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_patrons.rb +58 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +61 -0
- data/spec/dummy/db/migrate/006_create_items.rb +31 -0
- data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
- data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
- data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
- data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +16 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
- data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +12 -0
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +16 -0
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
- data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/{db → spec/dummy/db}/migrate/20110620173525_add_bookstore_id_to_item.rb +0 -0
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
- data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +16 -0
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +44 -0
- data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
- data/spec/dummy/db/schema.rb +642 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/{test → spec}/dummy/script/rails +0 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +238 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +934 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/data/test/index/_k.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_k.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_k.fnm +3 -0
- data/spec/dummy/solr/data/test/index/_k.frq +1 -0
- data/spec/dummy/solr/data/test/index/_k.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_k.prx +0 -0
- data/spec/dummy/solr/data/test/index/_k.tii +0 -0
- data/spec/dummy/solr/data/test/index/_k.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_18 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/factories/bookstore.rb +5 -0
- data/spec/factories/budget_types.rb +5 -0
- data/spec/factories/carrier_types.yml +51 -0
- data/spec/factories/library.rb +13 -0
- data/spec/factories/manifestation.rb +6 -0
- data/spec/factories/request_status_type.rb +5 -0
- data/spec/factories/request_type.rb +5 -0
- data/spec/factories/search_engine.rb +9 -0
- data/spec/factories/shelf.rb +6 -0
- data/spec/factories/subscribe.rb +8 -0
- data/spec/factories/subscription.rb +6 -0
- data/spec/factories/user.rb +37 -0
- data/spec/fixtures/bookstores.yml +107 -0
- data/spec/fixtures/budget_types.yml +29 -0
- data/spec/fixtures/carrier_types.yml +51 -0
- data/spec/fixtures/languages.yml +1901 -0
- data/spec/fixtures/libraries.yml +102 -0
- data/spec/fixtures/library_groups.yml +33 -0
- data/spec/fixtures/manifestations.yml +2022 -0
- data/spec/fixtures/request_status_types.yml +63 -0
- data/spec/fixtures/request_types.yml +55 -0
- data/spec/fixtures/roles.yml +21 -0
- data/spec/fixtures/search_engines.yml +41 -0
- data/spec/fixtures/shelves.yml +47 -0
- data/spec/fixtures/subscribes.yml +45 -0
- data/spec/fixtures/subscriptions.yml +27 -0
- data/spec/fixtures/user_groups.yml +31 -0
- data/spec/fixtures/user_has_roles.yml +41 -0
- data/spec/fixtures/users.yml +129 -0
- data/spec/models/bookstore_spec.rb +26 -0
- data/spec/models/budget_type_spec.rb +22 -0
- data/spec/models/library_group_spec.rb +33 -0
- data/spec/models/library_spec.rb +47 -0
- data/spec/models/request_status_type_spec.rb +21 -0
- data/spec/models/request_type_spec.rb +21 -0
- data/spec/models/search_engine_spec.rb +29 -0
- data/spec/models/shelf_spec.rb +29 -0
- data/spec/models/subscribe_spec.rb +21 -0
- data/spec/models/subscription_spec.rb +26 -0
- data/spec/routing/budget_types_routing_spec.rb +35 -0
- data/spec/routing/libraries_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +55 -0
- data/spec/support/controller_macros.rb +46 -0
- data/spec/support/devise.rb +4 -0
- data/spec/support/vcr.rb +9 -0
- data/spec/views/budget_types/edit.html.erb_spec.rb +23 -0
- data/spec/views/budget_types/index.html.erb_spec.rb +28 -0
- data/spec/views/budget_types/new.html.erb_spec.rb +23 -0
- data/spec/views/budget_types/show.html.erb_spec.rb +24 -0
- metadata +372 -198
- data/lib/enju_library/master_model.rb +0 -19
- data/lib/enju_library/url_validator.rb +0 -10
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +0 -0
- data/test/enju_library_test.rb +0 -7
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -15
@@ -0,0 +1,642 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20120510140958) do
|
15
|
+
|
16
|
+
create_table "bookstores", :force => true do |t|
|
17
|
+
t.text "name", :null => false
|
18
|
+
t.string "zip_code"
|
19
|
+
t.text "address"
|
20
|
+
t.text "note"
|
21
|
+
t.string "telephone_number"
|
22
|
+
t.string "fax_number"
|
23
|
+
t.string "url"
|
24
|
+
t.integer "position"
|
25
|
+
t.datetime "deleted_at"
|
26
|
+
t.datetime "created_at", :null => false
|
27
|
+
t.datetime "updated_at", :null => false
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "budget_types", :force => true do |t|
|
31
|
+
t.string "name"
|
32
|
+
t.text "display_name"
|
33
|
+
t.text "note"
|
34
|
+
t.integer "position"
|
35
|
+
t.datetime "created_at", :null => false
|
36
|
+
t.datetime "updated_at", :null => false
|
37
|
+
end
|
38
|
+
|
39
|
+
create_table "carrier_types", :force => true do |t|
|
40
|
+
t.string "name", :null => false
|
41
|
+
t.text "display_name"
|
42
|
+
t.text "note"
|
43
|
+
t.integer "position"
|
44
|
+
t.datetime "created_at", :null => false
|
45
|
+
t.datetime "updated_at", :null => false
|
46
|
+
end
|
47
|
+
|
48
|
+
create_table "countries", :force => true do |t|
|
49
|
+
t.string "name", :null => false
|
50
|
+
t.text "display_name"
|
51
|
+
t.string "alpha_2"
|
52
|
+
t.string "alpha_3"
|
53
|
+
t.string "numeric_3"
|
54
|
+
t.text "note"
|
55
|
+
t.integer "position"
|
56
|
+
end
|
57
|
+
|
58
|
+
add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
|
59
|
+
add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
|
60
|
+
add_index "countries", ["name"], :name => "index_countries_on_name"
|
61
|
+
add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
|
62
|
+
|
63
|
+
create_table "create_types", :force => true do |t|
|
64
|
+
t.string "name"
|
65
|
+
t.text "display_name"
|
66
|
+
t.text "note"
|
67
|
+
t.integer "position"
|
68
|
+
t.datetime "created_at", :null => false
|
69
|
+
t.datetime "updated_at", :null => false
|
70
|
+
end
|
71
|
+
|
72
|
+
create_table "creates", :force => true do |t|
|
73
|
+
t.integer "patron_id", :null => false
|
74
|
+
t.integer "work_id", :null => false
|
75
|
+
t.integer "position"
|
76
|
+
t.datetime "created_at", :null => false
|
77
|
+
t.datetime "updated_at", :null => false
|
78
|
+
t.integer "create_type_id"
|
79
|
+
end
|
80
|
+
|
81
|
+
add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
|
82
|
+
add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
|
83
|
+
|
84
|
+
create_table "donates", :force => true do |t|
|
85
|
+
t.integer "patron_id", :null => false
|
86
|
+
t.integer "item_id", :null => false
|
87
|
+
t.datetime "created_at", :null => false
|
88
|
+
t.datetime "updated_at", :null => false
|
89
|
+
end
|
90
|
+
|
91
|
+
add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
|
92
|
+
add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
|
93
|
+
|
94
|
+
create_table "exemplifies", :force => true do |t|
|
95
|
+
t.integer "manifestation_id", :null => false
|
96
|
+
t.integer "item_id", :null => false
|
97
|
+
t.integer "position"
|
98
|
+
t.datetime "created_at", :null => false
|
99
|
+
t.datetime "updated_at", :null => false
|
100
|
+
end
|
101
|
+
|
102
|
+
add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
|
103
|
+
add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
|
104
|
+
|
105
|
+
create_table "items", :force => true do |t|
|
106
|
+
t.string "call_number"
|
107
|
+
t.string "item_identifier"
|
108
|
+
t.integer "circulation_status_id", :default => 5, :null => false
|
109
|
+
t.integer "checkout_type_id", :default => 1, :null => false
|
110
|
+
t.datetime "created_at", :null => false
|
111
|
+
t.datetime "updated_at", :null => false
|
112
|
+
t.datetime "deleted_at"
|
113
|
+
t.integer "shelf_id", :default => 1, :null => false
|
114
|
+
t.boolean "include_supplements", :default => false, :null => false
|
115
|
+
t.integer "checkouts_count", :default => 0, :null => false
|
116
|
+
t.integer "owns_count", :default => 0, :null => false
|
117
|
+
t.integer "resource_has_subjects_count", :default => 0, :null => false
|
118
|
+
t.text "note"
|
119
|
+
t.string "url"
|
120
|
+
t.integer "price"
|
121
|
+
t.integer "lock_version", :default => 0, :null => false
|
122
|
+
t.integer "required_role_id", :default => 1, :null => false
|
123
|
+
t.string "state"
|
124
|
+
t.integer "required_score", :default => 0, :null => false
|
125
|
+
t.datetime "acquired_at"
|
126
|
+
t.integer "bookstore_id"
|
127
|
+
end
|
128
|
+
|
129
|
+
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
130
|
+
add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
|
131
|
+
add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
|
132
|
+
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
133
|
+
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
134
|
+
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
135
|
+
|
136
|
+
create_table "languages", :force => true do |t|
|
137
|
+
t.string "name", :null => false
|
138
|
+
t.string "native_name"
|
139
|
+
t.text "display_name"
|
140
|
+
t.string "iso_639_1"
|
141
|
+
t.string "iso_639_2"
|
142
|
+
t.string "iso_639_3"
|
143
|
+
t.text "note"
|
144
|
+
t.integer "position"
|
145
|
+
end
|
146
|
+
|
147
|
+
add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
|
148
|
+
add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
|
149
|
+
add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
|
150
|
+
add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
|
151
|
+
|
152
|
+
create_table "libraries", :force => true do |t|
|
153
|
+
t.string "name", :null => false
|
154
|
+
t.text "display_name"
|
155
|
+
t.string "short_display_name", :null => false
|
156
|
+
t.string "zip_code"
|
157
|
+
t.text "street"
|
158
|
+
t.text "locality"
|
159
|
+
t.text "region"
|
160
|
+
t.string "telephone_number_1"
|
161
|
+
t.string "telephone_number_2"
|
162
|
+
t.string "fax_number"
|
163
|
+
t.text "note"
|
164
|
+
t.integer "call_number_rows", :default => 1, :null => false
|
165
|
+
t.string "call_number_delimiter", :default => "|", :null => false
|
166
|
+
t.integer "library_group_id", :default => 1, :null => false
|
167
|
+
t.integer "users_count", :default => 0, :null => false
|
168
|
+
t.integer "position"
|
169
|
+
t.integer "country_id"
|
170
|
+
t.datetime "created_at", :null => false
|
171
|
+
t.datetime "updated_at", :null => false
|
172
|
+
t.datetime "deleted_at"
|
173
|
+
t.string "isil"
|
174
|
+
end
|
175
|
+
|
176
|
+
add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
|
177
|
+
add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
|
178
|
+
|
179
|
+
create_table "library_groups", :force => true do |t|
|
180
|
+
t.string "name", :null => false
|
181
|
+
t.text "display_name"
|
182
|
+
t.string "short_name", :null => false
|
183
|
+
t.string "email"
|
184
|
+
t.text "my_networks"
|
185
|
+
t.boolean "use_dsbl", :default => false, :null => false
|
186
|
+
t.text "dsbl_list"
|
187
|
+
t.text "login_banner"
|
188
|
+
t.text "note"
|
189
|
+
t.integer "country_id"
|
190
|
+
t.datetime "created_at", :null => false
|
191
|
+
t.datetime "updated_at", :null => false
|
192
|
+
t.string "url", :default => "http://localhost:3000/"
|
193
|
+
end
|
194
|
+
|
195
|
+
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
196
|
+
|
197
|
+
create_table "manifestation_relationship_types", :force => true do |t|
|
198
|
+
t.string "name", :null => false
|
199
|
+
t.text "display_name"
|
200
|
+
t.text "note"
|
201
|
+
t.integer "position"
|
202
|
+
t.datetime "created_at", :null => false
|
203
|
+
t.datetime "updated_at", :null => false
|
204
|
+
end
|
205
|
+
|
206
|
+
create_table "manifestation_relationships", :force => true do |t|
|
207
|
+
t.integer "parent_id"
|
208
|
+
t.integer "child_id"
|
209
|
+
t.integer "manifestation_relationship_type_id"
|
210
|
+
t.datetime "created_at", :null => false
|
211
|
+
t.datetime "updated_at", :null => false
|
212
|
+
t.integer "position"
|
213
|
+
end
|
214
|
+
|
215
|
+
add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
|
216
|
+
add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
|
217
|
+
|
218
|
+
create_table "manifestations", :force => true do |t|
|
219
|
+
t.text "original_title", :null => false
|
220
|
+
t.text "title_alternative"
|
221
|
+
t.text "title_transcription"
|
222
|
+
t.string "classification_number"
|
223
|
+
t.string "manifestation_identifier"
|
224
|
+
t.datetime "date_of_publication"
|
225
|
+
t.datetime "date_copyrighted"
|
226
|
+
t.datetime "created_at", :null => false
|
227
|
+
t.datetime "updated_at", :null => false
|
228
|
+
t.datetime "deleted_at"
|
229
|
+
t.string "access_address"
|
230
|
+
t.integer "language_id", :default => 1, :null => false
|
231
|
+
t.integer "carrier_type_id", :default => 1, :null => false
|
232
|
+
t.integer "extent_id", :default => 1, :null => false
|
233
|
+
t.integer "start_page"
|
234
|
+
t.integer "end_page"
|
235
|
+
t.integer "height"
|
236
|
+
t.integer "width"
|
237
|
+
t.integer "depth"
|
238
|
+
t.string "isbn"
|
239
|
+
t.string "isbn10"
|
240
|
+
t.string "wrong_isbn"
|
241
|
+
t.string "nbn"
|
242
|
+
t.string "lccn"
|
243
|
+
t.string "oclc_number"
|
244
|
+
t.string "issn"
|
245
|
+
t.integer "price"
|
246
|
+
t.text "fulltext"
|
247
|
+
t.string "volume_number_string"
|
248
|
+
t.string "issue_number_string"
|
249
|
+
t.string "serial_number_string"
|
250
|
+
t.integer "edition"
|
251
|
+
t.text "note"
|
252
|
+
t.integer "produces_count", :default => 0, :null => false
|
253
|
+
t.integer "exemplifies_count", :default => 0, :null => false
|
254
|
+
t.integer "embodies_count", :default => 0, :null => false
|
255
|
+
t.integer "work_has_subjects_count", :default => 0, :null => false
|
256
|
+
t.boolean "repository_content", :default => false, :null => false
|
257
|
+
t.integer "lock_version", :default => 0, :null => false
|
258
|
+
t.integer "required_role_id", :default => 1, :null => false
|
259
|
+
t.string "state"
|
260
|
+
t.integer "required_score", :default => 0, :null => false
|
261
|
+
t.integer "frequency_id", :default => 1, :null => false
|
262
|
+
t.boolean "subscription_master", :default => false, :null => false
|
263
|
+
t.text "title_alternative_transcription"
|
264
|
+
t.text "description"
|
265
|
+
t.text "abstract"
|
266
|
+
t.datetime "available_at"
|
267
|
+
t.datetime "valid_until"
|
268
|
+
t.datetime "date_submitted"
|
269
|
+
t.datetime "date_accepted"
|
270
|
+
t.datetime "date_caputured"
|
271
|
+
t.string "pub_date"
|
272
|
+
t.string "edition_string"
|
273
|
+
t.integer "volume_number"
|
274
|
+
t.integer "issue_number"
|
275
|
+
t.integer "serial_number"
|
276
|
+
end
|
277
|
+
|
278
|
+
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
279
|
+
add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
|
280
|
+
add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
|
281
|
+
add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
|
282
|
+
add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
|
283
|
+
add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
|
284
|
+
add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
|
285
|
+
add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
|
286
|
+
add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
|
287
|
+
add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
|
288
|
+
add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
|
289
|
+
|
290
|
+
create_table "owns", :force => true do |t|
|
291
|
+
t.integer "patron_id", :null => false
|
292
|
+
t.integer "item_id", :null => false
|
293
|
+
t.integer "position"
|
294
|
+
t.datetime "created_at", :null => false
|
295
|
+
t.datetime "updated_at", :null => false
|
296
|
+
end
|
297
|
+
|
298
|
+
add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
|
299
|
+
add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
|
300
|
+
|
301
|
+
create_table "patron_relationship_types", :force => true do |t|
|
302
|
+
t.string "name", :null => false
|
303
|
+
t.text "display_name"
|
304
|
+
t.text "note"
|
305
|
+
t.integer "position"
|
306
|
+
t.datetime "created_at", :null => false
|
307
|
+
t.datetime "updated_at", :null => false
|
308
|
+
end
|
309
|
+
|
310
|
+
create_table "patron_relationships", :force => true do |t|
|
311
|
+
t.integer "parent_id"
|
312
|
+
t.integer "child_id"
|
313
|
+
t.integer "patron_relationship_type_id"
|
314
|
+
t.datetime "created_at", :null => false
|
315
|
+
t.datetime "updated_at", :null => false
|
316
|
+
t.integer "position"
|
317
|
+
end
|
318
|
+
|
319
|
+
add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
|
320
|
+
add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
|
321
|
+
|
322
|
+
create_table "patron_types", :force => true do |t|
|
323
|
+
t.string "name", :null => false
|
324
|
+
t.text "display_name"
|
325
|
+
t.text "note"
|
326
|
+
t.integer "position"
|
327
|
+
t.datetime "created_at", :null => false
|
328
|
+
t.datetime "updated_at", :null => false
|
329
|
+
end
|
330
|
+
|
331
|
+
create_table "patrons", :force => true do |t|
|
332
|
+
t.integer "user_id"
|
333
|
+
t.string "last_name"
|
334
|
+
t.string "middle_name"
|
335
|
+
t.string "first_name"
|
336
|
+
t.string "last_name_transcription"
|
337
|
+
t.string "middle_name_transcription"
|
338
|
+
t.string "first_name_transcription"
|
339
|
+
t.string "corporate_name"
|
340
|
+
t.string "corporate_name_transcription"
|
341
|
+
t.string "full_name"
|
342
|
+
t.text "full_name_transcription"
|
343
|
+
t.text "full_name_alternative"
|
344
|
+
t.datetime "created_at", :null => false
|
345
|
+
t.datetime "updated_at", :null => false
|
346
|
+
t.datetime "deleted_at"
|
347
|
+
t.string "zip_code_1"
|
348
|
+
t.string "zip_code_2"
|
349
|
+
t.text "address_1"
|
350
|
+
t.text "address_2"
|
351
|
+
t.text "address_1_note"
|
352
|
+
t.text "address_2_note"
|
353
|
+
t.string "telephone_number_1"
|
354
|
+
t.string "telephone_number_2"
|
355
|
+
t.string "fax_number_1"
|
356
|
+
t.string "fax_number_2"
|
357
|
+
t.text "other_designation"
|
358
|
+
t.text "place"
|
359
|
+
t.string "postal_code"
|
360
|
+
t.text "street"
|
361
|
+
t.text "locality"
|
362
|
+
t.text "region"
|
363
|
+
t.datetime "date_of_birth"
|
364
|
+
t.datetime "date_of_death"
|
365
|
+
t.integer "language_id", :default => 1, :null => false
|
366
|
+
t.integer "country_id", :default => 1, :null => false
|
367
|
+
t.integer "patron_type_id", :default => 1, :null => false
|
368
|
+
t.integer "lock_version", :default => 0, :null => false
|
369
|
+
t.text "note"
|
370
|
+
t.integer "creates_count", :default => 0, :null => false
|
371
|
+
t.integer "realizes_count", :default => 0, :null => false
|
372
|
+
t.integer "produces_count", :default => 0, :null => false
|
373
|
+
t.integer "owns_count", :default => 0, :null => false
|
374
|
+
t.integer "required_role_id", :default => 1, :null => false
|
375
|
+
t.integer "required_score", :default => 0, :null => false
|
376
|
+
t.string "state"
|
377
|
+
t.text "email"
|
378
|
+
t.text "url"
|
379
|
+
t.text "full_name_alternative_transcription"
|
380
|
+
t.string "birth_date"
|
381
|
+
t.string "death_date"
|
382
|
+
end
|
383
|
+
|
384
|
+
add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
|
385
|
+
add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
|
386
|
+
add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
|
387
|
+
add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
|
388
|
+
add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
|
389
|
+
|
390
|
+
create_table "picture_files", :force => true do |t|
|
391
|
+
t.integer "picture_attachable_id"
|
392
|
+
t.string "picture_attachable_type"
|
393
|
+
t.string "content_type"
|
394
|
+
t.text "title"
|
395
|
+
t.text "filename"
|
396
|
+
t.string "thumbnail"
|
397
|
+
t.integer "position"
|
398
|
+
t.datetime "created_at", :null => false
|
399
|
+
t.datetime "updated_at", :null => false
|
400
|
+
t.string "picture_file_name"
|
401
|
+
t.string "picture_content_type"
|
402
|
+
t.integer "picture_file_size"
|
403
|
+
t.datetime "picture_updated_at"
|
404
|
+
t.text "picture_meta"
|
405
|
+
t.string "picture_fingerprint"
|
406
|
+
end
|
407
|
+
|
408
|
+
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
|
409
|
+
|
410
|
+
create_table "produce_types", :force => true do |t|
|
411
|
+
t.string "name"
|
412
|
+
t.text "display_name"
|
413
|
+
t.text "note"
|
414
|
+
t.integer "position"
|
415
|
+
t.datetime "created_at", :null => false
|
416
|
+
t.datetime "updated_at", :null => false
|
417
|
+
end
|
418
|
+
|
419
|
+
create_table "produces", :force => true do |t|
|
420
|
+
t.integer "patron_id", :null => false
|
421
|
+
t.integer "manifestation_id", :null => false
|
422
|
+
t.integer "position"
|
423
|
+
t.datetime "created_at", :null => false
|
424
|
+
t.datetime "updated_at", :null => false
|
425
|
+
t.integer "produce_type_id"
|
426
|
+
end
|
427
|
+
|
428
|
+
add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
|
429
|
+
add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
|
430
|
+
|
431
|
+
create_table "realize_types", :force => true do |t|
|
432
|
+
t.string "name"
|
433
|
+
t.text "display_name"
|
434
|
+
t.text "note"
|
435
|
+
t.integer "position"
|
436
|
+
t.datetime "created_at", :null => false
|
437
|
+
t.datetime "updated_at", :null => false
|
438
|
+
end
|
439
|
+
|
440
|
+
create_table "realizes", :force => true do |t|
|
441
|
+
t.integer "patron_id", :null => false
|
442
|
+
t.integer "expression_id", :null => false
|
443
|
+
t.integer "position"
|
444
|
+
t.datetime "created_at", :null => false
|
445
|
+
t.datetime "updated_at", :null => false
|
446
|
+
t.integer "realize_type_id"
|
447
|
+
end
|
448
|
+
|
449
|
+
add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
|
450
|
+
add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
|
451
|
+
|
452
|
+
create_table "request_status_types", :force => true do |t|
|
453
|
+
t.string "name", :null => false
|
454
|
+
t.text "display_name"
|
455
|
+
t.text "note"
|
456
|
+
t.integer "position"
|
457
|
+
t.datetime "created_at", :null => false
|
458
|
+
t.datetime "updated_at", :null => false
|
459
|
+
end
|
460
|
+
|
461
|
+
create_table "request_types", :force => true do |t|
|
462
|
+
t.string "name", :null => false
|
463
|
+
t.text "display_name"
|
464
|
+
t.text "note"
|
465
|
+
t.integer "position"
|
466
|
+
t.datetime "created_at", :null => false
|
467
|
+
t.datetime "updated_at", :null => false
|
468
|
+
end
|
469
|
+
|
470
|
+
create_table "roles", :force => true do |t|
|
471
|
+
t.string "name"
|
472
|
+
t.text "display_name"
|
473
|
+
t.text "note"
|
474
|
+
t.integer "position"
|
475
|
+
t.datetime "created_at", :null => false
|
476
|
+
t.datetime "updated_at", :null => false
|
477
|
+
end
|
478
|
+
|
479
|
+
create_table "search_engines", :force => true do |t|
|
480
|
+
t.string "name", :null => false
|
481
|
+
t.text "display_name"
|
482
|
+
t.string "url", :null => false
|
483
|
+
t.text "base_url", :null => false
|
484
|
+
t.text "http_method", :null => false
|
485
|
+
t.text "query_param", :null => false
|
486
|
+
t.text "additional_param"
|
487
|
+
t.text "note"
|
488
|
+
t.integer "position"
|
489
|
+
t.datetime "created_at", :null => false
|
490
|
+
t.datetime "updated_at", :null => false
|
491
|
+
end
|
492
|
+
|
493
|
+
create_table "series_has_manifestations", :force => true do |t|
|
494
|
+
t.integer "series_statement_id"
|
495
|
+
t.integer "manifestation_id"
|
496
|
+
t.integer "position"
|
497
|
+
t.datetime "created_at", :null => false
|
498
|
+
t.datetime "updated_at", :null => false
|
499
|
+
end
|
500
|
+
|
501
|
+
add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
|
502
|
+
add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
|
503
|
+
|
504
|
+
create_table "series_statement_merge_lists", :force => true do |t|
|
505
|
+
t.string "title"
|
506
|
+
t.datetime "created_at", :null => false
|
507
|
+
t.datetime "updated_at", :null => false
|
508
|
+
end
|
509
|
+
|
510
|
+
create_table "series_statement_merges", :force => true do |t|
|
511
|
+
t.integer "series_statement_id", :null => false
|
512
|
+
t.integer "series_statement_merge_list_id", :null => false
|
513
|
+
t.datetime "created_at", :null => false
|
514
|
+
t.datetime "updated_at", :null => false
|
515
|
+
end
|
516
|
+
|
517
|
+
add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
|
518
|
+
add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
|
519
|
+
|
520
|
+
create_table "series_statements", :force => true do |t|
|
521
|
+
t.text "original_title"
|
522
|
+
t.text "numbering"
|
523
|
+
t.text "title_subseries"
|
524
|
+
t.text "numbering_subseries"
|
525
|
+
t.integer "position"
|
526
|
+
t.datetime "created_at", :null => false
|
527
|
+
t.datetime "updated_at", :null => false
|
528
|
+
t.text "title_transcription"
|
529
|
+
t.text "title_alternative"
|
530
|
+
t.string "series_statement_identifier"
|
531
|
+
t.string "issn"
|
532
|
+
t.boolean "periodical"
|
533
|
+
t.integer "root_manifestation_id"
|
534
|
+
t.text "note"
|
535
|
+
t.text "title_subseries_transcription"
|
536
|
+
end
|
537
|
+
|
538
|
+
add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_manifestation_id"
|
539
|
+
add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
|
540
|
+
|
541
|
+
create_table "shelves", :force => true do |t|
|
542
|
+
t.string "name", :null => false
|
543
|
+
t.text "display_name"
|
544
|
+
t.text "note"
|
545
|
+
t.integer "library_id", :default => 1, :null => false
|
546
|
+
t.integer "items_count", :default => 0, :null => false
|
547
|
+
t.integer "position"
|
548
|
+
t.datetime "created_at", :null => false
|
549
|
+
t.datetime "updated_at", :null => false
|
550
|
+
t.datetime "deleted_at"
|
551
|
+
t.boolean "closed", :default => false, :null => false
|
552
|
+
end
|
553
|
+
|
554
|
+
add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
|
555
|
+
|
556
|
+
create_table "subscribes", :force => true do |t|
|
557
|
+
t.integer "subscription_id", :null => false
|
558
|
+
t.integer "work_id", :null => false
|
559
|
+
t.datetime "start_at", :null => false
|
560
|
+
t.datetime "end_at", :null => false
|
561
|
+
t.datetime "created_at", :null => false
|
562
|
+
t.datetime "updated_at", :null => false
|
563
|
+
end
|
564
|
+
|
565
|
+
add_index "subscribes", ["subscription_id"], :name => "index_subscribes_on_subscription_id"
|
566
|
+
add_index "subscribes", ["work_id"], :name => "index_subscribes_on_work_id"
|
567
|
+
|
568
|
+
create_table "subscriptions", :force => true do |t|
|
569
|
+
t.text "title", :null => false
|
570
|
+
t.text "note"
|
571
|
+
t.integer "user_id"
|
572
|
+
t.integer "order_list_id"
|
573
|
+
t.datetime "deleted_at"
|
574
|
+
t.integer "subscribes_count", :default => 0, :null => false
|
575
|
+
t.datetime "created_at", :null => false
|
576
|
+
t.datetime "updated_at", :null => false
|
577
|
+
end
|
578
|
+
|
579
|
+
add_index "subscriptions", ["order_list_id"], :name => "index_subscriptions_on_order_list_id"
|
580
|
+
add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
|
581
|
+
|
582
|
+
create_table "user_groups", :force => true do |t|
|
583
|
+
t.string "name"
|
584
|
+
t.string "string"
|
585
|
+
t.text "display_name"
|
586
|
+
t.text "note"
|
587
|
+
t.integer "position"
|
588
|
+
t.datetime "created_at", :null => false
|
589
|
+
t.datetime "updated_at", :null => false
|
590
|
+
t.datetime "deleted_at"
|
591
|
+
t.integer "valid_period_for_new_user", :default => 0, :null => false
|
592
|
+
t.datetime "expired_at"
|
593
|
+
t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
|
594
|
+
t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
|
595
|
+
t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
|
596
|
+
end
|
597
|
+
|
598
|
+
create_table "user_has_roles", :force => true do |t|
|
599
|
+
t.integer "user_id"
|
600
|
+
t.integer "role_id"
|
601
|
+
t.datetime "created_at", :null => false
|
602
|
+
t.datetime "updated_at", :null => false
|
603
|
+
end
|
604
|
+
|
605
|
+
create_table "users", :force => true do |t|
|
606
|
+
t.integer "user_group_id"
|
607
|
+
t.integer "required_role_id"
|
608
|
+
t.string "username"
|
609
|
+
t.text "note"
|
610
|
+
t.string "locale"
|
611
|
+
t.string "user_number"
|
612
|
+
t.integer "library_id"
|
613
|
+
t.datetime "locked_at"
|
614
|
+
t.datetime "created_at", :null => false
|
615
|
+
t.datetime "updated_at", :null => false
|
616
|
+
t.string "email", :default => "", :null => false
|
617
|
+
t.string "encrypted_password", :default => "", :null => false
|
618
|
+
t.string "reset_password_token"
|
619
|
+
t.datetime "reset_password_sent_at"
|
620
|
+
t.datetime "remember_created_at"
|
621
|
+
t.integer "sign_in_count", :default => 0
|
622
|
+
t.datetime "current_sign_in_at"
|
623
|
+
t.datetime "last_sign_in_at"
|
624
|
+
t.string "current_sign_in_ip"
|
625
|
+
t.string "last_sign_in_ip"
|
626
|
+
end
|
627
|
+
|
628
|
+
add_index "users", ["email"], :name => "index_users_on_email"
|
629
|
+
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
630
|
+
|
631
|
+
create_table "versions", :force => true do |t|
|
632
|
+
t.string "item_type", :null => false
|
633
|
+
t.integer "item_id", :null => false
|
634
|
+
t.string "event", :null => false
|
635
|
+
t.string "whodunnit"
|
636
|
+
t.text "object"
|
637
|
+
t.datetime "created_at"
|
638
|
+
end
|
639
|
+
|
640
|
+
add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
|
641
|
+
|
642
|
+
end
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|