enju_oai 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enju_oai/engine.rb +1 -8
- data/lib/enju_oai/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +1 -1
- data/spec/dummy/config/application.rb +3 -1
- data/spec/dummy/config/initializers/devise.rb +0 -4
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/db/migrate/001_create_patrons.rb +0 -1
- data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -3
- data/spec/dummy/db/migrate/012_create_owns.rb +0 -2
- data/spec/dummy/db/migrate/015_create_creates.rb +0 -2
- data/spec/dummy/db/migrate/047_create_produces.rb +0 -2
- data/spec/dummy/db/migrate/059_create_libraries.rb +1 -3
- data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
- data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +0 -2
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +0 -2
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
- data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -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/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -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/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/20111009183423_add_ndc_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.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/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
- data/spec/dummy/db/schema.rb +288 -43
- data/spec/dummy/db/test.sqlite3 +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 +250 -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/_c.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_c.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_c.fnm +7 -0
- data/spec/dummy/solr/data/test/index/_c.frq +0 -0
- data/spec/dummy/solr/data/test/index/_c.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_c.prx +0 -0
- data/spec/dummy/solr/data/test/index/_c.tii +0 -0
- data/spec/dummy/solr/data/test/index/_c.tis +0 -0
- data/spec/dummy/solr/data/test/index/_d.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_d.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_d.fnm +7 -0
- data/spec/dummy/solr/data/test/index/_d.frq +0 -0
- data/spec/dummy/solr/data/test/index/_d.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_d.prx +0 -0
- data/spec/dummy/solr/data/test/index/_d.tii +0 -0
- data/spec/dummy/solr/data/test/index/_d.tis +0 -0
- data/spec/dummy/solr/data/test/index/_e.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_e.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_e.fnm +7 -0
- data/spec/dummy/solr/data/test/index/_e.frq +0 -0
- data/spec/dummy/solr/data/test/index/_e.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_e.prx +0 -0
- data/spec/dummy/solr/data/test/index/_e.tii +0 -0
- data/spec/dummy/solr/data/test/index/_e.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1p +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/factories/user.rb +6 -3
- data/spec/fixtures/bookstores.yml +107 -0
- data/spec/fixtures/budget_types.yml +29 -0
- data/spec/fixtures/content_types.yml +36 -0
- data/spec/fixtures/countries.yml +2059 -0
- data/spec/fixtures/create_types.yml +47 -0
- data/spec/fixtures/creates.yml +2 -3
- data/spec/fixtures/donates.yml +31 -0
- data/spec/fixtures/exemplifies.yml +8 -3
- data/spec/fixtures/extents.yml +29 -0
- data/spec/fixtures/form_of_works.yml +39 -0
- data/spec/fixtures/frequencies.yml +85 -0
- data/spec/fixtures/import_requests.yml +27 -0
- data/spec/fixtures/items.yml +0 -5
- data/spec/fixtures/languages.yml +1901 -0
- data/spec/fixtures/libraries.yml +25 -32
- data/spec/fixtures/library_groups.yml +2 -5
- data/spec/fixtures/licenses.yml +29 -0
- data/spec/fixtures/manifestation_relationship_types.yml +29 -0
- data/spec/fixtures/manifestation_relationships.yml +30 -0
- data/spec/fixtures/manifestations.yml +9 -13
- data/spec/fixtures/medium_of_performances.yml +29 -0
- data/spec/fixtures/owns.yml +26 -0
- data/spec/fixtures/patron_import_files.yml +47 -0
- data/spec/fixtures/patron_import_results.yml +29 -0
- data/spec/fixtures/patron_relationship_types.yml +34 -0
- data/spec/fixtures/patron_relationships.yml +25 -0
- data/spec/fixtures/patron_types.yml +0 -6
- data/spec/fixtures/patrons.yml +3 -3
- data/spec/fixtures/picture_files.yml +63 -0
- data/spec/fixtures/produce_types.yml +31 -0
- data/spec/fixtures/produces.yml +2 -3
- data/spec/fixtures/realize_types.yml +39 -0
- data/spec/fixtures/realizes.yml +2 -3
- data/spec/fixtures/request_status_types.yml +63 -0
- data/spec/fixtures/request_types.yml +55 -0
- data/spec/fixtures/resource_import_files.yml +47 -0
- data/spec/fixtures/resource_import_results.yml +29 -0
- data/spec/fixtures/series_has_manifestations.yml +35 -0
- data/spec/fixtures/series_statements.yml +45 -0
- data/spec/fixtures/shelves.yml +47 -0
- data/spec/fixtures/user_groups.yml +51 -0
- data/spec/spec_helper.rb +13 -0
- metadata +244 -116
- data/spec/dummy/app/models/carrier_type.rb +0 -33
- data/spec/dummy/app/models/create.rb +0 -38
- data/spec/dummy/app/models/exemplify.rb +0 -45
- data/spec/dummy/app/models/item.rb +0 -276
- data/spec/dummy/app/models/manifestation.rb +0 -631
- data/spec/dummy/app/models/patron.rb +0 -290
- data/spec/dummy/app/models/produce.rb +0 -39
- data/spec/dummy/app/models/realize.rb +0 -38
- data/spec/dummy/app/models/search_engine.rb +0 -51
- data/spec/dummy/db/migrate/20101228081401_rename_postal_code_to_zip_code.rb +0 -11
- data/spec/dummy/lib/enju_leaf/calculate_stat.rb +0 -30
- data/spec/dummy/lib/enju_leaf/expire_editable_fragment.rb +0 -30
- data/spec/dummy/lib/enju_leaf/expire_fragment_cache.rb +0 -17
- data/spec/dummy/lib/enju_leaf/import_file.rb +0 -13
- data/spec/dummy/lib/enju_leaf/localized_name.rb +0 -13
- data/spec/dummy/lib/enju_leaf/master_model.rb +0 -19
- data/spec/dummy/lib/enju_leaf/url_validator.rb +0 -10
@@ -0,0 +1,39 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
editor:
|
4
|
+
name: editor
|
5
|
+
display_name: "en: Editor\r\n\
|
6
|
+
ja: 編者"
|
7
|
+
note:
|
8
|
+
position: 1
|
9
|
+
id: 1
|
10
|
+
|
11
|
+
translator:
|
12
|
+
name: translator
|
13
|
+
display_name: "en: Translator\r\n\
|
14
|
+
ja: 訳者"
|
15
|
+
note:
|
16
|
+
position: 2
|
17
|
+
id: 2
|
18
|
+
|
19
|
+
illustrator:
|
20
|
+
name: illustrator
|
21
|
+
display_name: "en: Illustrator\r\n\
|
22
|
+
ja: 作画者"
|
23
|
+
note:
|
24
|
+
position: 3
|
25
|
+
id: 3
|
26
|
+
|
27
|
+
# == Schema Information
|
28
|
+
#
|
29
|
+
# Table name: realize_types
|
30
|
+
#
|
31
|
+
# id :integer not null, primary key
|
32
|
+
# name :string(255)
|
33
|
+
# display_name :text
|
34
|
+
# note :text
|
35
|
+
# position :integer
|
36
|
+
# created_at :datetime
|
37
|
+
# updated_at :datetime
|
38
|
+
#
|
39
|
+
|
data/spec/fixtures/realizes.yml
CHANGED
@@ -79,9 +79,8 @@ realize_00010:
|
|
79
79
|
# patron_id :integer not null
|
80
80
|
# expression_id :integer not null
|
81
81
|
# position :integer
|
82
|
-
#
|
83
|
-
#
|
84
|
-
# updated_at :datetime
|
82
|
+
# created_at :datetime not null
|
83
|
+
# updated_at :datetime not null
|
85
84
|
# realize_type_id :integer
|
86
85
|
#
|
87
86
|
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
request_status_type_00001:
|
3
|
+
name: Available For Pickup
|
4
|
+
display_name: Available For Pickup
|
5
|
+
updated_at: 2008-02-13 18:38:38.553114 +09:00
|
6
|
+
id: 1
|
7
|
+
position: 1
|
8
|
+
note: ""
|
9
|
+
created_at: 2008-02-13 18:38:38.553114 +09:00
|
10
|
+
request_status_type_00002:
|
11
|
+
name: Cannot Fulfill Request
|
12
|
+
display_name: Cannot Fulfill Request
|
13
|
+
updated_at: 2008-02-13 18:38:51.815755 +09:00
|
14
|
+
id: 2
|
15
|
+
position: 2
|
16
|
+
note: ""
|
17
|
+
created_at: 2008-02-13 18:38:51.815755 +09:00
|
18
|
+
request_status_type_00003:
|
19
|
+
name: Expired
|
20
|
+
display_name: Expired
|
21
|
+
updated_at: 2008-02-13 18:39:00.878701 +09:00
|
22
|
+
id: 3
|
23
|
+
position: 3
|
24
|
+
note: ""
|
25
|
+
created_at: 2008-02-13 18:39:00.878701 +09:00
|
26
|
+
request_status_type_00004:
|
27
|
+
name: In Process
|
28
|
+
display_name: In Process
|
29
|
+
updated_at: 2008-02-13 18:39:10.010140 +09:00
|
30
|
+
id: 4
|
31
|
+
position: 4
|
32
|
+
note: ""
|
33
|
+
created_at: 2008-02-13 18:39:10.010140 +09:00
|
34
|
+
request_status_type_00005:
|
35
|
+
name: Need to Accept Conditions
|
36
|
+
display_name: Need to Accept Conditions
|
37
|
+
updated_at: 2008-02-13 18:39:19.068390 +09:00
|
38
|
+
id: 5
|
39
|
+
position: 5
|
40
|
+
note: ""
|
41
|
+
created_at: 2008-02-13 18:39:19.068390 +09:00
|
42
|
+
request_status_type_00006:
|
43
|
+
name: Requested Via ILL
|
44
|
+
display_name: Requested Via ILL
|
45
|
+
updated_at: 2008-02-13 18:39:29.382844 +09:00
|
46
|
+
id: 6
|
47
|
+
position: 6
|
48
|
+
note: ""
|
49
|
+
created_at: 2008-02-13 18:39:29.382844 +09:00
|
50
|
+
|
51
|
+
# == Schema Information
|
52
|
+
#
|
53
|
+
# Table name: request_status_types
|
54
|
+
#
|
55
|
+
# id :integer not null, primary key
|
56
|
+
# name :string(255) not null
|
57
|
+
# display_name :text
|
58
|
+
# note :text
|
59
|
+
# position :integer
|
60
|
+
# created_at :datetime
|
61
|
+
# updated_at :datetime
|
62
|
+
#
|
63
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
request_type_00005:
|
3
|
+
name: Stack Retrieval
|
4
|
+
display_name: Stack Retrieval
|
5
|
+
updated_at: 2008-02-13 18:44:10.145739 +09:00
|
6
|
+
id: 5
|
7
|
+
position: 5
|
8
|
+
note: ""
|
9
|
+
created_at: 2008-02-13 18:44:10.145739 +09:00
|
10
|
+
request_type_00001:
|
11
|
+
name: Estimate
|
12
|
+
display_name: Estimate
|
13
|
+
updated_at: 2008-02-13 18:43:33.710810 +09:00
|
14
|
+
id: 1
|
15
|
+
position: 1
|
16
|
+
note: ""
|
17
|
+
created_at: 2008-02-13 18:43:33.710810 +09:00
|
18
|
+
request_type_00002:
|
19
|
+
name: Hold
|
20
|
+
display_name: Hold
|
21
|
+
updated_at: 2008-02-13 18:43:42.151759 +09:00
|
22
|
+
id: 2
|
23
|
+
position: 2
|
24
|
+
note: ""
|
25
|
+
created_at: 2008-02-13 18:43:42.151759 +09:00
|
26
|
+
request_type_00003:
|
27
|
+
name: Loan
|
28
|
+
display_name: Loan
|
29
|
+
updated_at: 2008-02-13 18:43:51.940315 +09:00
|
30
|
+
id: 3
|
31
|
+
position: 3
|
32
|
+
note: ""
|
33
|
+
created_at: 2008-02-13 18:43:51.940315 +09:00
|
34
|
+
request_type_00004:
|
35
|
+
name: Non-Returnable Copy
|
36
|
+
display_name: Non-Returnable Copy
|
37
|
+
updated_at: 2008-02-13 18:44:00.870893 +09:00
|
38
|
+
id: 4
|
39
|
+
position: 4
|
40
|
+
note: ""
|
41
|
+
created_at: 2008-02-13 18:44:00.870893 +09:00
|
42
|
+
|
43
|
+
# == Schema Information
|
44
|
+
#
|
45
|
+
# Table name: request_types
|
46
|
+
#
|
47
|
+
# id :integer not null, primary key
|
48
|
+
# name :string(255) not null
|
49
|
+
# display_name :text
|
50
|
+
# note :text
|
51
|
+
# position :integer
|
52
|
+
# created_at :datetime
|
53
|
+
# updated_at :datetime
|
54
|
+
#
|
55
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
resource_import_file_00001:
|
4
|
+
id: 1
|
5
|
+
resource_import_file_name: MyString
|
6
|
+
resource_import_file_size: 1
|
7
|
+
user_id: 1
|
8
|
+
resource_import_content_type: text/csv
|
9
|
+
state: completed
|
10
|
+
resource_import_file_00002:
|
11
|
+
id: 2
|
12
|
+
resource_import_file_name: MyString
|
13
|
+
resource_import_file_size: 1
|
14
|
+
user_id: 1
|
15
|
+
resource_import_content_type: text/csv
|
16
|
+
state: pending
|
17
|
+
resource_import_file_00003:
|
18
|
+
id: 3
|
19
|
+
resource_import_file_name: MyString
|
20
|
+
resource_import_file_size: 1
|
21
|
+
user_id: 1
|
22
|
+
resource_import_content_type: text/csv
|
23
|
+
state: pending
|
24
|
+
|
25
|
+
# == Schema Information
|
26
|
+
#
|
27
|
+
# Table name: resource_import_files
|
28
|
+
#
|
29
|
+
# id :integer not null, primary key
|
30
|
+
# parent_id :integer
|
31
|
+
# content_type :string(255)
|
32
|
+
# size :integer
|
33
|
+
# user_id :integer
|
34
|
+
# note :text
|
35
|
+
# executed_at :datetime
|
36
|
+
# state :string(255)
|
37
|
+
# resource_import_file_name :string(255)
|
38
|
+
# resource_import_content_type :string(255)
|
39
|
+
# resource_import_file_size :integer
|
40
|
+
# resource_import_updated_at :datetime
|
41
|
+
# created_at :datetime not null
|
42
|
+
# updated_at :datetime not null
|
43
|
+
# edit_mode :string(255)
|
44
|
+
# resource_import_fingerprint :string(255)
|
45
|
+
# error_message :text
|
46
|
+
#
|
47
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
id: 1
|
5
|
+
resource_import_file_id: 1
|
6
|
+
manifestation_id: 1
|
7
|
+
item_id: 1
|
8
|
+
body: MyText
|
9
|
+
|
10
|
+
two:
|
11
|
+
id: 2
|
12
|
+
resource_import_file_id: 1
|
13
|
+
manifestation_id: 1
|
14
|
+
item_id: 1
|
15
|
+
body: MyText
|
16
|
+
|
17
|
+
# == Schema Information
|
18
|
+
#
|
19
|
+
# Table name: resource_import_results
|
20
|
+
#
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# resource_import_file_id :integer
|
23
|
+
# manifestation_id :integer
|
24
|
+
# item_id :integer
|
25
|
+
# body :text
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
#
|
29
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
series_has_manifestation_00001:
|
3
|
+
updated_at: 2008-01-11 23:28:19.277110 +09:00
|
4
|
+
manifestation_id: 1
|
5
|
+
series_statement_id: 1
|
6
|
+
id: 1
|
7
|
+
position: 1
|
8
|
+
created_at: 2008-01-11 23:28:19.277110 +09:00
|
9
|
+
series_has_manifestation_00002:
|
10
|
+
updated_at: 2008-01-11 23:28:57.068191 +09:00
|
11
|
+
manifestation_id: 202
|
12
|
+
series_statement_id: 2
|
13
|
+
id: 2
|
14
|
+
position: 1
|
15
|
+
created_at: 2008-01-11 23:28:57.068191 +09:00
|
16
|
+
series_has_manifestation_00003:
|
17
|
+
updated_at: 2008-01-11 23:32:03.701425 +09:00
|
18
|
+
manifestation_id: 203
|
19
|
+
series_statement_id: 3
|
20
|
+
id: 3
|
21
|
+
position: 1
|
22
|
+
created_at: 2008-01-11 23:32:03.701425 +09:00
|
23
|
+
|
24
|
+
# == Schema Information
|
25
|
+
#
|
26
|
+
# Table name: series_has_manifestations
|
27
|
+
#
|
28
|
+
# id :integer not null, primary key
|
29
|
+
# series_statement_id :integer
|
30
|
+
# manifestation_id :integer
|
31
|
+
# position :integer
|
32
|
+
# created_at :datetime
|
33
|
+
# updated_at :datetime
|
34
|
+
#
|
35
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
id: 1
|
5
|
+
original_title: title1
|
6
|
+
periodical: false
|
7
|
+
position: 1
|
8
|
+
|
9
|
+
two:
|
10
|
+
id: 2
|
11
|
+
original_title: title2
|
12
|
+
title_transcription: テスト
|
13
|
+
periodical: true
|
14
|
+
issn: 09135707
|
15
|
+
position: 2
|
16
|
+
|
17
|
+
three:
|
18
|
+
id: 3
|
19
|
+
original_title: テスト雑誌
|
20
|
+
periodical: true
|
21
|
+
position: 3
|
22
|
+
|
23
|
+
|
24
|
+
# == Schema Information
|
25
|
+
#
|
26
|
+
# Table name: series_statements
|
27
|
+
#
|
28
|
+
# id :integer not null, primary key
|
29
|
+
# original_title :text
|
30
|
+
# numbering :text
|
31
|
+
# title_subseries :text
|
32
|
+
# numbering_subseries :text
|
33
|
+
# position :integer
|
34
|
+
# created_at :datetime not null
|
35
|
+
# updated_at :datetime not null
|
36
|
+
# title_transcription :text
|
37
|
+
# title_alternative :text
|
38
|
+
# series_statement_identifier :string(255)
|
39
|
+
# issn :string(255)
|
40
|
+
# periodical :boolean
|
41
|
+
# root_manifestation_id :integer
|
42
|
+
# note :text
|
43
|
+
# title_subseries_transcription :text
|
44
|
+
#
|
45
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
shelf_00001:
|
3
|
+
name: web
|
4
|
+
display_name: Library bookmark
|
5
|
+
id: 1
|
6
|
+
note:
|
7
|
+
library_id: 1
|
8
|
+
position: 1
|
9
|
+
shelf_00002:
|
10
|
+
name: first_shelf
|
11
|
+
display_name: First shelf
|
12
|
+
id: 2
|
13
|
+
note:
|
14
|
+
library_id: 2
|
15
|
+
position: 2
|
16
|
+
shelf_00003:
|
17
|
+
name: second_shelf
|
18
|
+
display_name: Second shelf
|
19
|
+
id: 3
|
20
|
+
note:
|
21
|
+
library_id: 2
|
22
|
+
position: 3
|
23
|
+
shelf_00004:
|
24
|
+
name: third_shelf
|
25
|
+
display_name: Third shelf
|
26
|
+
id: 4
|
27
|
+
note:
|
28
|
+
library_id: 3
|
29
|
+
position: 4
|
30
|
+
|
31
|
+
# == Schema Information
|
32
|
+
#
|
33
|
+
# Table name: shelves
|
34
|
+
#
|
35
|
+
# id :integer not null, primary key
|
36
|
+
# name :string(255) not null
|
37
|
+
# display_name :text
|
38
|
+
# note :text
|
39
|
+
# library_id :integer default(1), not null
|
40
|
+
# items_count :integer default(0), not null
|
41
|
+
# position :integer
|
42
|
+
# created_at :datetime not null
|
43
|
+
# updated_at :datetime not null
|
44
|
+
# deleted_at :datetime
|
45
|
+
# closed :boolean default(FALSE), not null
|
46
|
+
#
|
47
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
user_group_00001:
|
3
|
+
name: (not specified)
|
4
|
+
display_name: (not specified)
|
5
|
+
updated_at: 2007-12-13 21:00:51.564542 +09:00
|
6
|
+
id: 1
|
7
|
+
note: ""
|
8
|
+
created_at: 2007-12-13 21:00:01.674976 +09:00
|
9
|
+
position: 1
|
10
|
+
valid_period_for_new_user: 0
|
11
|
+
number_of_day_to_notify_due_date: 2
|
12
|
+
user_group_00002:
|
13
|
+
name: User
|
14
|
+
display_name: User
|
15
|
+
updated_at: 2007-12-23 03:14:56.836548 +09:00
|
16
|
+
id: 2
|
17
|
+
note: ""
|
18
|
+
created_at: 2007-12-23 03:14:40.173954 +09:00
|
19
|
+
position: 2
|
20
|
+
valid_period_for_new_user: 365
|
21
|
+
number_of_day_to_notify_overdue: 30
|
22
|
+
number_of_time_to_notify_overdue: 6
|
23
|
+
user_group_00003:
|
24
|
+
name: Faculty
|
25
|
+
display_name: Faculty
|
26
|
+
updated_at: 2007-12-23 03:15:05.134351 +09:00
|
27
|
+
id: 3
|
28
|
+
note: ""
|
29
|
+
created_at: 2007-12-23 03:15:05.126457 +09:00
|
30
|
+
position: 3
|
31
|
+
valid_period_for_new_user: 730
|
32
|
+
|
33
|
+
# == Schema Information
|
34
|
+
#
|
35
|
+
# Table name: user_groups
|
36
|
+
#
|
37
|
+
# id :integer not null, primary key
|
38
|
+
# name :string(255)
|
39
|
+
# display_name :text
|
40
|
+
# note :text
|
41
|
+
# position :integer
|
42
|
+
# created_at :datetime not null
|
43
|
+
# updated_at :datetime not null
|
44
|
+
# deleted_at :datetime
|
45
|
+
# valid_period_for_new_user :integer default(0), not null
|
46
|
+
# expired_at :datetime
|
47
|
+
# number_of_day_to_notify_overdue :integer default(1), not null
|
48
|
+
# number_of_day_to_notify_due_date :integer default(7), not null
|
49
|
+
# number_of_time_to_notify_overdue :integer default(3), not null
|
50
|
+
#
|
51
|
+
|
data/spec/spec_helper.rb
CHANGED
@@ -4,6 +4,7 @@ require File.expand_path("../dummy/config/environment", __FILE__)
|
|
4
4
|
require 'rspec/rails'
|
5
5
|
require 'rspec/autorun'
|
6
6
|
require 'factory_girl'
|
7
|
+
require 'sunspot-rails-tester'
|
7
8
|
|
8
9
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
9
10
|
# in spec/support/ and its subdirectories.
|
@@ -32,6 +33,18 @@ RSpec.configure do |config|
|
|
32
33
|
config.infer_base_class_for_anonymous_controllers = false
|
33
34
|
|
34
35
|
config.extend ControllerMacros, :type => :controller
|
36
|
+
|
37
|
+
$original_sunspot_session = Sunspot.session
|
38
|
+
|
39
|
+
config.before do
|
40
|
+
Sunspot.session = Sunspot::Rails::StubSessionProxy.new($original_sunspot_session)
|
41
|
+
end
|
42
|
+
|
43
|
+
config.before :each, :solr => true do
|
44
|
+
Sunspot::Rails::Tester.start_original_sunspot_session
|
45
|
+
Sunspot.session = $original_sunspot_session
|
46
|
+
Sunspot.remove_all!
|
47
|
+
end
|
35
48
|
end
|
36
49
|
|
37
50
|
FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
|