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,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,21 @@
|
|
1
|
+
---
|
2
|
+
role_00001:
|
3
|
+
name: Guest
|
4
|
+
display_name: Guest
|
5
|
+
id: 1
|
6
|
+
note:
|
7
|
+
role_00002:
|
8
|
+
name: User
|
9
|
+
display_name: User
|
10
|
+
id: 2
|
11
|
+
note:
|
12
|
+
role_00003:
|
13
|
+
name: Librarian
|
14
|
+
display_name: Librarian
|
15
|
+
id: 3
|
16
|
+
note:
|
17
|
+
role_00004:
|
18
|
+
name: Administrator
|
19
|
+
display_name: Administrator
|
20
|
+
id: 4
|
21
|
+
note:
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
search_engine_00001:
|
4
|
+
id: 1
|
5
|
+
name: Keio University Library
|
6
|
+
url: http://catalog.lib.keio.ac.jp/
|
7
|
+
base_url: http://catalog.lib.keio.ac.jp/
|
8
|
+
http_method: post
|
9
|
+
query_param: query
|
10
|
+
additional_param: "submit=Search\nlocale=ja\nkeyword={query}"
|
11
|
+
note:
|
12
|
+
position: 1
|
13
|
+
|
14
|
+
search_engine_00002:
|
15
|
+
id: 2
|
16
|
+
name: Google
|
17
|
+
url: http://www.google.com/
|
18
|
+
base_url: http://www.google.com/
|
19
|
+
http_method: get
|
20
|
+
query_param: q
|
21
|
+
note:
|
22
|
+
position: 2
|
23
|
+
|
24
|
+
# == Schema Information
|
25
|
+
#
|
26
|
+
# Table name: search_engines
|
27
|
+
#
|
28
|
+
# id :integer not null, primary key
|
29
|
+
# name :string(255) not null
|
30
|
+
# display_name :text
|
31
|
+
# url :string(255) not null
|
32
|
+
# base_url :text not null
|
33
|
+
# http_method :text not null
|
34
|
+
# query_param :text not null
|
35
|
+
# additional_param :text
|
36
|
+
# note :text
|
37
|
+
# position :integer
|
38
|
+
# created_at :datetime
|
39
|
+
# updated_at :datetime
|
40
|
+
#
|
41
|
+
|
@@ -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,45 @@
|
|
1
|
+
---
|
2
|
+
subscription_00001:
|
3
|
+
id: 1
|
4
|
+
subscription_id: 1
|
5
|
+
work_id: 1
|
6
|
+
start_at: 2008-01-08 01:23:15.995345 +09:00
|
7
|
+
end_at: 2009-01-08 01:23:15.995345 +09:00
|
8
|
+
subscription_00002:
|
9
|
+
id: 2
|
10
|
+
subscription_id: 1
|
11
|
+
work_id: 2
|
12
|
+
start_at: 2008-01-08 01:23:15.995345 +09:00
|
13
|
+
end_at: 2009-01-08 01:23:15.995345 +09:00
|
14
|
+
subscription_00003:
|
15
|
+
id: 3
|
16
|
+
subscription_id: 2
|
17
|
+
work_id: 1
|
18
|
+
start_at: 2008-01-08 01:23:15.995345 +09:00
|
19
|
+
end_at: 2009-01-08 01:23:15.995345 +09:00
|
20
|
+
subscription_00004:
|
21
|
+
id: 4
|
22
|
+
subscription_id: 2
|
23
|
+
work_id: 2
|
24
|
+
start_at: 2008-01-08 01:23:15.995345 +09:00
|
25
|
+
end_at: 2009-01-08 01:23:15.995345 +09:00
|
26
|
+
subscription_00005:
|
27
|
+
id: 5
|
28
|
+
subscription_id: 2
|
29
|
+
work_id: 3
|
30
|
+
start_at: 2008-01-08 01:23:15.995345 +09:00
|
31
|
+
end_at: 2009-01-08 01:23:15.995345 +09:00
|
32
|
+
|
33
|
+
# == Schema Information
|
34
|
+
#
|
35
|
+
# Table name: subscribes
|
36
|
+
#
|
37
|
+
# id :integer not null, primary key
|
38
|
+
# subscription_id :integer not null
|
39
|
+
# work_id :integer not null
|
40
|
+
# start_at :datetime not null
|
41
|
+
# end_at :datetime not null
|
42
|
+
# created_at :datetime
|
43
|
+
# updated_at :datetime
|
44
|
+
#
|
45
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
subscription_00001:
|
3
|
+
id: 1
|
4
|
+
title: test
|
5
|
+
user_id: 1
|
6
|
+
order_list_id: 1
|
7
|
+
subscription_00002:
|
8
|
+
id: 2
|
9
|
+
title: test
|
10
|
+
user_id: 2
|
11
|
+
order_list_id: 2
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: subscriptions
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# title :text not null
|
19
|
+
# note :text
|
20
|
+
# user_id :integer
|
21
|
+
# order_list_id :integer
|
22
|
+
# deleted_at :datetime
|
23
|
+
# subscribes_count :integer default(0), not null
|
24
|
+
# created_at :datetime
|
25
|
+
# updated_at :datetime
|
26
|
+
#
|
27
|
+
|
@@ -0,0 +1,31 @@
|
|
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
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
admin:
|
4
|
+
user_id: 1
|
5
|
+
role_id: 4
|
6
|
+
|
7
|
+
librarian1:
|
8
|
+
user_id: 2
|
9
|
+
role_id: 3
|
10
|
+
|
11
|
+
user1:
|
12
|
+
user_id: 3
|
13
|
+
role_id: 2
|
14
|
+
|
15
|
+
librarian2:
|
16
|
+
user_id: 4
|
17
|
+
role_id: 3
|
18
|
+
|
19
|
+
user2:
|
20
|
+
user_id: 5
|
21
|
+
role_id: 2
|
22
|
+
|
23
|
+
user3:
|
24
|
+
user_id: 6
|
25
|
+
role_id: 2
|
26
|
+
|
27
|
+
user4:
|
28
|
+
user_id: 7
|
29
|
+
role_id: 2
|
30
|
+
|
31
|
+
# == Schema Information
|
32
|
+
#
|
33
|
+
# Table name: user_has_roles
|
34
|
+
#
|
35
|
+
# id :integer not null, primary key
|
36
|
+
# user_id :integer
|
37
|
+
# role_id :integer
|
38
|
+
# created_at :datetime
|
39
|
+
# updated_at :datetime
|
40
|
+
#
|
41
|
+
|
@@ -0,0 +1,129 @@
|
|
1
|
+
---
|
2
|
+
admin:
|
3
|
+
updated_at: 2008-05-31 13:16:30.163731 +09:00
|
4
|
+
encrypted_password: $2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi
|
5
|
+
user_group_id: 2
|
6
|
+
id: 1
|
7
|
+
note:
|
8
|
+
username: admin
|
9
|
+
library_id: 2
|
10
|
+
email: tanabe@kamata.lib.teu.ac.jp
|
11
|
+
created_at: 2007-11-19 16:58:32.111941 +09:00
|
12
|
+
required_role_id: 4
|
13
|
+
user_number: "00001"
|
14
|
+
locale: "ja"
|
15
|
+
librarian1:
|
16
|
+
updated_at: 2008-05-31 12:41:16.337474 +09:00
|
17
|
+
encrypted_password: $2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS
|
18
|
+
user_group_id: 1
|
19
|
+
id: 2
|
20
|
+
note:
|
21
|
+
username: librarian1
|
22
|
+
library_id: 1
|
23
|
+
email: librarian1@kamata.lib.teu.ac.jp
|
24
|
+
created_at: 2007-11-19 16:58:33.172441 +09:00
|
25
|
+
required_role_id: 1
|
26
|
+
user_number: "00002"
|
27
|
+
locale: "ja"
|
28
|
+
user1:
|
29
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
30
|
+
encrypted_password: $2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW
|
31
|
+
user_group_id: 1
|
32
|
+
id: 3
|
33
|
+
note:
|
34
|
+
username: user1
|
35
|
+
library_id: 2
|
36
|
+
email: user1@kamata.lib.teu.ac.jp
|
37
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
38
|
+
required_role_id: 3
|
39
|
+
user_number: "00003"
|
40
|
+
locale: "ja"
|
41
|
+
librarian2:
|
42
|
+
updated_at: 2008-05-31 12:42:23.340575 +09:00
|
43
|
+
encrypted_password: $2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS
|
44
|
+
user_group_id: 1
|
45
|
+
id: 4
|
46
|
+
note:
|
47
|
+
username: librarian2
|
48
|
+
library_id: 2
|
49
|
+
email: librarian2@library.example.jp
|
50
|
+
created_at: 2008-01-18 12:24:04.222344 +09:00
|
51
|
+
required_role_id: 1
|
52
|
+
user_number: "00004"
|
53
|
+
locale: "ja"
|
54
|
+
user2:
|
55
|
+
updated_at: 2008-05-31 12:42:44.711117 +09:00
|
56
|
+
encrypted_password: $2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca
|
57
|
+
user_group_id: 1
|
58
|
+
id: 5
|
59
|
+
note:
|
60
|
+
username: user2
|
61
|
+
library_id: 1
|
62
|
+
email: user2@library.example.jp
|
63
|
+
created_at: 2008-01-18 13:29:06.922728 +09:00
|
64
|
+
required_role_id: 2
|
65
|
+
# user_number: '00005'
|
66
|
+
locale: "ja"
|
67
|
+
user3:
|
68
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
69
|
+
encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
|
70
|
+
user_group_id: 1
|
71
|
+
id: 6
|
72
|
+
note:
|
73
|
+
username: user3
|
74
|
+
library_id: 2
|
75
|
+
email: user3@kamata.lib.teu.ac.jp
|
76
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
77
|
+
required_role_id: 3
|
78
|
+
user_number: "00006"
|
79
|
+
locale: "ja"
|
80
|
+
user4:
|
81
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
82
|
+
encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
|
83
|
+
user_group_id: 1
|
84
|
+
id: 7
|
85
|
+
note:
|
86
|
+
username: user4
|
87
|
+
library_id: 2
|
88
|
+
locked_at: <%= 1.day.ago %>
|
89
|
+
email: user4@kamata.lib.teu.ac.jp
|
90
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
91
|
+
required_role_id: 3
|
92
|
+
user_number: "00007"
|
93
|
+
locale: "ja"
|
94
|
+
# == Schema Information
|
95
|
+
#
|
96
|
+
# Table name: users
|
97
|
+
#
|
98
|
+
# id :integer not null, primary key
|
99
|
+
# email :string(255) default(""), not null
|
100
|
+
# encrypted_password :string(255) default(""), not null
|
101
|
+
# reset_password_token :string(255)
|
102
|
+
# reset_password_sent_at :datetime
|
103
|
+
# remember_created_at :datetime
|
104
|
+
# sign_in_count :integer default(0)
|
105
|
+
# current_sign_in_at :datetime
|
106
|
+
# last_sign_in_at :datetime
|
107
|
+
# current_sign_in_ip :string(255)
|
108
|
+
# last_sign_in_ip :string(255)
|
109
|
+
# confirmation_token :string(255)
|
110
|
+
# confirmation_sent_at :datetime
|
111
|
+
# unconfirmed_email :string(255)
|
112
|
+
# failed_attempts :integer default(0)
|
113
|
+
# unlock_token :string(255)
|
114
|
+
# locked_at :datetime
|
115
|
+
# authentication_token :string(255)
|
116
|
+
# created_at :datetime not null
|
117
|
+
# updated_at :datetime not null
|
118
|
+
# username :string(255) not null
|
119
|
+
# library_id :integer default(1), not null
|
120
|
+
# user_group_id :integer default(1), not null
|
121
|
+
# required_role_id :integer default(1), not null
|
122
|
+
# note :text
|
123
|
+
# keyword_list :text
|
124
|
+
# user_number :string(255)
|
125
|
+
# state :string(255)
|
126
|
+
# locale :string(255)
|
127
|
+
# enju_access_key :string(255)
|
128
|
+
#
|
129
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Bookstore do
|
5
|
+
#pending "add some examples to (or delete) #{__FILE__}"
|
6
|
+
|
7
|
+
end
|
8
|
+
|
9
|
+
# == Schema Information
|
10
|
+
#
|
11
|
+
# Table name: bookstores
|
12
|
+
#
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# name :text not null
|
15
|
+
# zip_code :string(255)
|
16
|
+
# address :text
|
17
|
+
# note :text
|
18
|
+
# telephone_number :string(255)
|
19
|
+
# fax_number :string(255)
|
20
|
+
# url :string(255)
|
21
|
+
# position :integer
|
22
|
+
# deleted_at :datetime
|
23
|
+
# created_at :datetime
|
24
|
+
# updated_at :datetime
|
25
|
+
#
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe BudgetType do
|
5
|
+
it 'should create budget_type' do
|
6
|
+
FactoryGirl.create(:budget_type)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
# == Schema Information
|
11
|
+
#
|
12
|
+
# Table name: budget_types
|
13
|
+
#
|
14
|
+
# id :integer not null, primary key
|
15
|
+
# name :string(255) not null
|
16
|
+
# display_name :text
|
17
|
+
# note :text
|
18
|
+
# position :integer
|
19
|
+
# created_at :datetime
|
20
|
+
# updated_at :datetime
|
21
|
+
#
|
22
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe LibraryGroup do
|
5
|
+
fixtures :library_groups
|
6
|
+
|
7
|
+
it "should get library_group_config" do
|
8
|
+
LibraryGroup.site_config.should be_true
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: library_groups
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# name :string(255) not null
|
19
|
+
# display_name :text
|
20
|
+
# short_name :string(255) not null
|
21
|
+
# email :string(255)
|
22
|
+
# my_networks :text
|
23
|
+
# login_banner :text
|
24
|
+
# note :text
|
25
|
+
# country_id :integer
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
|
+
# admin_networks :text
|
29
|
+
# allow_bookmark_external_url :boolean default(FALSE), not null
|
30
|
+
# position :integer
|
31
|
+
# url :string(255) default("http://localhost:3000/")
|
32
|
+
#
|
33
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Library do
|
5
|
+
fixtures :all
|
6
|
+
|
7
|
+
before(:each) do
|
8
|
+
@library = FactoryGirl.create(:library)
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should should create default shelf" do
|
12
|
+
@library.shelves.first.should be_true
|
13
|
+
@library.shelves.first.name.should eq "#{@library.name}_default"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# == Schema Information
|
18
|
+
#
|
19
|
+
# Table name: libraries
|
20
|
+
#
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255) not null
|
23
|
+
# display_name :text
|
24
|
+
# short_display_name :string(255) not null
|
25
|
+
# zip_code :string(255)
|
26
|
+
# street :text
|
27
|
+
# locality :text
|
28
|
+
# region :text
|
29
|
+
# telephone_number_1 :string(255)
|
30
|
+
# telephone_number_2 :string(255)
|
31
|
+
# fax_number :string(255)
|
32
|
+
# note :text
|
33
|
+
# call_number_rows :integer default(1), not null
|
34
|
+
# call_number_delimiter :string(255) default("|"), not null
|
35
|
+
# library_group_id :integer default(1), not null
|
36
|
+
# users_count :integer default(0), not null
|
37
|
+
# position :integer
|
38
|
+
# country_id :integer
|
39
|
+
# created_at :datetime not null
|
40
|
+
# updated_at :datetime not null
|
41
|
+
# deleted_at :datetime
|
42
|
+
# opening_hour :text
|
43
|
+
# latitude :float
|
44
|
+
# longitude :float
|
45
|
+
# isil :string(255)
|
46
|
+
#
|
47
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe RequestStatusType do
|
5
|
+
#pending "add some examples to (or delete) #{__FILE__}"
|
6
|
+
|
7
|
+
end
|
8
|
+
|
9
|
+
# == Schema Information
|
10
|
+
#
|
11
|
+
# Table name: request_status_types
|
12
|
+
#
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# name :string(255) not null
|
15
|
+
# display_name :text
|
16
|
+
# note :text
|
17
|
+
# position :integer
|
18
|
+
# created_at :datetime
|
19
|
+
# updated_at :datetime
|
20
|
+
#
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe RequestType do
|
5
|
+
#pending "add some examples to (or delete) #{__FILE__}"
|
6
|
+
|
7
|
+
end
|
8
|
+
|
9
|
+
# == Schema Information
|
10
|
+
#
|
11
|
+
# Table name: request_types
|
12
|
+
#
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# name :string(255) not null
|
15
|
+
# display_name :text
|
16
|
+
# note :text
|
17
|
+
# position :integer
|
18
|
+
# created_at :datetime
|
19
|
+
# updated_at :datetime
|
20
|
+
#
|
21
|
+
|