enju_library 0.4.0.beta.1 → 0.4.0.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/baskets_controller.rb +37 -12
  3. data/app/views/withdraws/index.html.erb +3 -1
  4. data/app/views/withdraws/new.html.erb +3 -1
  5. data/lib/enju_library/version.rb +1 -1
  6. data/lib/generators/enju_library/setup/templates/db/fixtures/budget_types.yml +1 -1
  7. data/spec/controllers/accepts_controller_spec.rb +0 -8
  8. data/spec/controllers/baskets_controller_spec.rb +6 -7
  9. data/spec/dummy/app/models/user.rb +0 -7
  10. data/spec/dummy/config/application.rb +1 -2
  11. data/spec/dummy/db/schema.rb +1 -1
  12. data/spec/fixtures/budget_types.yml +2 -2
  13. data/spec/models/accept_spec.rb +0 -2
  14. data/spec/models/user_import_file_spec.rb +2 -19
  15. data/spec/models/withdraw_spec.rb +0 -8
  16. metadata +5 -59
  17. data/spec/factories/checkout.rb +0 -11
  18. data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -31
  19. data/spec/fixtures/checked_items.yml +0 -35
  20. data/spec/fixtures/checkins.yml +0 -48
  21. data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -24
  22. data/spec/fixtures/checkout_stat_has_users.yml +0 -24
  23. data/spec/fixtures/checkout_types.yml +0 -34
  24. data/spec/fixtures/checkouts.yml +0 -162
  25. data/spec/fixtures/classification_types.yml +0 -63
  26. data/spec/fixtures/manifestation_checkout_stats.yml +0 -29
  27. data/spec/fixtures/manifestation_reserve_stats.yml +0 -29
  28. data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -24
  29. data/spec/fixtures/reserve_stat_has_users.yml +0 -24
  30. data/spec/fixtures/reserve_transitions.yml +0 -104
  31. data/spec/fixtures/reserves.yml +0 -143
  32. data/spec/fixtures/subject_heading_types.yml +0 -39
  33. data/spec/fixtures/subject_types.yml +0 -28
  34. data/spec/fixtures/user_checkout_stats.yml +0 -28
  35. data/spec/fixtures/user_group_has_checkout_types.yml +0 -111
  36. data/spec/fixtures/user_reserve_stats.yml +0 -28
@@ -1,11 +0,0 @@
1
- FactoryBot.define do
2
- factory :checkout, class: Checkout do |f|
3
- f.due_date { Time.zone.now.next_week }
4
- f.association :item, factory: :item
5
- f.association :user, factory: :user
6
- f.association :librarian, factory: :librarian
7
- f.association :basket, factory: :basket
8
- f.association :library
9
- f.association :shelf
10
- end
11
- end
@@ -1,31 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- carrier_type_has_checkout_type_00001:
4
- id: 1
5
- carrier_type_id: 1
6
- checkout_type_id: 1
7
- note: MyText
8
- carrier_type_has_checkout_type_00002:
9
- id: 2
10
- carrier_type_id: 1
11
- checkout_type_id: 2
12
- note: MyText
13
- carrier_type_has_checkout_type_00003:
14
- id: 3
15
- carrier_type_id: 2
16
- checkout_type_id: 1
17
- note: MyText
18
-
19
- # == Schema Information
20
- #
21
- # Table name: carrier_type_has_checkout_types
22
- #
23
- # id :integer not null, primary key
24
- # carrier_type_id :integer not null
25
- # checkout_type_id :integer not null
26
- # note :text
27
- # position :integer
28
- # created_at :datetime
29
- # updated_at :datetime
30
- #
31
-
@@ -1,35 +0,0 @@
1
- ---
2
- checked_item_00001:
3
- id: 1
4
- item_id: 10
5
- basket_id: 1
6
- due_date: <%= 1.week.from_now.to_s(:db) %>
7
- checked_item_00002:
8
- id: 2
9
- item_id: 6
10
- basket_id: 2
11
- due_date: <%= 1.week.from_now.to_s(:db) %>
12
- checked_item_00003:
13
- id: 3
14
- item_id: 6
15
- basket_id: 9
16
- due_date: <%= 1.week.from_now.to_s(:db) %>
17
- checked_item_00004:
18
- id: 4
19
- item_id: 12
20
- basket_id: 8
21
- due_date: <%= 1.week.from_now.to_s(:db) %>
22
-
23
- # == Schema Information
24
- #
25
- # Table name: checked_items
26
- #
27
- # id :integer not null, primary key
28
- # item_id :integer not null
29
- # basket_id :integer not null
30
- # due_date :datetime not null
31
- # created_at :datetime not null
32
- # updated_at :datetime not null
33
- # librarian_id :integer
34
- #
35
-
@@ -1,48 +0,0 @@
1
- ---
2
- checkin_00001:
3
- item_id: 10
4
- updated_at: 2008-01-22 12:58:54.347742 +09:00
5
- id: 1
6
- librarian_id: 1
7
- created_at: 2008-01-22 12:58:54.347742 +09:00
8
- basket_id: 9
9
- checkin_00002:
10
- item_id: 9
11
- updated_at: 2007-12-14 00:28:41.854022 +09:00
12
- id: 2
13
- librarian_id: 2
14
- created_at: 2007-12-14 00:28:41.854022 +09:00
15
- basket_id: 10
16
- checkin_00003:
17
- item_id: 8
18
- updated_at: 2007-12-20 21:24:18.729192 +09:00
19
- id: 3
20
- librarian_id: 1
21
- created_at: 2007-12-20 21:24:18.729192 +09:00
22
- basket_id: 10
23
- checkin_00004:
24
- item_id: 7
25
- updated_at: 2008-01-23 00:39:27.785676 +09:00
26
- id: 4
27
- librarian_id: 2
28
- created_at: 2008-01-23 00:39:27.785676 +09:00
29
- basket_id: 10
30
- checkin_00005:
31
- item_id: 6
32
- updated_at: 2007-12-20 21:25:04.619479 +09:00
33
- id: 5
34
- librarian_id: 1
35
- created_at: 2007-12-20 21:25:04.619479 +09:00
36
- basket_id: 10
37
- # == Schema Information
38
- #
39
- # Table name: checkins
40
- #
41
- # id :integer not null, primary key
42
- # item_id :integer not null
43
- # librarian_id :integer
44
- # basket_id :integer
45
- # created_at :datetime not null
46
- # updated_at :datetime not null
47
- #
48
-
@@ -1,24 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- manifestation_checkout_stat_id: 1
5
- manifestation_id: 1
6
- checkouts_count: 1
7
-
8
- two:
9
- manifestation_checkout_stat_id: 2
10
- manifestation_id: 1
11
- checkouts_count: 1
12
-
13
- # == Schema Information
14
- #
15
- # Table name: checkout_stat_has_manifestations
16
- #
17
- # id :integer not null, primary key
18
- # manifestation_checkout_stat_id :integer not null
19
- # manifestation_id :integer not null
20
- # checkouts_count :integer
21
- # created_at :datetime
22
- # updated_at :datetime
23
- #
24
-
@@ -1,24 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- user_checkout_stat_id: 1
5
- user_id: 1
6
- checkouts_count: 1
7
-
8
- two:
9
- user_checkout_stat_id: 2
10
- user_id: 1
11
- checkouts_count: 1
12
-
13
- # == Schema Information
14
- #
15
- # Table name: checkout_stat_has_users
16
- #
17
- # id :integer not null, primary key
18
- # user_checkout_stat_id :integer not null
19
- # user_id :integer not null
20
- # checkouts_count :integer default(0), not null
21
- # created_at :datetime
22
- # updated_at :datetime
23
- #
24
-
@@ -1,34 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- checkout_type_00001:
4
- id: 1
5
- name: book
6
- display_name_translations: {"en": "Book", "ja": "図書"}
7
- note:
8
- position: 1
9
- checkout_type_00002:
10
- id: 2
11
- name: serial
12
- display_name_translations: {"en": "Serial", "ja": "定期刊行物"}
13
- note:
14
- position: 2
15
- checkout_type_00003:
16
- id: 3
17
- name: cd
18
- display_name_translations: {"en": "CD", "ja": "CD"}
19
- note:
20
- position: 3
21
-
22
- # == Schema Information
23
- #
24
- # Table name: checkout_types
25
- #
26
- # id :integer not null, primary key
27
- # name :string not null
28
- # display_name :text
29
- # note :text
30
- # position :integer
31
- # created_at :datetime
32
- # updated_at :datetime
33
- # display_name_translations :jsonb not null
34
- #
@@ -1,162 +0,0 @@
1
- ---
2
- checkout_00001:
3
- item_id: 1
4
- updated_at: 2007-09-08 01:20:22.000026 +09:00
5
- lock_version: 0
6
- user_id: 1
7
- id: 1
8
- librarian_id: 1
9
- checkout_renewal_count: 0
10
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
11
- created_at: 2007-09-08 01:19:02.285850 +09:00
12
- basket_id: 1
13
- checkout_00002:
14
- item_id: 2
15
- updated_at: 2007-09-08 01:34:25.103403 +09:00
16
- lock_version: 0
17
- user_id: 1
18
- id: 2
19
- librarian_id: 1
20
- checkout_renewal_count: 0
21
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
22
- created_at: 2007-09-08 01:34:07.363023 +09:00
23
- basket_id: 1
24
- checkout_00003:
25
- item_id: 3
26
- updated_at: 2007-09-09 21:15:11.648996 +09:00
27
- lock_version: 0
28
- user_id: 3
29
- id: 3
30
- librarian_id: 1
31
- checkout_renewal_count: 0
32
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
33
- created_at: 2007-09-08 01:39:03.210081 +09:00
34
- basket_id: 2
35
- checkout_00004:
36
- item_id: 4
37
- updated_at: 2007-09-09 21:15:11.648996 +09:00
38
- lock_version: 0
39
- user_id: 1
40
- id: 4
41
- librarian_id: 1
42
- checkout_renewal_count: 0
43
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
44
- created_at: 2007-09-08 01:39:03.210081 +09:00
45
- basket_id: 3
46
- checkout_00005:
47
- item_id: 5
48
- updated_at: 2007-09-09 21:15:11.648996 +09:00
49
- lock_version: 0
50
- user_id: 2
51
- id: 5
52
- librarian_id: 1
53
- checkout_renewal_count: 0
54
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
55
- created_at: 2007-09-08 01:39:03.210081 +09:00
56
- basket_id: 4
57
- checkout_00006:
58
- item_id: 7
59
- updated_at: 2007-09-09 21:15:11.648996 +09:00
60
- lock_version: 0
61
- user_id: 2
62
- id: 6
63
- librarian_id: 2
64
- checkout_renewal_count: 0
65
- due_date: 2010-09-15 00:00:00 +09:00
66
- created_at: 2007-09-08 01:39:03.210081 +09:00
67
- checkout_00007:
68
- item_id: 7
69
- updated_at: 2007-09-09 21:15:11.648996 +09:00
70
- lock_version: 0
71
- user_id: 1
72
- id: 7
73
- librarian_id: 1
74
- checkout_renewal_count: 0
75
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
76
- created_at: 2007-09-08 01:39:03.210081 +09:00
77
- basket_id: 5
78
- checkout_00008:
79
- item_id: 8
80
- updated_at: 2007-09-09 21:15:11.648996 +09:00
81
- lock_version: 0
82
- user_id: 2
83
- id: 8
84
- librarian_id: 1
85
- checkout_renewal_count: 0
86
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
87
- created_at: 2007-09-08 01:39:03.210081 +09:00
88
- basket_id: 6
89
- checkout_00009:
90
- item_id: 9
91
- updated_at: 2007-09-09 21:15:11.648996 +09:00
92
- lock_version: 0
93
- user_id: 3
94
- id: 9
95
- librarian_id: 1
96
- checkout_renewal_count: 1
97
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
98
- created_at: 2007-09-08 01:39:03.210081 +09:00
99
- basket_id: 7
100
- checkout_00010:
101
- item_id: 13
102
- updated_at: 2007-09-09 21:15:11.648996 +09:00
103
- lock_version: 0
104
- user_id: 3
105
- id: 10
106
- librarian_id: 1
107
- checkout_renewal_count: 1
108
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
109
- created_at: 2007-09-08 01:39:03.210081 +09:00
110
- basket_id: 7
111
- checkout_00011:
112
- item_id: 14
113
- updated_at: 2007-09-09 21:15:11.648996 +09:00
114
- lock_version: 0
115
- user_id: 1
116
- id: 11
117
- librarian_id: 1
118
- checkout_renewal_count: 1
119
- due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
120
- created_at: 2007-09-08 01:39:03.210081 +09:00
121
- basket_id: 7
122
- checkout_00012:
123
- item_id: 6
124
- updated_at: 2007-09-09 21:15:11.648996 +09:00
125
- lock_version: 0
126
- user_id: 3
127
- id: 12
128
- librarian_id: 1
129
- checkout_renewal_count: 1
130
- due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
131
- created_at: 2007-09-08 01:39:03.210081 +09:00
132
- basket_id: 8
133
- checkin_id: 5
134
- checkout_00013:
135
- item_id: 7
136
- updated_at: 2007-09-09 21:15:11.648996 +09:00
137
- lock_version: 0
138
- user_id: 3
139
- id: 13
140
- librarian_id: 1
141
- checkout_renewal_count: 1
142
- due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
143
- created_at: 2007-09-08 01:39:03.210081 +09:00
144
- basket_id: 8
145
- checkin_id: 4
146
- # == Schema Information
147
- #
148
- # Table name: checkouts
149
- #
150
- # id :integer not null, primary key
151
- # user_id :integer
152
- # item_id :integer not null
153
- # checkin_id :integer
154
- # librarian_id :integer
155
- # basket_id :integer
156
- # due_date :datetime
157
- # checkout_renewal_count :integer default(0), not null
158
- # lock_version :integer default(0), not null
159
- # created_at :datetime not null
160
- # updated_at :datetime not null
161
- #
162
-
@@ -1,63 +0,0 @@
1
- ---
2
- classification_type_00001:
3
- name: ndc9
4
- display_name: NDC
5
- updated_at: 2008-03-02 22:53:40.696331 +09:00
6
- id: 1
7
- note: ""
8
- created_at: 2008-03-02 22:53:40.696331 +09:00
9
- position: 1
10
- classification_type_00002:
11
- name: ndlc
12
- display_name: NDLC
13
- updated_at: 2008-03-02 22:53:51.394954 +09:00
14
- id: 2
15
- note: ""
16
- created_at: 2008-03-02 22:53:51.394954 +09:00
17
- position: 2
18
- classification_type_00003:
19
- name: ddc
20
- display_name: DDC
21
- updated_at: 2008-03-02 22:53:58.937354 +09:00
22
- id: 3
23
- note: ""
24
- created_at: 2008-03-02 22:53:58.937354 +09:00
25
- position: 3
26
- classification_type_00004:
27
- name: udc
28
- display_name: UDC
29
- updated_at: 2008-03-02 22:54:20.265696 +09:00
30
- id: 4
31
- note: ""
32
- created_at: 2008-03-02 22:54:20.265696 +09:00
33
- position: 4
34
- classification_type_00005:
35
- name: lcc
36
- display_name: LCC
37
- updated_at: 2008-03-02 22:54:41.169172 +09:00
38
- id: 5
39
- note: ""
40
- created_at: 2008-03-02 22:54:41.169172 +09:00
41
- position: 5
42
- classification_type_00006:
43
- name: nlmc
44
- display_name: NLMC
45
- updated_at: 2008-03-02 22:54:56.181793 +09:00
46
- id: 6
47
- note: ""
48
- created_at: 2008-03-02 22:54:56.181793 +09:00
49
- position: 6
50
-
51
- # == Schema Information
52
- #
53
- # Table name: classification_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 not null
61
- # updated_at :datetime not null
62
- #
63
-
@@ -1,29 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- id: 1
5
- start_date: 2008-12-12 17:00:38
6
- end_date: 2008-12-13 17:00:38
7
- note: MyText
8
-
9
- two:
10
- id: 2
11
- start_date: 2008-12-12 17:00:38
12
- end_date: 2008-12-13 17:00:38
13
- note: MyText
14
-
15
- # == Schema Information
16
- #
17
- # Table name: manifestation_checkout_stats
18
- #
19
- # id :integer not null, primary key
20
- # start_date :datetime
21
- # end_date :datetime
22
- # note :text
23
- # state :string(255)
24
- # created_at :datetime
25
- # updated_at :datetime
26
- # started_at :datetime
27
- # completed_at :datetime
28
- #
29
-