enju_circulation 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/app/helpers/items_helper.rb +1 -1
- data/app/models/checked_item.rb +2 -1
- data/app/views/carrier_types/_carrier_type_has_checkout_type_fields.html.erb +1 -1
- data/lib/enju_circulation/version.rb +1 -1
- data/lib/tasks/enju_circulation_tasks.rake +3 -2
- data/spec/controllers/carrier_type_has_checkout_types_controller_spec.rb +152 -152
- data/spec/controllers/checked_items_controller_spec.rb +135 -135
- data/spec/controllers/checkins_controller_spec.rb +161 -161
- data/spec/controllers/checkout_types_controller_spec.rb +152 -152
- data/spec/controllers/checkouts_controller_spec.rb +103 -103
- data/spec/controllers/circulation_statuses_controller_spec.rb +152 -152
- data/spec/controllers/item_has_use_restrictions_controller_spec.rb +152 -152
- data/spec/controllers/lending_policies_controller_spec.rb +150 -150
- data/spec/controllers/manifestation_checkout_stats_controller_spec.rb +152 -152
- data/spec/controllers/manifestation_reserve_stats_controller_spec.rb +152 -152
- data/spec/controllers/profiles_controller_spec.rb +4 -4
- data/spec/controllers/reserves_controller_spec.rb +249 -249
- data/spec/controllers/use_restrictions_controller_spec.rb +153 -153
- data/spec/controllers/user_checkout_stats_controller_spec.rb +152 -152
- data/spec/controllers/user_group_has_checkout_types_controller_spec.rb +150 -150
- data/spec/controllers/user_reserve_stats_controller_spec.rb +152 -152
- data/spec/dummy/db/schema.rb +12 -2
- data/spec/fixtures/checked_items.yml +2 -1
- data/spec/helpers/items_helper_spec.rb +0 -1
- data/spec/models/checked_item_spec.rb +2 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29980c1f8cd7b154a9a9f4eb904ae86f3b959be4
|
4
|
+
data.tar.gz: 2ff5cc3855774b1bfe3cfdd62089f48f8dde5fb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3681282a28db364eadf947792ee57ac3214e559749a576d22838a6c7ec31a5561e20ef7bf33ff7d169dbb911dec8291fd1248957c50bd98bf8ccb29dcfe6a5a
|
7
|
+
data.tar.gz: b53caf13e1f55a3c0bd2b56e019c325368be37e3bf8811aee337e17188aeece051d74607b53b669d684721219f8bf62265e062cd143e5a485b68f5e2a59f414f
|
data/app/helpers/items_helper.rb
CHANGED
@@ -3,7 +3,7 @@ module ItemsHelper
|
|
3
3
|
string = ''
|
4
4
|
circulation_status = CirculationStatus.where(name: facet.value).select([:name, :display_name]).first
|
5
5
|
if circulation_status
|
6
|
-
string << form_icon(circulation_status)
|
6
|
+
#string << form_icon(circulation_status)
|
7
7
|
current = true if params[:circulation_status] == circulation_status.name
|
8
8
|
if current
|
9
9
|
content_tag :strong do
|
data/app/models/checked_item.rb
CHANGED
@@ -128,8 +128,9 @@ end
|
|
128
128
|
# id :integer not null, primary key
|
129
129
|
# item_id :integer not null
|
130
130
|
# basket_id :integer not null
|
131
|
+
# librarian_id :integer
|
131
132
|
# due_date :datetime not null
|
132
133
|
# created_at :datetime
|
133
134
|
# updated_at :datetime
|
134
|
-
#
|
135
|
+
# user_id :integer
|
135
136
|
#
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="nested-fields">
|
2
2
|
<%= f.label :checkout_type_id -%>
|
3
3
|
<%= f.select(:checkout_type_id, @checkout_types.collect{|c| [c.display_name.localize, c.id]}) %>
|
4
|
-
<%=
|
4
|
+
<%= link_to_remove_association t('page.remove'), f, data: {confirm: t('page.are_you_sure')} %><br />
|
5
5
|
</div>
|
@@ -5,8 +5,9 @@ require 'tasks/reserve'
|
|
5
5
|
require 'tasks/use_restriction'
|
6
6
|
|
7
7
|
namespace :enju_circulation do
|
8
|
-
desc
|
9
|
-
task :
|
8
|
+
desc 'create initial records for enju_circulation'
|
9
|
+
task setup: :environment do
|
10
|
+
ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_circulation', 'checkout_types')
|
10
11
|
Dir.glob(Rails.root.to_s + '/db/fixtures/enju_circulation/*.yml').each do |file|
|
11
12
|
ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_circulation', File.basename(file, '.*'))
|
12
13
|
end
|