enju_oai 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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/config/initializers/mime_types.rb +1 -1
  3. data/lib/enju_oai/version.rb +1 -1
  4. data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +9 -8
  5. data/spec/dummy/db/migrate/002_devise_create_users.rb +0 -35
  6. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -18
  7. data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
  8. data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
  9. data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
  10. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -3
  11. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  12. data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
  13. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
  14. data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
  15. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
  16. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -1
  17. data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
  18. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  19. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  20. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
  21. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
  22. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  23. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
  24. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  25. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  26. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  27. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  28. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  29. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  30. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  31. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  32. data/spec/dummy/db/migrate/{20100502171926_add_latitude_and_longitude_to_library.rb → 20130412083556_add_latitude_and_longitude_to_library.rb} +1 -6
  33. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -0
  34. data/spec/dummy/db/schema.rb +172 -216
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/solr/conf/schema.xml +1 -0
  37. data/spec/dummy/solr/data/test/index/{_43.frq → _r.frq} +0 -0
  38. data/spec/dummy/solr/data/test/index/{_43.nrm → _r.nrm} +1 -1
  39. data/spec/dummy/solr/data/test/index/{_43.prx → _r.prx} +0 -0
  40. data/spec/dummy/solr/data/test/index/_r.tii +0 -0
  41. data/spec/dummy/solr/data/test/index/{_43.tis → _r.tis} +0 -0
  42. data/spec/dummy/solr/data/test/index/{_44.frq → _s.frq} +0 -0
  43. data/spec/dummy/solr/data/test/index/{_44.prx → _s.prx} +0 -0
  44. data/spec/dummy/solr/data/test/index/_s.tii +0 -0
  45. data/spec/dummy/solr/data/test/index/{_44.tis → _s.tis} +0 -0
  46. data/spec/dummy/solr/data/test/index/{_45.fnm → _t.fnm} +3 -2
  47. data/spec/dummy/solr/data/test/index/_t.frq +0 -0
  48. data/spec/dummy/solr/data/test/index/{_45.nrm → _t.nrm} +1 -1
  49. data/spec/dummy/solr/data/test/index/_t.prx +0 -0
  50. data/spec/dummy/solr/data/test/index/_t.tii +0 -0
  51. data/spec/dummy/solr/data/test/index/_t.tis +0 -0
  52. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  53. data/spec/dummy/solr/data/test/index/segments_15 +0 -0
  54. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  55. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  56. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  57. data/spec/fixtures/{patron_import_files.yml → agent_import_files.yml} +18 -18
  58. data/spec/fixtures/{patron_import_results.yml → agent_import_results.yml} +7 -7
  59. data/spec/fixtures/{patron_relationship_types.yml → agent_relationship_types.yml} +4 -4
  60. data/spec/fixtures/{patron_relationships.yml → agent_relationships.yml} +4 -4
  61. data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
  62. data/spec/fixtures/{patrons.yml → agents.yml} +46 -46
  63. data/spec/fixtures/creates.yml +8 -8
  64. data/spec/fixtures/donates.yml +4 -4
  65. data/spec/fixtures/manifestations.yml +25 -162
  66. data/spec/fixtures/owns.yml +3 -3
  67. data/spec/fixtures/produces.yml +20 -20
  68. data/spec/fixtures/realizes.yml +11 -11
  69. data/spec/fixtures/user_groups.yml +0 -7
  70. metadata +101 -139
  71. data/spec/dummy/app/models/role.rb +0 -46
  72. data/spec/dummy/app/models/user_has_role.rb +0 -4
  73. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  74. data/spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb +0 -11
  75. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  76. data/spec/dummy/db/migrate/20100627193848_add_enju_access_key_to_user.rb +0 -10
  77. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  78. data/spec/dummy/db/migrate/20100919121500_drop_user_email_unique_index.rb +0 -11
  79. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  80. data/spec/dummy/db/migrate/20101103090330_add_title_to_patron.rb +0 -9
  81. data/spec/dummy/db/migrate/20101103090457_rename_manifestation_identifier_to_identifier.rb +0 -9
  82. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +0 -9
  83. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  84. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  85. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  86. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +0 -9
  87. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +0 -12
  88. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +0 -13
  89. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  90. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  91. data/spec/dummy/db/migrate/20110927135845_add_missing_since_to_item.rb +0 -9
  92. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  93. data/spec/dummy/db/migrate/20111103221239_rename_manifestation_identifier_to_manifestation_identifier.rb +0 -9
  94. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  95. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  96. data/spec/dummy/db/migrate/20120413225628_add_fingerprint_to_manifestation.rb +0 -5
  97. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  98. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  99. data/spec/dummy/db/migrate/20120426034355_add_unique_index_to_item_identifier.rb +0 -11
  100. data/spec/dummy/db/migrate/20120426042730_add_unique_index_to_manifestation_identifier.rb +0 -11
  101. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +0 -6
  102. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  103. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
  104. data/spec/dummy/solr/data/test/index/_43.tii +0 -0
  105. data/spec/dummy/solr/data/test/index/_44.tii +0 -0
  106. data/spec/dummy/solr/data/test/index/_45.frq +0 -0
  107. data/spec/dummy/solr/data/test/index/_45.prx +0 -0
  108. data/spec/dummy/solr/data/test/index/_45.tii +0 -0
  109. data/spec/dummy/solr/data/test/index/_45.tis +0 -0
  110. data/spec/dummy/solr/data/test/index/segments_5v +0 -0
  111. /data/spec/dummy/solr/data/test/index/{_43.fdt → _r.fdt} +0 -0
  112. /data/spec/dummy/solr/data/test/index/{_43.fdx → _r.fdx} +0 -0
  113. /data/spec/dummy/solr/data/test/index/{_43.fnm → _r.fnm} +0 -0
  114. /data/spec/dummy/solr/data/test/index/{_44.fdt → _s.fdt} +0 -0
  115. /data/spec/dummy/solr/data/test/index/{_44.fdx → _s.fdx} +0 -0
  116. /data/spec/dummy/solr/data/test/index/{_44.fnm → _s.fnm} +0 -0
  117. /data/spec/dummy/solr/data/test/index/{_44.nrm → _s.nrm} +0 -0
  118. /data/spec/dummy/solr/data/test/index/{_45.fdt → _t.fdt} +0 -0
  119. /data/spec/dummy/solr/data/test/index/{_45.fdx → _t.fdx} +0 -0
@@ -13,6 +13,146 @@
13
13
 
14
14
  ActiveRecord::Schema.define(:version => 20130509185724) do
15
15
 
16
+ create_table "accepts", :force => true do |t|
17
+ t.integer "basket_id"
18
+ t.integer "item_id"
19
+ t.integer "librarian_id"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
26
+
27
+ create_table "agent_import_files", :force => true do |t|
28
+ t.integer "parent_id"
29
+ t.string "content_type"
30
+ t.integer "size"
31
+ t.integer "user_id"
32
+ t.text "note"
33
+ t.datetime "executed_at"
34
+ t.string "state"
35
+ t.string "agent_import_file_name"
36
+ t.string "agent_import_content_type"
37
+ t.integer "agent_import_file_size"
38
+ t.datetime "agent_import_updated_at"
39
+ t.datetime "created_at", :null => false
40
+ t.datetime "updated_at", :null => false
41
+ t.string "agent_import_fingerprint"
42
+ t.text "error_message"
43
+ t.string "edit_mode"
44
+ end
45
+
46
+ add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
47
+ add_index "agent_import_files", ["state"], :name => "index_agent_import_files_on_state"
48
+ add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
49
+
50
+ create_table "agent_import_results", :force => true do |t|
51
+ t.integer "agent_import_file_id"
52
+ t.integer "agent_id"
53
+ t.integer "user_id"
54
+ t.text "body"
55
+ t.datetime "created_at", :null => false
56
+ t.datetime "updated_at", :null => false
57
+ end
58
+
59
+ create_table "agent_relationship_types", :force => true do |t|
60
+ t.string "name", :null => false
61
+ t.text "display_name"
62
+ t.text "note"
63
+ t.integer "position"
64
+ t.datetime "created_at", :null => false
65
+ t.datetime "updated_at", :null => false
66
+ end
67
+
68
+ create_table "agent_relationships", :force => true do |t|
69
+ t.integer "parent_id"
70
+ t.integer "child_id"
71
+ t.integer "agent_relationship_type_id"
72
+ t.datetime "created_at", :null => false
73
+ t.datetime "updated_at", :null => false
74
+ t.integer "position"
75
+ end
76
+
77
+ add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
78
+ add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
79
+
80
+ create_table "agent_types", :force => true do |t|
81
+ t.string "name", :null => false
82
+ t.text "display_name"
83
+ t.text "note"
84
+ t.integer "position"
85
+ t.datetime "created_at", :null => false
86
+ t.datetime "updated_at", :null => false
87
+ end
88
+
89
+ create_table "agents", :force => true do |t|
90
+ t.integer "user_id"
91
+ t.string "last_name"
92
+ t.string "middle_name"
93
+ t.string "first_name"
94
+ t.string "last_name_transcription"
95
+ t.string "middle_name_transcription"
96
+ t.string "first_name_transcription"
97
+ t.string "corporate_name"
98
+ t.string "corporate_name_transcription"
99
+ t.string "full_name"
100
+ t.text "full_name_transcription"
101
+ t.text "full_name_alternative"
102
+ t.datetime "created_at", :null => false
103
+ t.datetime "updated_at", :null => false
104
+ t.datetime "deleted_at"
105
+ t.string "zip_code_1"
106
+ t.string "zip_code_2"
107
+ t.text "address_1"
108
+ t.text "address_2"
109
+ t.text "address_1_note"
110
+ t.text "address_2_note"
111
+ t.string "telephone_number_1"
112
+ t.string "telephone_number_2"
113
+ t.string "fax_number_1"
114
+ t.string "fax_number_2"
115
+ t.text "other_designation"
116
+ t.text "place"
117
+ t.string "postal_code"
118
+ t.text "street"
119
+ t.text "locality"
120
+ t.text "region"
121
+ t.datetime "date_of_birth"
122
+ t.datetime "date_of_death"
123
+ t.integer "language_id", :default => 1, :null => false
124
+ t.integer "country_id", :default => 1, :null => false
125
+ t.integer "agent_type_id", :default => 1, :null => false
126
+ t.integer "lock_version", :default => 0, :null => false
127
+ t.text "note"
128
+ t.integer "required_role_id", :default => 1, :null => false
129
+ t.integer "required_score", :default => 0, :null => false
130
+ t.string "state"
131
+ t.text "email"
132
+ t.text "url"
133
+ t.text "full_name_alternative_transcription"
134
+ t.string "birth_date"
135
+ t.string "death_date"
136
+ t.string "agent_identifier"
137
+ end
138
+
139
+ add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
140
+ add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
141
+ add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
142
+ add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
143
+ add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
144
+ add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
145
+
146
+ create_table "baskets", :force => true do |t|
147
+ t.integer "user_id"
148
+ t.text "note"
149
+ t.integer "lock_version", :default => 0, :null => false
150
+ t.datetime "created_at", :null => false
151
+ t.datetime "updated_at", :null => false
152
+ end
153
+
154
+ add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
155
+
16
156
  create_table "bookstores", :force => true do |t|
17
157
  t.text "name", :null => false
18
158
  t.string "zip_code"
@@ -79,7 +219,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
79
219
  end
80
220
 
81
221
  create_table "creates", :force => true do |t|
82
- t.integer "patron_id", :null => false
222
+ t.integer "agent_id", :null => false
83
223
  t.integer "work_id", :null => false
84
224
  t.integer "position"
85
225
  t.datetime "created_at", :null => false
@@ -87,18 +227,18 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
87
227
  t.integer "create_type_id"
88
228
  end
89
229
 
90
- add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
230
+ add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
91
231
  add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
92
232
 
93
233
  create_table "donates", :force => true do |t|
94
- t.integer "patron_id", :null => false
234
+ t.integer "agent_id", :null => false
95
235
  t.integer "item_id", :null => false
96
236
  t.datetime "created_at", :null => false
97
237
  t.datetime "updated_at", :null => false
98
238
  end
99
239
 
240
+ add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
100
241
  add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
101
- add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
102
242
 
103
243
  create_table "exemplifies", :force => true do |t|
104
244
  t.integer "manifestation_id", :null => false
@@ -158,6 +298,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
158
298
  end
159
299
 
160
300
  add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
301
+ add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
161
302
 
162
303
  create_table "import_requests", :force => true do |t|
163
304
  t.string "isbn"
@@ -189,12 +330,11 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
189
330
  t.integer "required_score", :default => 0, :null => false
190
331
  t.datetime "acquired_at"
191
332
  t.integer "bookstore_id"
192
- t.datetime "missing_since"
193
333
  t.integer "budget_type_id"
194
334
  end
195
335
 
196
336
  add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
197
- add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier", :unique => true
337
+ add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
198
338
  add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
199
339
  add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
200
340
 
@@ -235,9 +375,10 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
235
375
  t.datetime "created_at", :null => false
236
376
  t.datetime "updated_at", :null => false
237
377
  t.datetime "deleted_at"
378
+ t.text "opening_hour"
379
+ t.string "isil"
238
380
  t.float "latitude"
239
381
  t.float "longitude"
240
- t.string "isil"
241
382
  end
242
383
 
243
384
  add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
@@ -249,15 +390,13 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
249
390
  t.string "short_name", :null => false
250
391
  t.string "email"
251
392
  t.text "my_networks"
252
- t.boolean "use_dsbl", :default => false, :null => false
253
- t.text "dsbl_list"
254
393
  t.text "login_banner"
255
394
  t.text "note"
256
395
  t.integer "country_id"
396
+ t.integer "position"
257
397
  t.datetime "created_at", :null => false
258
398
  t.datetime "updated_at", :null => false
259
399
  t.text "admin_networks"
260
- t.integer "position"
261
400
  t.string "url", :default => "http://localhost:3000/"
262
401
  end
263
402
 
@@ -313,13 +452,6 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
313
452
  t.integer "height"
314
453
  t.integer "width"
315
454
  t.integer "depth"
316
- t.string "isbn"
317
- t.string "isbn10"
318
- t.string "wrong_isbn"
319
- t.string "nbn"
320
- t.string "lccn"
321
- t.string "oclc_number"
322
- t.string "issn"
323
455
  t.integer "price"
324
456
  t.text "fulltext"
325
457
  t.string "volume_number_string"
@@ -351,30 +483,20 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
351
483
  t.integer "volume_number"
352
484
  t.integer "issue_number"
353
485
  t.integer "serial_number"
354
- t.string "ndc"
355
486
  t.integer "content_type_id", :default => 1
356
487
  t.integer "year_of_publication"
357
- t.string "attachment_fingerprint"
358
488
  t.text "attachment_meta"
359
489
  t.integer "month_of_publication"
490
+ t.boolean "fulltext_content"
360
491
  t.string "doi"
361
492
  t.boolean "periodical"
362
493
  t.text "statement_of_responsibility"
363
494
  end
364
495
 
365
496
  add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
366
- add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
367
- add_index "manifestations", ["created_at"], :name => "index_manifestations_on_created_at"
368
- add_index "manifestations", ["deleted_at"], :name => "index_manifestations_on_deleted_at"
497
+ add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
369
498
  add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
370
- add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
371
- add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
372
- add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
373
- add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
374
- add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier", :unique => true
375
- add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
376
- add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
377
- add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
499
+ add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
378
500
  add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
379
501
 
380
502
  create_table "medium_of_performances", :force => true do |t|
@@ -387,134 +509,15 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
387
509
  end
388
510
 
389
511
  create_table "owns", :force => true do |t|
390
- t.integer "patron_id", :null => false
512
+ t.integer "agent_id", :null => false
391
513
  t.integer "item_id", :null => false
392
514
  t.integer "position"
393
515
  t.datetime "created_at", :null => false
394
516
  t.datetime "updated_at", :null => false
395
517
  end
396
518
 
519
+ add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
397
520
  add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
398
- add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
399
-
400
- create_table "patron_import_files", :force => true do |t|
401
- t.integer "parent_id"
402
- t.string "content_type"
403
- t.integer "size"
404
- t.integer "user_id"
405
- t.text "note"
406
- t.datetime "executed_at"
407
- t.string "state"
408
- t.string "patron_import_file_name"
409
- t.string "patron_import_content_type"
410
- t.integer "patron_import_file_size"
411
- t.datetime "patron_import_updated_at"
412
- t.datetime "created_at", :null => false
413
- t.datetime "updated_at", :null => false
414
- t.string "patron_import_fingerprint"
415
- t.text "error_message"
416
- t.string "edit_mode"
417
- end
418
-
419
- add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
420
- add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
421
- add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
422
-
423
- create_table "patron_import_results", :force => true do |t|
424
- t.integer "patron_import_file_id"
425
- t.integer "patron_id"
426
- t.integer "user_id"
427
- t.text "body"
428
- t.datetime "created_at", :null => false
429
- t.datetime "updated_at", :null => false
430
- end
431
-
432
- create_table "patron_relationship_types", :force => true do |t|
433
- t.string "name", :null => false
434
- t.text "display_name"
435
- t.text "note"
436
- t.integer "position"
437
- t.datetime "created_at", :null => false
438
- t.datetime "updated_at", :null => false
439
- end
440
-
441
- create_table "patron_relationships", :force => true do |t|
442
- t.integer "parent_id"
443
- t.integer "child_id"
444
- t.integer "patron_relationship_type_id"
445
- t.datetime "created_at", :null => false
446
- t.datetime "updated_at", :null => false
447
- t.integer "position"
448
- end
449
-
450
- add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
451
- add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
452
-
453
- create_table "patron_types", :force => true do |t|
454
- t.string "name", :null => false
455
- t.text "display_name"
456
- t.text "note"
457
- t.integer "position"
458
- t.datetime "created_at", :null => false
459
- t.datetime "updated_at", :null => false
460
- end
461
-
462
- create_table "patrons", :force => true do |t|
463
- t.integer "user_id"
464
- t.string "last_name"
465
- t.string "middle_name"
466
- t.string "first_name"
467
- t.string "last_name_transcription"
468
- t.string "middle_name_transcription"
469
- t.string "first_name_transcription"
470
- t.string "corporate_name"
471
- t.string "corporate_name_transcription"
472
- t.string "full_name"
473
- t.text "full_name_transcription"
474
- t.text "full_name_alternative"
475
- t.datetime "created_at", :null => false
476
- t.datetime "updated_at", :null => false
477
- t.datetime "deleted_at"
478
- t.string "zip_code_1"
479
- t.string "zip_code_2"
480
- t.text "address_1"
481
- t.text "address_2"
482
- t.text "address_1_note"
483
- t.text "address_2_note"
484
- t.string "telephone_number_1"
485
- t.string "telephone_number_2"
486
- t.string "fax_number_1"
487
- t.string "fax_number_2"
488
- t.text "other_designation"
489
- t.text "place"
490
- t.text "street"
491
- t.text "locality"
492
- t.text "region"
493
- t.datetime "date_of_birth"
494
- t.datetime "date_of_death"
495
- t.integer "language_id", :default => 1, :null => false
496
- t.integer "country_id", :default => 1, :null => false
497
- t.integer "patron_type_id", :default => 1, :null => false
498
- t.integer "lock_version", :default => 0, :null => false
499
- t.text "note"
500
- t.integer "required_role_id", :default => 1, :null => false
501
- t.integer "required_score", :default => 0, :null => false
502
- t.string "state"
503
- t.text "email"
504
- t.text "url"
505
- t.text "full_name_alternative_transcription"
506
- t.string "title"
507
- t.string "birth_date"
508
- t.string "death_date"
509
- t.string "patron_identifier"
510
- end
511
-
512
- add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
513
- add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
514
- add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
515
- add_index "patrons", ["patron_identifier"], :name => "index_patrons_on_patron_identifier"
516
- add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
517
- add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
518
521
 
519
522
  create_table "picture_files", :force => true do |t|
520
523
  t.integer "picture_attachable_id"
@@ -545,7 +548,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
545
548
  end
546
549
 
547
550
  create_table "produces", :force => true do |t|
548
- t.integer "patron_id", :null => false
551
+ t.integer "agent_id", :null => false
549
552
  t.integer "manifestation_id", :null => false
550
553
  t.integer "position"
551
554
  t.datetime "created_at", :null => false
@@ -553,8 +556,8 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
553
556
  t.integer "produce_type_id"
554
557
  end
555
558
 
559
+ add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
556
560
  add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
557
- add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
558
561
 
559
562
  create_table "realize_types", :force => true do |t|
560
563
  t.string "name"
@@ -566,7 +569,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
566
569
  end
567
570
 
568
571
  create_table "realizes", :force => true do |t|
569
- t.integer "patron_id", :null => false
572
+ t.integer "agent_id", :null => false
570
573
  t.integer "expression_id", :null => false
571
574
  t.integer "position"
572
575
  t.datetime "created_at", :null => false
@@ -574,8 +577,8 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
574
577
  t.integer "realize_type_id"
575
578
  end
576
579
 
580
+ add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
577
581
  add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
578
- add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
579
582
 
580
583
  create_table "request_status_types", :force => true do |t|
581
584
  t.string "name", :null => false
@@ -655,41 +658,6 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
655
658
  t.datetime "updated_at", :null => false
656
659
  end
657
660
 
658
- create_table "series_has_manifestations", :force => true do |t|
659
- t.integer "series_statement_id"
660
- t.integer "manifestation_id"
661
- t.integer "position"
662
- t.datetime "created_at", :null => false
663
- t.datetime "updated_at", :null => false
664
- end
665
-
666
- add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
667
- add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
668
-
669
- create_table "series_statement_merge_lists", :force => true do |t|
670
- t.string "title"
671
- t.datetime "created_at", :null => false
672
- t.datetime "updated_at", :null => false
673
- end
674
-
675
- create_table "series_statement_merges", :force => true do |t|
676
- t.integer "series_statement_id", :null => false
677
- t.integer "series_statement_merge_list_id", :null => false
678
- t.datetime "created_at", :null => false
679
- t.datetime "updated_at", :null => false
680
- end
681
-
682
- add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
683
- add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
684
-
685
- create_table "series_statement_relationships", :force => true do |t|
686
- t.integer "parent_id"
687
- t.integer "child_id"
688
- t.integer "position"
689
- t.datetime "created_at", :null => false
690
- t.datetime "updated_at", :null => false
691
- end
692
-
693
661
  create_table "series_statements", :force => true do |t|
694
662
  t.text "original_title"
695
663
  t.text "numbering"
@@ -701,8 +669,6 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
701
669
  t.text "title_transcription"
702
670
  t.text "title_alternative"
703
671
  t.string "series_statement_identifier"
704
- t.string "issn"
705
- t.boolean "periodical"
706
672
  t.integer "manifestation_id"
707
673
  t.text "note"
708
674
  t.text "title_subseries_transcription"
@@ -763,14 +729,11 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
763
729
  t.text "display_name"
764
730
  t.text "note"
765
731
  t.integer "position"
766
- t.datetime "created_at", :null => false
767
- t.datetime "updated_at", :null => false
732
+ t.datetime "created_at", :null => false
733
+ t.datetime "updated_at", :null => false
768
734
  t.datetime "deleted_at"
769
- t.integer "valid_period_for_new_user", :default => 0, :null => false
735
+ t.integer "valid_period_for_new_user", :default => 0, :null => false
770
736
  t.datetime "expired_at"
771
- t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
772
- t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
773
- t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
774
737
  end
775
738
 
776
739
  create_table "user_has_roles", :force => true do |t|
@@ -795,35 +758,28 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
795
758
  t.string "current_sign_in_ip"
796
759
  t.string "last_sign_in_ip"
797
760
  t.string "password_salt"
798
- t.string "confirmation_token"
799
- t.datetime "confirmed_at"
800
- t.datetime "confirmation_sent_at"
801
- t.string "unconfirmed_email"
802
- t.integer "failed_attempts", :default => 0
803
- t.string "unlock_token"
804
- t.datetime "locked_at"
805
761
  t.string "authentication_token"
806
762
  t.datetime "created_at", :null => false
807
763
  t.datetime "updated_at", :null => false
764
+ t.string "username"
765
+ t.string "user_number"
766
+ t.string "state"
767
+ t.string "locale"
808
768
  t.datetime "deleted_at"
809
- t.string "username", :null => false
810
- t.integer "library_id", :default => 1, :null => false
811
- t.integer "user_group_id", :default => 1, :null => false
812
769
  t.datetime "expired_at"
770
+ t.integer "library_id", :default => 1, :null => false
813
771
  t.integer "required_role_id", :default => 1, :null => false
772
+ t.integer "user_group_id", :default => 1, :null => false
814
773
  t.text "note"
815
774
  t.text "keyword_list"
816
- t.string "user_number"
817
- t.string "state"
818
- t.string "locale"
819
- t.string "enju_access_key"
775
+ t.integer "failed_attempts", :default => 0
776
+ t.string "unlock_token"
777
+ t.datetime "locked_at"
778
+ t.datetime "confirmed_at"
820
779
  end
821
780
 
822
781
  add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true
823
- add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true
824
- add_index "users", ["email"], :name => "index_users_on_email"
825
- add_index "users", ["enju_access_key"], :name => "index_users_on_enju_access_key", :unique => true
826
- add_index "users", ["required_role_id"], :name => "index_users_on_required_role_id"
782
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
827
783
  add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
828
784
  add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
829
785
  add_index "users", ["user_group_id"], :name => "index_users_on_user_group_id"
Binary file
@@ -64,6 +64,7 @@
64
64
  <tokenizer class="solr.StandardTokenizerFactory"/>
65
65
  <filter class="solr.StandardFilterFactory"/>
66
66
  <filter class="solr.LowerCaseFilterFactory"/>
67
+ <filter class="solr.PorterStemFilterFactory"/>
67
68
  </analyzer>
68
69
  </fieldType>
69
70
  <!-- *** This fieldType is used by Sunspot! *** -->
@@ -1 +1 @@
1
- NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttpty|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1
+ NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptyyyy||yyyy||||||||||||||||y|y|||y|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,7 +1,8 @@
1
- ����0idtype
1
+ ����4idtype
2
2
  class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
3
  library_sm
4
4
  language_sitem_identifier_smshelf_sm created_at_d updated_at_dcreator_ids_imcontributor_ids_impublisher_ids_im item_ids_imrequired_role_id_i start_page_i
5
5
  end_page_inumber_of_pages_irepository_content_b
6
6
  creator_sm sort_title_s periodical_bseries_master_bresource_master_b
7
- title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textissn_smoriginal_manifestation_ids_im
7
+ title_text creator_textcontributor_textpublisher_textitem_identifier_text aulast_text aufirst_textau_text btitle_text isbn_textissn_smoriginal_manifestation_ids_im
8
+ pub_year_i
@@ -1 +1 @@
1
- NRM�vruwvvuur|xttutttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|xttutttwwuuuuuuxx|||||y||||||||||||||||||||||||||||||||||||||||||||||||
1
+ NRM�vruwvvuur|xttutttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|x||u|ttwwuuuuuuxx||||yx||y||||||||||||||||||||||||||||||||||||||||||||||||||||||||tt|t|||||||||||||||||||||||tt|t||||||||||||