enju_circulation 0.0.66 → 0.0.67
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/checkin.rb +2 -3
- data/app/views/baskets/new.html.erb +1 -1
- data/app/views/checked_items/_list.html.erb +2 -1
- data/app/views/checkins/_checkin.html.erb +2 -1
- data/app/views/checkins/_list.html.erb +1 -1
- data/app/views/reserves/_new.html.erb +1 -1
- data/lib/enju_circulation/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +2 -2
data/app/models/checkin.rb
CHANGED
@@ -7,9 +7,8 @@ class Checkin < ActiveRecord::Base
|
|
7
7
|
belongs_to :librarian, :class_name => 'User'
|
8
8
|
belongs_to :basket
|
9
9
|
|
10
|
-
validates_uniqueness_of :item_id, :scope => :basket_id
|
11
|
-
validates_presence_of :item_id, :
|
12
|
-
validates_presence_of :basket_id
|
10
|
+
validates_uniqueness_of :item_id, :scope => :basket_id
|
11
|
+
validates_presence_of :item_id, :basket_id
|
13
12
|
validate :available_for_checkin?, :on => :create
|
14
13
|
|
15
14
|
attr_accessor :item_identifier
|
@@ -9,7 +9,8 @@
|
|
9
9
|
<%= f.submit t('page.read'), 'data-disable-with' => t('page.saving') -%>
|
10
10
|
</p>
|
11
11
|
<%- end -%>
|
12
|
-
|
12
|
+
|
13
|
+
<%= javascript_tag("$('#checked_item_item_identifier').focus().select();") %>
|
13
14
|
</div>
|
14
15
|
|
15
16
|
<%= render 'checked_item' %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= f.error_messages %>
|
6
6
|
<p>
|
7
7
|
<%= t('activerecord.attributes.item.item_identifier') -%>:
|
8
|
-
<%= f.search_field :item_identifier, :class => 'resource_item_identifier'
|
8
|
+
<%= f.search_field :item_identifier, :class => 'resource_item_identifier' -%>
|
9
9
|
<%= f.submit t('checkin.checkin'), 'data-disable-with' => t('page.saving') -%>
|
10
10
|
</p>
|
11
11
|
<%- end -%>
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_circulation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.67
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|