enju_library 0.1.0.pre25 → 0.1.0.pre26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/baskets_controller.rb +109 -0
- data/app/views/baskets/edit.html.erb +30 -0
- data/app/views/baskets/index.html.erb +31 -0
- data/app/views/baskets/new.html.erb +29 -0
- data/app/views/baskets/show.html.erb +23 -0
- data/lib/enju_library/version.rb +1 -1
- data/spec/controllers/baskets_controller_spec.rb +379 -0
- data/spec/dummy/config/initializers/inflections.rb +3 -7
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
- data/spec/dummy/db/migrate/113_create_events.rb +23 -0
- data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
- data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
- data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
- data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
- data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +5 -0
- data/spec/dummy/db/schema.rb +393 -83
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/conf/schema.xml +15 -2
- data/spec/dummy/solr/data/test/index/_2w.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_18r → segments_6n} +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/169f4ead801f350c94685db6343b613a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/254f2ef29215d4091bfe5949fe8f725f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5c6c9015e14271822fcfdcce5fca127d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/82147708959cf940a0db9210985926fd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b216037296f015f88a15e209c81fe1d3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bbe2834cdae4786a530e40e14f846805 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c60042eb39c8ef7a95f8926ca5648a9d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d005c609dd44fbca49a45a652887a53d +0 -0
- data/spec/fixtures/agent_types.yml +35 -0
- data/spec/fixtures/agents.yml +338 -0
- data/spec/fixtures/carrier_type_has_checkout_types.yml +31 -0
- data/spec/fixtures/checked_items.yml +35 -0
- data/spec/fixtures/checkins.yml +55 -0
- data/spec/fixtures/checkout_stat_has_manifestations.yml +24 -0
- data/spec/fixtures/checkout_stat_has_users.yml +24 -0
- data/spec/fixtures/circulation_statuses.yml +14 -0
- data/spec/fixtures/event_categories.yml +55 -0
- data/spec/fixtures/events.yml +142 -0
- data/spec/fixtures/exemplifies.yml +19 -11
- data/spec/fixtures/item_has_use_restrictions.yml +61 -0
- data/spec/fixtures/items.yml +80 -9
- data/spec/fixtures/lending_policies.yml +99 -0
- data/spec/fixtures/libraries.yml +27 -25
- data/spec/fixtures/library_groups.yml +20 -20
- data/spec/fixtures/manifestation_checkout_stats.yml +31 -0
- data/spec/fixtures/manifestation_reserve_stats.yml +31 -0
- data/spec/fixtures/manifestations.yml +2 -137
- data/spec/fixtures/message_requests.yml +30 -0
- data/spec/fixtures/message_templates.yml +84 -0
- data/spec/fixtures/request_status_types.yml +4 -4
- data/spec/fixtures/request_types.yml +4 -4
- data/spec/fixtures/reserve_stat_has_manifestations.yml +24 -0
- data/spec/fixtures/reserve_stat_has_users.yml +24 -0
- data/spec/fixtures/reserves.yml +179 -0
- data/spec/fixtures/shelves.yml +6 -7
- data/spec/fixtures/use_restrictions.yml +93 -0
- data/spec/fixtures/user_checkout_stats.yml +31 -0
- data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
- data/spec/fixtures/user_reserve_stats.yml +31 -0
- data/spec/fixtures/users.yml +14 -37
- data/spec/routing/baskets_routing_spec.rb +35 -0
- metadata +173 -26
- data/spec/dummy/solr/data/test/index/_j7.tis +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.fdt → _2w.fdt} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.fdx → _2w.fdx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.fnm → _2w.fnm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.frq → _2w.frq} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.nrm → _2w.nrm} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.prx → _2w.prx} +0 -0
- /data/spec/dummy/solr/data/test/index/{_j7.tii → _2w.tii} +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
sender_id: 1
|
5
|
+
receiver_id: 1
|
6
|
+
message_template_id: 1
|
7
|
+
state: pending
|
8
|
+
|
9
|
+
two:
|
10
|
+
sender_id: 1
|
11
|
+
receiver_id: 1
|
12
|
+
message_template_id: 1
|
13
|
+
state: pending
|
14
|
+
|
15
|
+
# == Schema Information
|
16
|
+
#
|
17
|
+
# Table name: message_requests
|
18
|
+
#
|
19
|
+
# id :integer not null, primary key
|
20
|
+
# sender_id :integer
|
21
|
+
# receiver_id :integer
|
22
|
+
# message_template_id :integer
|
23
|
+
# sent_at :datetime
|
24
|
+
# deleted_at :datetime
|
25
|
+
# body :text
|
26
|
+
# state :string(255)
|
27
|
+
# created_at :datetime
|
28
|
+
# updated_at :datetime
|
29
|
+
#
|
30
|
+
|
@@ -0,0 +1,84 @@
|
|
1
|
+
message_template_00001:
|
2
|
+
id: 1
|
3
|
+
status: reservation_accepted_for_patron
|
4
|
+
title: Reservation accepted
|
5
|
+
body: Reservation accepted
|
6
|
+
position: 1
|
7
|
+
locale: ja
|
8
|
+
message_template_00002:
|
9
|
+
id: 2
|
10
|
+
status: item_received_for_patron
|
11
|
+
title: Item received
|
12
|
+
body: Item received
|
13
|
+
position: 2
|
14
|
+
locale: ja
|
15
|
+
message_template_00003:
|
16
|
+
id: 3
|
17
|
+
status: reservation_expired_for_patron
|
18
|
+
title: Reservation expired
|
19
|
+
body: Reservation expired
|
20
|
+
position: 3
|
21
|
+
locale: ja
|
22
|
+
message_template_00004:
|
23
|
+
id: 4
|
24
|
+
status: reservation_expired_for_library
|
25
|
+
title: Reservation expired
|
26
|
+
body: Reservation expired
|
27
|
+
position: 4
|
28
|
+
locale: ja
|
29
|
+
message_template_00005:
|
30
|
+
id: 5
|
31
|
+
status: reservation_canceled_for_patron
|
32
|
+
title: Reservation canceled
|
33
|
+
body: Reservation canceled
|
34
|
+
position: 5
|
35
|
+
locale: ja
|
36
|
+
message_template_00006:
|
37
|
+
id: 6
|
38
|
+
status: reservation_canceled_for_library
|
39
|
+
title: Reservation canceled
|
40
|
+
body: Reservation canceled
|
41
|
+
position: 6
|
42
|
+
locale: ja
|
43
|
+
message_template_00007:
|
44
|
+
id: 7
|
45
|
+
status: recall_item
|
46
|
+
title: Recall item
|
47
|
+
body: Recall item
|
48
|
+
position: 7
|
49
|
+
locale: ja
|
50
|
+
message_template_00008:
|
51
|
+
id: 8
|
52
|
+
status: recall_overdue_item
|
53
|
+
title: Recall overdue item
|
54
|
+
body: Recall overdue item
|
55
|
+
position: 8
|
56
|
+
locale: ja
|
57
|
+
message_template_00009:
|
58
|
+
id: 9
|
59
|
+
status: reservation_accepted_for_library
|
60
|
+
title: Reservation accepted
|
61
|
+
body: Reservation accepted
|
62
|
+
position: 9
|
63
|
+
locale: ja
|
64
|
+
message_template_00010:
|
65
|
+
id: 10
|
66
|
+
status: item_received_for_library
|
67
|
+
title: Item received
|
68
|
+
body: Item received
|
69
|
+
position: 10
|
70
|
+
locale: ja
|
71
|
+
message_template_00011:
|
72
|
+
id: 11
|
73
|
+
status: reservation_postponed_for_patron
|
74
|
+
title: Reservation postponed
|
75
|
+
body: Reservation postponed
|
76
|
+
position: 11
|
77
|
+
locale: ja
|
78
|
+
message_template_00012:
|
79
|
+
id: 12
|
80
|
+
status: reservation_postponed_for_library
|
81
|
+
title: Reservation postponed
|
82
|
+
body: Reservation postponed
|
83
|
+
position: 12
|
84
|
+
locale: ja
|
@@ -52,12 +52,12 @@ request_status_type_00006:
|
|
52
52
|
#
|
53
53
|
# Table name: request_status_types
|
54
54
|
#
|
55
|
-
# id :integer
|
56
|
-
# name :string(255)
|
55
|
+
# id :integer not null, primary key
|
56
|
+
# name :string(255) not null
|
57
57
|
# display_name :text
|
58
58
|
# note :text
|
59
59
|
# position :integer
|
60
|
-
# created_at :datetime
|
61
|
-
# updated_at :datetime
|
60
|
+
# created_at :datetime
|
61
|
+
# updated_at :datetime
|
62
62
|
#
|
63
63
|
|
@@ -44,12 +44,12 @@ request_type_00004:
|
|
44
44
|
#
|
45
45
|
# Table name: request_types
|
46
46
|
#
|
47
|
-
# id :integer
|
48
|
-
# name :string(255)
|
47
|
+
# id :integer not null, primary key
|
48
|
+
# name :string(255) not null
|
49
49
|
# display_name :text
|
50
50
|
# note :text
|
51
51
|
# position :integer
|
52
|
-
# created_at :datetime
|
53
|
-
# updated_at :datetime
|
52
|
+
# created_at :datetime
|
53
|
+
# updated_at :datetime
|
54
54
|
#
|
55
55
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
manifestation_reserve_stat_id: 1
|
5
|
+
manifestation_id: 1
|
6
|
+
reserves_count: 1
|
7
|
+
|
8
|
+
two:
|
9
|
+
manifestation_reserve_stat_id: 2
|
10
|
+
manifestation_id: 1
|
11
|
+
reserves_count: 1
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: reserve_stat_has_manifestations
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# manifestation_reserve_stat_id :integer not null
|
19
|
+
# manifestation_id :integer not null
|
20
|
+
# reserves_count :integer
|
21
|
+
# created_at :datetime not null
|
22
|
+
# updated_at :datetime not null
|
23
|
+
#
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
user_reserve_stat_id: 1
|
5
|
+
user_id: 1
|
6
|
+
reserves_count: 1
|
7
|
+
|
8
|
+
two:
|
9
|
+
user_reserve_stat_id: 1
|
10
|
+
user_id: 2
|
11
|
+
reserves_count: 1
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: reserve_stat_has_users
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# user_reserve_stat_id :integer not null
|
19
|
+
# user_id :integer not null
|
20
|
+
# reserves_count :integer
|
21
|
+
# created_at :datetime not null
|
22
|
+
# updated_at :datetime not null
|
23
|
+
#
|
24
|
+
|
@@ -0,0 +1,179 @@
|
|
1
|
+
---
|
2
|
+
reserve_00001:
|
3
|
+
updated_at: 2007-09-02 17:51:54.887849 +09:00
|
4
|
+
manifestation_id: 4
|
5
|
+
user_id: 1
|
6
|
+
request_status_type_id: 4
|
7
|
+
id: 1
|
8
|
+
created_at: 2007-09-01 14:14:52.356803 +09:00
|
9
|
+
expired_at: <%= 1.week.from_now %>
|
10
|
+
state: requested
|
11
|
+
lock_version: 0
|
12
|
+
reserve_00002:
|
13
|
+
updated_at: 2007-09-01 14:20:05.530854 +09:00
|
14
|
+
manifestation_id: 5
|
15
|
+
user_id: 2
|
16
|
+
request_status_type_id: 4
|
17
|
+
id: 2
|
18
|
+
created_at: 2007-09-01 14:20:05.530854 +09:00
|
19
|
+
expired_at: <%= 1.week.from_now %>
|
20
|
+
state: requested
|
21
|
+
lock_version: 0
|
22
|
+
reserve_00003:
|
23
|
+
updated_at: 2007-09-02 17:46:52.791614 +09:00
|
24
|
+
manifestation_id: 6
|
25
|
+
user_id: 3
|
26
|
+
request_status_type_id: 4
|
27
|
+
id: 3
|
28
|
+
created_at: 2007-09-02 17:46:52.791614 +09:00
|
29
|
+
expired_at: <%= 1.week.from_now %>
|
30
|
+
state: requested
|
31
|
+
lock_version: 0
|
32
|
+
reserve_00004:
|
33
|
+
updated_at: 2007-09-02 18:37:25.576087 +09:00
|
34
|
+
manifestation_id: 7
|
35
|
+
user_id: 1
|
36
|
+
request_status_type_id: 4
|
37
|
+
id: 4
|
38
|
+
created_at: 2007-09-02 18:37:25.576087 +09:00
|
39
|
+
expired_at: <%= 1.week.from_now %>
|
40
|
+
state: requested
|
41
|
+
lock_version: 0
|
42
|
+
reserve_00005:
|
43
|
+
updated_at: 2007-09-02 19:16:55.714812 +09:00
|
44
|
+
manifestation_id: 8
|
45
|
+
user_id: 2
|
46
|
+
request_status_type_id: 4
|
47
|
+
id: 5
|
48
|
+
created_at: 2007-09-02 19:16:55.714812 +09:00
|
49
|
+
expired_at: <%= 1.week.from_now %>
|
50
|
+
state: requested
|
51
|
+
lock_version: 0
|
52
|
+
reserve_00006:
|
53
|
+
updated_at: 2007-09-02 19:20:06.530854 +09:00
|
54
|
+
manifestation_id: 4
|
55
|
+
user_id: 2
|
56
|
+
request_status_type_id: 4
|
57
|
+
id: 6
|
58
|
+
created_at: 2007-09-02 19:20:06.530854 +09:00
|
59
|
+
expired_at: <%= 1.week.from_now %>
|
60
|
+
state: requested
|
61
|
+
lock_version: 0
|
62
|
+
reserve_00007:
|
63
|
+
updated_at: 2007-09-02 19:20:07.530854 +09:00
|
64
|
+
manifestation_id: 2
|
65
|
+
user_id: 4
|
66
|
+
request_status_type_id: 4
|
67
|
+
id: 7
|
68
|
+
created_at: 2007-09-02 19:20:07.530854 +09:00
|
69
|
+
expired_at: <%= 1.week.from_now %>
|
70
|
+
state: requested
|
71
|
+
lock_version: 0
|
72
|
+
reserve_00008:
|
73
|
+
updated_at: 2007-09-02 19:46:53.791614 +09:00
|
74
|
+
manifestation_id: 6
|
75
|
+
user_id: 3
|
76
|
+
request_status_type_id: 3
|
77
|
+
id: 8
|
78
|
+
created_at: 2007-09-02 19:46:53.791614 +09:00
|
79
|
+
expired_at: <%= 1.week.ago %>
|
80
|
+
state: expired
|
81
|
+
lock_version: 0
|
82
|
+
reserve_00009:
|
83
|
+
updated_at: 2007-09-02 19:46:54.791614 +09:00
|
84
|
+
manifestation_id: 7
|
85
|
+
user_id: 5
|
86
|
+
request_status_type_id: 3
|
87
|
+
id: 9
|
88
|
+
created_at: 2007-09-02 19:46:54.791614 +09:00
|
89
|
+
expired_at: <%= 1.day.ago %>
|
90
|
+
state: requested
|
91
|
+
lock_version: 0
|
92
|
+
reserve_00010:
|
93
|
+
updated_at: 2007-09-02 19:46:55.791614 +09:00
|
94
|
+
manifestation_id: 8
|
95
|
+
user_id: 5
|
96
|
+
request_status_type_id: 3
|
97
|
+
id: 10
|
98
|
+
created_at: 2007-09-02 19:46:55.791614 +09:00
|
99
|
+
expired_at: <%= 1.hour.ago %>
|
100
|
+
checked_out_at: <%= 1.week.ago %>
|
101
|
+
state: completed
|
102
|
+
item_id: 25
|
103
|
+
lock_version: 0
|
104
|
+
reserve_00011:
|
105
|
+
updated_at: 2007-09-03 14:20:05.530854 +09:00
|
106
|
+
manifestation_id: 7
|
107
|
+
user_id: 2
|
108
|
+
request_status_type_id: 3
|
109
|
+
id: 11
|
110
|
+
created_at: 2007-09-03 14:20:05.530854 +09:00
|
111
|
+
expired_at: <%= 1.day.ago %>
|
112
|
+
state: expired
|
113
|
+
lock_version: 0
|
114
|
+
reserve_00012:
|
115
|
+
updated_at: 2007-09-03 14:20:06.530854 +09:00
|
116
|
+
manifestation_id: 8
|
117
|
+
user_id: 2
|
118
|
+
request_status_type_id: 4
|
119
|
+
id: 12
|
120
|
+
created_at: 2007-09-03 14:20:06.530854 +09:00
|
121
|
+
expired_at: <%= 1.day.ago %>
|
122
|
+
state: retained
|
123
|
+
lock_version: 0
|
124
|
+
reserve_00013:
|
125
|
+
updated_at: 2007-09-03 14:20:07.530854 +09:00
|
126
|
+
manifestation_id: 11
|
127
|
+
user_id: 4
|
128
|
+
request_status_type_id: 3
|
129
|
+
id: 13
|
130
|
+
created_at: 2007-09-03 14:20:07.530854 +09:00
|
131
|
+
expired_at: <%= 1.day.ago %>
|
132
|
+
state: requested
|
133
|
+
lock_version: 0
|
134
|
+
reserve_00014:
|
135
|
+
updated_at: 2007-09-03 14:20:08.530854 +09:00
|
136
|
+
manifestation_id: 11
|
137
|
+
user_id: 4
|
138
|
+
request_status_type_id: 3
|
139
|
+
id: 14
|
140
|
+
created_at: 2007-09-03 14:20:08.530854 +09:00
|
141
|
+
retained_at: <%= 1.hour.from_now %>
|
142
|
+
expired_at: <%= 1.day.from_now %>
|
143
|
+
state: retained
|
144
|
+
item_id: 21
|
145
|
+
lock_version: 0
|
146
|
+
reserve_00015:
|
147
|
+
updated_at: 2007-09-03 14:20:09.530854 +09:00
|
148
|
+
manifestation_id: 11
|
149
|
+
user_id: 4
|
150
|
+
request_status_type_id: 3
|
151
|
+
id: 15
|
152
|
+
created_at: 2007-09-03 14:20:09.530854 +09:00
|
153
|
+
expired_at: <%= 1.day.from_now %>
|
154
|
+
state: requested
|
155
|
+
lock_version: 0
|
156
|
+
|
157
|
+
# == Schema Information
|
158
|
+
#
|
159
|
+
# Table name: reserves
|
160
|
+
#
|
161
|
+
# id :integer not null, primary key
|
162
|
+
# user_id :integer not null
|
163
|
+
# manifestation_id :integer not null
|
164
|
+
# item_id :integer
|
165
|
+
# request_status_type_id :integer not null
|
166
|
+
# checked_out_at :datetime
|
167
|
+
# created_at :datetime not null
|
168
|
+
# updated_at :datetime not null
|
169
|
+
# canceled_at :datetime
|
170
|
+
# expired_at :datetime
|
171
|
+
# deleted_at :datetime
|
172
|
+
# state :string(255)
|
173
|
+
# expiration_notice_to_agent :boolean default(FALSE)
|
174
|
+
# expiration_notice_to_library :boolean default(FALSE)
|
175
|
+
# retained_at :datetime
|
176
|
+
# postponed_at :datetime
|
177
|
+
# lock_version :integer default(0), not null
|
178
|
+
#
|
179
|
+
|
data/spec/fixtures/shelves.yml
CHANGED
@@ -32,16 +32,15 @@ shelf_00004:
|
|
32
32
|
#
|
33
33
|
# Table name: shelves
|
34
34
|
#
|
35
|
-
# id :integer
|
36
|
-
# name :string(255)
|
35
|
+
# id :integer not null, primary key
|
36
|
+
# name :string(255) not null
|
37
37
|
# display_name :text
|
38
38
|
# note :text
|
39
|
-
# library_id :integer
|
40
|
-
# items_count :integer
|
39
|
+
# library_id :integer default(1), not null
|
40
|
+
# items_count :integer default(0), not null
|
41
41
|
# position :integer
|
42
|
-
# created_at :datetime
|
43
|
-
# updated_at :datetime
|
42
|
+
# created_at :datetime
|
43
|
+
# updated_at :datetime
|
44
44
|
# deleted_at :datetime
|
45
|
-
# closed :boolean default(FALSE), not null
|
46
45
|
#
|
47
46
|
|
@@ -0,0 +1,93 @@
|
|
1
|
+
---
|
2
|
+
use_restriction_00001:
|
3
|
+
name: Available For Supply Without Return
|
4
|
+
display_name: Available For Supply Without Return
|
5
|
+
id: 1
|
6
|
+
position: 1
|
7
|
+
note: ""
|
8
|
+
use_restriction_00002:
|
9
|
+
name: In Library Use Only
|
10
|
+
display_name: In Library Use Only
|
11
|
+
id: 2
|
12
|
+
position: 2
|
13
|
+
note: ""
|
14
|
+
use_restriction_00003:
|
15
|
+
name: Limited Circulation, Long Loan Period
|
16
|
+
display_name: Limited Circulation, Long Loan Period
|
17
|
+
id: 3
|
18
|
+
position: 3
|
19
|
+
note: ""
|
20
|
+
use_restriction_00004:
|
21
|
+
name: Limited Circulation, Normal Loan Period
|
22
|
+
display_name: Limited Circulation, Normal Loan Period
|
23
|
+
id: 4
|
24
|
+
position: 4
|
25
|
+
note: ""
|
26
|
+
use_restriction_00005:
|
27
|
+
name: Limited Circulation, Short Loan Period
|
28
|
+
display_name: Limited Circulation, Short Loan Period
|
29
|
+
id: 5
|
30
|
+
position: 5
|
31
|
+
note: ""
|
32
|
+
use_restriction_00006:
|
33
|
+
name: No Reproduction
|
34
|
+
display_name: No Reproduction
|
35
|
+
id: 6
|
36
|
+
position: 6
|
37
|
+
note: ""
|
38
|
+
use_restriction_00007:
|
39
|
+
name: Not For Loan
|
40
|
+
display_name: Not For Loan
|
41
|
+
id: 7
|
42
|
+
position: 7
|
43
|
+
note: ""
|
44
|
+
use_restriction_00008:
|
45
|
+
name: Overnight Only
|
46
|
+
display_name: Overnight Only
|
47
|
+
id: 8
|
48
|
+
position: 8
|
49
|
+
note: ""
|
50
|
+
use_restriction_00009:
|
51
|
+
name: Renewals Not Permitted
|
52
|
+
display_name: Renewals Not Permitted
|
53
|
+
id: 9
|
54
|
+
position: 9
|
55
|
+
note: ""
|
56
|
+
use_restriction_00010:
|
57
|
+
name: Supervision Required
|
58
|
+
display_name: Supervision Required
|
59
|
+
id: 10
|
60
|
+
position: 10
|
61
|
+
note: ""
|
62
|
+
use_restriction_00011:
|
63
|
+
name: Term Loan
|
64
|
+
display_name: Term Loan
|
65
|
+
id: 11
|
66
|
+
position: 11
|
67
|
+
note: ""
|
68
|
+
use_restriction_00012:
|
69
|
+
name: Use Only In Controlled Access
|
70
|
+
display_name: Use Only In Controlled Access
|
71
|
+
id: 12
|
72
|
+
position: 12
|
73
|
+
note: ""
|
74
|
+
use_restriction_00013:
|
75
|
+
name: User Signature Required
|
76
|
+
display_name: User Signature Required
|
77
|
+
id: 13
|
78
|
+
position: 13
|
79
|
+
note: ""
|
80
|
+
|
81
|
+
# == Schema Information
|
82
|
+
#
|
83
|
+
# Table name: use_restrictions
|
84
|
+
#
|
85
|
+
# id :integer not null, primary key
|
86
|
+
# name :string(255) not null
|
87
|
+
# display_name :text
|
88
|
+
# note :text
|
89
|
+
# position :integer
|
90
|
+
# created_at :datetime not null
|
91
|
+
# updated_at :datetime not null
|
92
|
+
#
|
93
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
id: 1
|
5
|
+
start_date: 2008-12-15 18:43:02
|
6
|
+
end_date: 2008-12-16 18:43:02
|
7
|
+
note: MyText
|
8
|
+
state: pending
|
9
|
+
|
10
|
+
two:
|
11
|
+
id: 2
|
12
|
+
start_date: 2008-12-15 18:43:02
|
13
|
+
end_date: 2008-12-16 18:43:02
|
14
|
+
note: MyText
|
15
|
+
state: pending
|
16
|
+
|
17
|
+
# == Schema Information
|
18
|
+
#
|
19
|
+
# Table name: user_checkout_stats
|
20
|
+
#
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# start_date :datetime
|
23
|
+
# end_date :datetime
|
24
|
+
# note :text
|
25
|
+
# state :string(255)
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
|
+
# started_at :datetime
|
29
|
+
# completed_at :datetime
|
30
|
+
#
|
31
|
+
|
@@ -0,0 +1,111 @@
|
|
1
|
+
---
|
2
|
+
user_group_has_checkout_type_00001:
|
3
|
+
checkout_type_id: 1
|
4
|
+
updated_at: 2007-12-23 03:13:08.107022 +09:00
|
5
|
+
checkout_limit: 3
|
6
|
+
reservation_limit: 2
|
7
|
+
user_group_id: 1
|
8
|
+
checkout_period: 0
|
9
|
+
checkout_renewal_limit: 1
|
10
|
+
id: 1
|
11
|
+
created_at: 2007-12-23 03:13:08.107022 +09:00
|
12
|
+
set_due_date_before_closing_day: false
|
13
|
+
user_group_has_checkout_type_00002:
|
14
|
+
checkout_type_id: 2
|
15
|
+
updated_at: 2007-12-23 03:13:15.620143 +09:00
|
16
|
+
checkout_limit: 3
|
17
|
+
reservation_limit: 2
|
18
|
+
user_group_id: 1
|
19
|
+
checkout_period: 10
|
20
|
+
checkout_renewal_limit: 1
|
21
|
+
id: 2
|
22
|
+
created_at: 2007-12-23 03:13:15.620143 +09:00
|
23
|
+
set_due_date_before_closing_day: false
|
24
|
+
user_group_has_checkout_type_00003:
|
25
|
+
checkout_type_id: 1
|
26
|
+
updated_at: 2007-12-23 03:13:23.416856 +09:00
|
27
|
+
checkout_limit: 3
|
28
|
+
reservation_limit: 2
|
29
|
+
user_group_id: 2
|
30
|
+
checkout_period: 21
|
31
|
+
checkout_renewal_limit: 1
|
32
|
+
id: 3
|
33
|
+
created_at: 2007-12-23 03:13:23.416856 +09:00
|
34
|
+
set_due_date_before_closing_day: false
|
35
|
+
user_group_has_checkout_type_00004:
|
36
|
+
checkout_type_id: 2
|
37
|
+
updated_at: 2007-12-23 03:13:29.880538 +09:00
|
38
|
+
checkout_limit: 3
|
39
|
+
reservation_limit: 2
|
40
|
+
user_group_id: 2
|
41
|
+
checkout_period: 21
|
42
|
+
checkout_renewal_limit: 1
|
43
|
+
id: 4
|
44
|
+
created_at: 2007-12-23 03:13:29.880538 +09:00
|
45
|
+
set_due_date_before_closing_day: false
|
46
|
+
user_group_has_checkout_type_00005:
|
47
|
+
checkout_type_id: 1
|
48
|
+
updated_at: 2007-12-23 03:13:37.440462 +09:00
|
49
|
+
checkout_limit: 3
|
50
|
+
reservation_limit: 3
|
51
|
+
user_group_id: 3
|
52
|
+
checkout_period: 14
|
53
|
+
checkout_renewal_limit: 1
|
54
|
+
id: 5
|
55
|
+
created_at: 2007-12-23 03:13:37.440462 +09:00
|
56
|
+
set_due_date_before_closing_day: false
|
57
|
+
user_group_has_checkout_type_00006:
|
58
|
+
checkout_type_id: 2
|
59
|
+
updated_at: 2007-12-23 03:13:46.312751 +09:00
|
60
|
+
checkout_limit: 3
|
61
|
+
reservation_limit: 3
|
62
|
+
user_group_id: 3
|
63
|
+
checkout_period: 7
|
64
|
+
checkout_renewal_limit: 1
|
65
|
+
id: 6
|
66
|
+
created_at: 2007-12-23 03:13:46.312751 +09:00
|
67
|
+
set_due_date_before_closing_day: false
|
68
|
+
user_group_has_checkout_type_00007:
|
69
|
+
checkout_type_id: 3
|
70
|
+
updated_at: 2007-12-23 03:13:46.312751 +09:00
|
71
|
+
checkout_limit: 3
|
72
|
+
reservation_limit: 3
|
73
|
+
user_group_id: 2
|
74
|
+
checkout_period: 3
|
75
|
+
checkout_renewal_limit: 1
|
76
|
+
id: 7
|
77
|
+
created_at: 2007-12-23 03:13:46.312751 +09:00
|
78
|
+
set_due_date_before_closing_day: true
|
79
|
+
user_group_has_checkout_type_00008:
|
80
|
+
checkout_type_id: 3
|
81
|
+
updated_at: 2007-12-23 03:13:46.312751 +09:00
|
82
|
+
checkout_limit: 3
|
83
|
+
reservation_limit: 3
|
84
|
+
user_group_id: 1
|
85
|
+
checkout_period: 3
|
86
|
+
checkout_renewal_limit: 1
|
87
|
+
id: 8
|
88
|
+
created_at: 2007-12-23 03:13:46.312751 +09:00
|
89
|
+
set_due_date_before_closing_day: true
|
90
|
+
|
91
|
+
# == Schema Information
|
92
|
+
#
|
93
|
+
# Table name: user_group_has_checkout_types
|
94
|
+
#
|
95
|
+
# id :integer not null, primary key
|
96
|
+
# user_group_id :integer not null
|
97
|
+
# checkout_type_id :integer not null
|
98
|
+
# checkout_limit :integer default(0), not null
|
99
|
+
# checkout_period :integer default(0), not null
|
100
|
+
# checkout_renewal_limit :integer default(0), not null
|
101
|
+
# reservation_limit :integer default(0), not null
|
102
|
+
# reservation_expired_period :integer default(7), not null
|
103
|
+
# set_due_date_before_closing_day :boolean default(FALSE), not null
|
104
|
+
# fixed_due_date :datetime
|
105
|
+
# note :text
|
106
|
+
# position :integer
|
107
|
+
# created_at :datetime not null
|
108
|
+
# updated_at :datetime not null
|
109
|
+
# current_checkout_count :integer
|
110
|
+
#
|
111
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
id: 1
|
5
|
+
start_date: 2008-12-20 11:36:28
|
6
|
+
end_date: 2008-12-21 11:36:28
|
7
|
+
note: MyText
|
8
|
+
state: pending
|
9
|
+
|
10
|
+
two:
|
11
|
+
id: 2
|
12
|
+
start_date: 2008-12-20 11:36:28
|
13
|
+
end_date: 2008-12-21 11:36:28
|
14
|
+
note: MyText
|
15
|
+
state: pending
|
16
|
+
|
17
|
+
# == Schema Information
|
18
|
+
#
|
19
|
+
# Table name: user_reserve_stats
|
20
|
+
#
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# start_date :datetime
|
23
|
+
# end_date :datetime
|
24
|
+
# note :text
|
25
|
+
# state :string(255)
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
|
+
# started_at :datetime
|
29
|
+
# completed_at :datetime
|
30
|
+
#
|
31
|
+
|