enju_library 0.1.0.pre5 → 0.1.0.pre6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/bookstore.rb +4 -4
- data/app/models/budget_type.rb +4 -3
- data/app/models/library.rb +9 -12
- data/app/models/library_group.rb +14 -16
- data/app/models/request_status_type.rb +4 -4
- data/app/models/request_type.rb +4 -4
- data/app/models/search_engine.rb +8 -8
- data/app/models/shelf.rb +7 -7
- data/app/models/subscribe.rb +7 -7
- data/app/models/subscription.rb +5 -5
- data/app/views/libraries/index.html.erb +1 -1
- data/app/views/shelves/index.html.erb +1 -1
- data/lib/enju_library/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/conf/schema.xml +2 -14
- data/spec/dummy/solr/data/test/index/{_4b.fdt → _38.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_4b.fdx → _38.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_4b.fnm → _38.fnm} +0 -0
- data/spec/dummy/solr/data/test/index/{_4b.frq → _38.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_4b.nrm → _38.nrm} +0 -0
- data/spec/dummy/solr/data/test/index/{_4b.prx → _38.prx} +0 -0
- data/spec/dummy/solr/data/test/index/{_4b.tii → _38.tii} +0 -0
- data/spec/dummy/solr/data/test/index/_38.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_9x → segments_7f} +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/fixtures/bookstores.yml +4 -4
- data/spec/fixtures/budget_types.yml +3 -3
- data/spec/fixtures/libraries.yml +9 -12
- data/spec/fixtures/library_groups.yml +14 -15
- data/spec/fixtures/request_status_types.yml +4 -4
- data/spec/fixtures/request_types.yml +4 -4
- data/spec/fixtures/search_engines.yml +8 -8
- data/spec/fixtures/shelves.yml +7 -7
- data/spec/fixtures/subscribes.yml +7 -7
- data/spec/fixtures/subscriptions.yml +5 -5
- data/spec/models/bookstore_spec.rb +4 -4
- data/spec/models/budget_type_spec.rb +4 -4
- data/spec/models/library_group_spec.rb +14 -16
- data/spec/models/library_spec.rb +9 -12
- data/spec/models/request_status_type_spec.rb +4 -4
- data/spec/models/request_type_spec.rb +4 -4
- data/spec/models/search_engine_spec.rb +8 -8
- data/spec/models/shelf_spec.rb +7 -7
- data/spec/models/subscribe_spec.rb +7 -7
- data/spec/models/subscription_spec.rb +5 -5
- metadata +29 -26
- data/spec/dummy/solr/data/test/index/_4b.tis +0 -0
data/app/models/bookstore.rb
CHANGED
@@ -19,8 +19,8 @@ end
|
|
19
19
|
#
|
20
20
|
# Table name: bookstores
|
21
21
|
#
|
22
|
-
# id :integer
|
23
|
-
# name :text
|
22
|
+
# id :integer not null, primary key
|
23
|
+
# name :text not null
|
24
24
|
# zip_code :string(255)
|
25
25
|
# address :text
|
26
26
|
# note :text
|
@@ -29,7 +29,7 @@ end
|
|
29
29
|
# url :string(255)
|
30
30
|
# position :integer
|
31
31
|
# deleted_at :datetime
|
32
|
-
# created_at :datetime
|
33
|
-
# updated_at :datetime
|
32
|
+
# created_at :datetime not null
|
33
|
+
# updated_at :datetime not null
|
34
34
|
#
|
35
35
|
|
data/app/models/budget_type.rb
CHANGED
@@ -4,16 +4,17 @@ class BudgetType < ActiveRecord::Base
|
|
4
4
|
default_scope :order => 'budget_types.position'
|
5
5
|
has_many :items
|
6
6
|
end
|
7
|
+
|
7
8
|
# == Schema Information
|
8
9
|
#
|
9
10
|
# Table name: budget_types
|
10
11
|
#
|
11
|
-
# id :integer
|
12
|
+
# id :integer not null, primary key
|
12
13
|
# name :string(255)
|
13
14
|
# display_name :text
|
14
15
|
# note :text
|
15
16
|
# position :integer
|
16
|
-
# created_at :datetime
|
17
|
-
# updated_at :datetime
|
17
|
+
# created_at :datetime not null
|
18
|
+
# updated_at :datetime not null
|
18
19
|
#
|
19
20
|
|
data/app/models/library.rb
CHANGED
@@ -99,10 +99,10 @@ end
|
|
99
99
|
#
|
100
100
|
# Table name: libraries
|
101
101
|
#
|
102
|
-
# id :integer
|
103
|
-
# name :string(255)
|
102
|
+
# id :integer not null, primary key
|
103
|
+
# name :string(255) not null
|
104
104
|
# display_name :text
|
105
|
-
# short_display_name :string(255)
|
105
|
+
# short_display_name :string(255) not null
|
106
106
|
# zip_code :string(255)
|
107
107
|
# street :text
|
108
108
|
# locality :text
|
@@ -111,18 +111,15 @@ end
|
|
111
111
|
# telephone_number_2 :string(255)
|
112
112
|
# fax_number :string(255)
|
113
113
|
# note :text
|
114
|
-
# call_number_rows :integer
|
115
|
-
# call_number_delimiter :string(255)
|
116
|
-
# library_group_id :integer
|
117
|
-
# users_count :integer
|
114
|
+
# call_number_rows :integer default(1), not null
|
115
|
+
# call_number_delimiter :string(255) default("|"), not null
|
116
|
+
# library_group_id :integer default(1), not null
|
117
|
+
# users_count :integer default(0), not null
|
118
118
|
# position :integer
|
119
119
|
# country_id :integer
|
120
|
-
# created_at :datetime
|
121
|
-
# updated_at :datetime
|
120
|
+
# created_at :datetime not null
|
121
|
+
# updated_at :datetime not null
|
122
122
|
# deleted_at :datetime
|
123
|
-
# opening_hour :text
|
124
|
-
# latitude :float
|
125
|
-
# longitude :float
|
126
123
|
# isil :string(255)
|
127
124
|
#
|
128
125
|
|
data/app/models/library_group.rb
CHANGED
@@ -68,25 +68,23 @@ class LibraryGroup < ActiveRecord::Base
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
|
72
71
|
# == Schema Information
|
73
72
|
#
|
74
73
|
# Table name: library_groups
|
75
74
|
#
|
76
|
-
# id
|
77
|
-
# name
|
78
|
-
# display_name
|
79
|
-
# short_name
|
80
|
-
# email
|
81
|
-
# my_networks
|
82
|
-
# login_banner
|
83
|
-
# note
|
84
|
-
# country_id
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
# url :string(255) default("http://localhost:3000/")
|
75
|
+
# id :integer not null, primary key
|
76
|
+
# name :string(255) not null
|
77
|
+
# display_name :text
|
78
|
+
# short_name :string(255) not null
|
79
|
+
# email :string(255)
|
80
|
+
# my_networks :text
|
81
|
+
# login_banner :text
|
82
|
+
# note :text
|
83
|
+
# country_id :integer
|
84
|
+
# position :integer
|
85
|
+
# created_at :datetime not null
|
86
|
+
# updated_at :datetime not null
|
87
|
+
# admin_networks :text
|
88
|
+
# url :string(255) default("http://localhost:3000/")
|
91
89
|
#
|
92
90
|
|
@@ -9,12 +9,12 @@ end
|
|
9
9
|
#
|
10
10
|
# Table name: request_status_types
|
11
11
|
#
|
12
|
-
# id :integer
|
13
|
-
# name :string(255)
|
12
|
+
# id :integer not null, primary key
|
13
|
+
# name :string(255) not null
|
14
14
|
# display_name :text
|
15
15
|
# note :text
|
16
16
|
# position :integer
|
17
|
-
# created_at :datetime
|
18
|
-
# updated_at :datetime
|
17
|
+
# created_at :datetime not null
|
18
|
+
# updated_at :datetime not null
|
19
19
|
#
|
20
20
|
|
data/app/models/request_type.rb
CHANGED
@@ -8,12 +8,12 @@ end
|
|
8
8
|
#
|
9
9
|
# Table name: request_types
|
10
10
|
#
|
11
|
-
# id :integer
|
12
|
-
# name :string(255)
|
11
|
+
# id :integer not null, primary key
|
12
|
+
# name :string(255) not null
|
13
13
|
# display_name :text
|
14
14
|
# note :text
|
15
15
|
# position :integer
|
16
|
-
# created_at :datetime
|
17
|
-
# updated_at :datetime
|
16
|
+
# created_at :datetime not null
|
17
|
+
# updated_at :datetime not null
|
18
18
|
#
|
19
19
|
|
data/app/models/search_engine.rb
CHANGED
@@ -34,17 +34,17 @@ end
|
|
34
34
|
#
|
35
35
|
# Table name: search_engines
|
36
36
|
#
|
37
|
-
# id :integer
|
38
|
-
# name :string(255)
|
37
|
+
# id :integer not null, primary key
|
38
|
+
# name :string(255) not null
|
39
39
|
# display_name :text
|
40
|
-
# url :string(255)
|
41
|
-
# base_url :text
|
42
|
-
# http_method :text
|
43
|
-
# query_param :text
|
40
|
+
# url :string(255) not null
|
41
|
+
# base_url :text not null
|
42
|
+
# http_method :text not null
|
43
|
+
# query_param :text not null
|
44
44
|
# additional_param :text
|
45
45
|
# note :text
|
46
46
|
# position :integer
|
47
|
-
# created_at :datetime
|
48
|
-
# updated_at :datetime
|
47
|
+
# created_at :datetime not null
|
48
|
+
# updated_at :datetime not null
|
49
49
|
#
|
50
50
|
|
data/app/models/shelf.rb
CHANGED
@@ -50,16 +50,16 @@ end
|
|
50
50
|
#
|
51
51
|
# Table name: shelves
|
52
52
|
#
|
53
|
-
# id :integer
|
54
|
-
# name :string(255)
|
53
|
+
# id :integer not null, primary key
|
54
|
+
# name :string(255) not null
|
55
55
|
# display_name :text
|
56
56
|
# note :text
|
57
|
-
# library_id :integer
|
58
|
-
# items_count :integer
|
57
|
+
# library_id :integer default(1), not null
|
58
|
+
# items_count :integer default(0), not null
|
59
59
|
# position :integer
|
60
|
-
# created_at :datetime
|
61
|
-
# updated_at :datetime
|
60
|
+
# created_at :datetime not null
|
61
|
+
# updated_at :datetime not null
|
62
62
|
# deleted_at :datetime
|
63
|
-
# closed :boolean
|
63
|
+
# closed :boolean default(FALSE), not null
|
64
64
|
#
|
65
65
|
|
data/app/models/subscribe.rb
CHANGED
@@ -12,12 +12,12 @@ end
|
|
12
12
|
#
|
13
13
|
# Table name: subscribes
|
14
14
|
#
|
15
|
-
# id :integer
|
16
|
-
# subscription_id :integer
|
17
|
-
# work_id :integer
|
18
|
-
# start_at :datetime
|
19
|
-
# end_at :datetime
|
20
|
-
# created_at :datetime
|
21
|
-
# updated_at :datetime
|
15
|
+
# id :integer not null, primary key
|
16
|
+
# subscription_id :integer not null
|
17
|
+
# work_id :integer not null
|
18
|
+
# start_at :datetime not null
|
19
|
+
# end_at :datetime not null
|
20
|
+
# created_at :datetime not null
|
21
|
+
# updated_at :datetime not null
|
22
22
|
#
|
23
23
|
|
data/app/models/subscription.rb
CHANGED
@@ -29,14 +29,14 @@ end
|
|
29
29
|
#
|
30
30
|
# Table name: subscriptions
|
31
31
|
#
|
32
|
-
# id :integer
|
33
|
-
# title :text
|
32
|
+
# id :integer not null, primary key
|
33
|
+
# title :text not null
|
34
34
|
# note :text
|
35
35
|
# user_id :integer
|
36
36
|
# order_list_id :integer
|
37
37
|
# deleted_at :datetime
|
38
|
-
# subscribes_count :integer
|
39
|
-
# created_at :datetime
|
40
|
-
# updated_at :datetime
|
38
|
+
# subscribes_count :integer default(0), not null
|
39
|
+
# created_at :datetime not null
|
40
|
+
# updated_at :datetime not null
|
41
41
|
#
|
42
42
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<%= form_for :libraries, :url => libraries_path, :html => {:method => 'get'} do -%>
|
6
6
|
<p>
|
7
|
-
<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
7
|
+
<%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
8
8
|
<%= submit_tag t('page.search') -%>
|
9
9
|
</p>
|
10
10
|
<%- end -%>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<div class="search_form">
|
11
11
|
<%= form_for :shelves, :url => shelves_path, :html => {:method => 'get'} do -%>
|
12
12
|
<p>
|
13
|
-
<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
13
|
+
<%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
14
14
|
<%= submit_tag t('page.search') -%>
|
15
15
|
<%= hidden_field_tag :library_id, @library.name if @library -%>
|
16
16
|
</p>
|
data/lib/enju_library/version.rb
CHANGED
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -188,8 +188,8 @@ ActiveRecord::Schema.define(:version => 20120510140958) do
|
|
188
188
|
t.integer "position"
|
189
189
|
t.datetime "created_at", :null => false
|
190
190
|
t.datetime "updated_at", :null => false
|
191
|
-
t.string "url", :default => "http://localhost:3000/"
|
192
191
|
t.text "admin_networks"
|
192
|
+
t.string "url", :default => "http://localhost:3000/"
|
193
193
|
end
|
194
194
|
|
195
195
|
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -84,14 +84,11 @@
|
|
84
84
|
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
|
85
85
|
<!-- *** This fieldType is used by Sunspot! *** -->
|
86
86
|
<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
|
87
|
-
|
88
|
-
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
89
|
-
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
90
87
|
</types>
|
91
88
|
<fields>
|
92
89
|
<!-- Valid attributes for fields:
|
93
90
|
name: mandatory - the name for the field
|
94
|
-
type: mandatory - the name of a previously defined type from the
|
91
|
+
type: mandatory - the name of a previously defined type from the
|
95
92
|
<types> section
|
96
93
|
indexed: true if this field should be indexed (searchable or sortable)
|
97
94
|
stored: true if this field should be retrievable
|
@@ -226,17 +223,8 @@
|
|
226
223
|
<dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
227
224
|
<!-- *** This dynamicField is used by Sunspot! *** -->
|
228
225
|
<dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
229
|
-
|
230
|
-
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
231
|
-
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" multiValued="false"/>
|
232
|
-
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
|
233
|
-
|
234
|
-
<dynamicField name="*_ll" stored="false" type="location" multiValued="false" indexed="true"/>
|
235
|
-
<dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
|
236
|
-
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
|
237
|
-
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
|
238
226
|
</fields>
|
239
|
-
<!-- Field to use to determine and enforce document uniqueness.
|
227
|
+
<!-- Field to use to determine and enforce document uniqueness.
|
240
228
|
Unless this field is marked with required="false", it will be a required field
|
241
229
|
-->
|
242
230
|
<uniqueKey>id</uniqueKey>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -91,8 +91,8 @@ bookstore_00007:
|
|
91
91
|
#
|
92
92
|
# Table name: bookstores
|
93
93
|
#
|
94
|
-
# id :integer
|
95
|
-
# name :text
|
94
|
+
# id :integer not null, primary key
|
95
|
+
# name :text not null
|
96
96
|
# zip_code :string(255)
|
97
97
|
# address :text
|
98
98
|
# note :text
|
@@ -101,7 +101,7 @@ bookstore_00007:
|
|
101
101
|
# url :string(255)
|
102
102
|
# position :integer
|
103
103
|
# deleted_at :datetime
|
104
|
-
# created_at :datetime
|
105
|
-
# updated_at :datetime
|
104
|
+
# created_at :datetime not null
|
105
|
+
# updated_at :datetime not null
|
106
106
|
#
|
107
107
|
|
@@ -18,12 +18,12 @@ donation:
|
|
18
18
|
#
|
19
19
|
# Table name: budget_types
|
20
20
|
#
|
21
|
-
# id :integer
|
21
|
+
# id :integer not null, primary key
|
22
22
|
# name :string(255)
|
23
23
|
# display_name :text
|
24
24
|
# note :text
|
25
25
|
# position :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
data/spec/fixtures/libraries.yml
CHANGED
@@ -73,10 +73,10 @@ library_00004:
|
|
73
73
|
#
|
74
74
|
# Table name: libraries
|
75
75
|
#
|
76
|
-
# id :integer
|
77
|
-
# name :string(255)
|
76
|
+
# id :integer not null, primary key
|
77
|
+
# name :string(255) not null
|
78
78
|
# display_name :text
|
79
|
-
# short_display_name :string(255)
|
79
|
+
# short_display_name :string(255) not null
|
80
80
|
# zip_code :string(255)
|
81
81
|
# street :text
|
82
82
|
# locality :text
|
@@ -85,18 +85,15 @@ library_00004:
|
|
85
85
|
# telephone_number_2 :string(255)
|
86
86
|
# fax_number :string(255)
|
87
87
|
# note :text
|
88
|
-
# call_number_rows :integer
|
89
|
-
# call_number_delimiter :string(255)
|
90
|
-
# library_group_id :integer
|
91
|
-
# users_count :integer
|
88
|
+
# call_number_rows :integer default(1), not null
|
89
|
+
# call_number_delimiter :string(255) default("|"), not null
|
90
|
+
# library_group_id :integer default(1), not null
|
91
|
+
# users_count :integer default(0), not null
|
92
92
|
# position :integer
|
93
93
|
# country_id :integer
|
94
|
-
# created_at :datetime
|
95
|
-
# updated_at :datetime
|
94
|
+
# created_at :datetime not null
|
95
|
+
# updated_at :datetime not null
|
96
96
|
# deleted_at :datetime
|
97
|
-
# opening_hour :text
|
98
|
-
# latitude :float
|
99
|
-
# longitude :float
|
100
97
|
# isil :string(255)
|
101
98
|
#
|
102
99
|
|
@@ -10,24 +10,23 @@ one:
|
|
10
10
|
url: "http://localhost:3000/"
|
11
11
|
position: 1
|
12
12
|
|
13
|
-
|
14
13
|
# == Schema Information
|
15
14
|
#
|
16
15
|
# Table name: library_groups
|
17
16
|
#
|
18
|
-
# id
|
19
|
-
# name
|
20
|
-
# display_name
|
21
|
-
# short_name
|
22
|
-
# email
|
23
|
-
# my_networks
|
24
|
-
# login_banner
|
25
|
-
# note
|
26
|
-
# country_id
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
# url
|
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
|
+
# position :integer
|
27
|
+
# created_at :datetime not null
|
28
|
+
# updated_at :datetime not null
|
29
|
+
# admin_networks :text
|
30
|
+
# url :string(255) default("http://localhost:3000/")
|
32
31
|
#
|
33
32
|
|
@@ -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 not null
|
61
|
+
# updated_at :datetime not null
|
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 not null
|
53
|
+
# updated_at :datetime not null
|
54
54
|
#
|
55
55
|
|
@@ -25,17 +25,17 @@ search_engine_00002:
|
|
25
25
|
#
|
26
26
|
# Table name: search_engines
|
27
27
|
#
|
28
|
-
# id :integer
|
29
|
-
# name :string(255)
|
28
|
+
# id :integer not null, primary key
|
29
|
+
# name :string(255) not null
|
30
30
|
# display_name :text
|
31
|
-
# url :string(255)
|
32
|
-
# base_url :text
|
33
|
-
# http_method :text
|
34
|
-
# query_param :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
35
|
# additional_param :text
|
36
36
|
# note :text
|
37
37
|
# position :integer
|
38
|
-
# created_at :datetime
|
39
|
-
# updated_at :datetime
|
38
|
+
# created_at :datetime not null
|
39
|
+
# updated_at :datetime not null
|
40
40
|
#
|
41
41
|
|
data/spec/fixtures/shelves.yml
CHANGED
@@ -32,16 +32,16 @@ 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 not null
|
43
|
+
# updated_at :datetime not null
|
44
44
|
# deleted_at :datetime
|
45
|
-
# closed :boolean
|
45
|
+
# closed :boolean default(FALSE), not null
|
46
46
|
#
|
47
47
|
|
@@ -34,12 +34,12 @@ subscription_00005:
|
|
34
34
|
#
|
35
35
|
# Table name: subscribes
|
36
36
|
#
|
37
|
-
# id :integer
|
38
|
-
# subscription_id :integer
|
39
|
-
# work_id :integer
|
40
|
-
# start_at :datetime
|
41
|
-
# end_at :datetime
|
42
|
-
# created_at :datetime
|
43
|
-
# updated_at :datetime
|
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 not null
|
43
|
+
# updated_at :datetime not null
|
44
44
|
#
|
45
45
|
|
@@ -14,14 +14,14 @@ subscription_00002:
|
|
14
14
|
#
|
15
15
|
# Table name: subscriptions
|
16
16
|
#
|
17
|
-
# id :integer
|
18
|
-
# title :text
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# title :text not null
|
19
19
|
# note :text
|
20
20
|
# user_id :integer
|
21
21
|
# order_list_id :integer
|
22
22
|
# deleted_at :datetime
|
23
|
-
# subscribes_count :integer
|
24
|
-
# created_at :datetime
|
25
|
-
# updated_at :datetime
|
23
|
+
# subscribes_count :integer default(0), not null
|
24
|
+
# created_at :datetime not null
|
25
|
+
# updated_at :datetime not null
|
26
26
|
#
|
27
27
|
|
@@ -10,8 +10,8 @@ end
|
|
10
10
|
#
|
11
11
|
# Table name: bookstores
|
12
12
|
#
|
13
|
-
# id :integer
|
14
|
-
# name :text
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# name :text not null
|
15
15
|
# zip_code :string(255)
|
16
16
|
# address :text
|
17
17
|
# note :text
|
@@ -20,7 +20,7 @@ end
|
|
20
20
|
# url :string(255)
|
21
21
|
# position :integer
|
22
22
|
# deleted_at :datetime
|
23
|
-
# created_at :datetime
|
24
|
-
# updated_at :datetime
|
23
|
+
# created_at :datetime not null
|
24
|
+
# updated_at :datetime not null
|
25
25
|
#
|
26
26
|
|
@@ -11,12 +11,12 @@ end
|
|
11
11
|
#
|
12
12
|
# Table name: budget_types
|
13
13
|
#
|
14
|
-
# id :integer
|
15
|
-
# name :string(255)
|
14
|
+
# id :integer not null, primary key
|
15
|
+
# name :string(255)
|
16
16
|
# display_name :text
|
17
17
|
# note :text
|
18
18
|
# position :integer
|
19
|
-
# created_at :datetime
|
20
|
-
# updated_at :datetime
|
19
|
+
# created_at :datetime not null
|
20
|
+
# updated_at :datetime not null
|
21
21
|
#
|
22
22
|
|
@@ -9,25 +9,23 @@ describe LibraryGroup do
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
12
|
# == Schema Information
|
14
13
|
#
|
15
14
|
# Table name: library_groups
|
16
15
|
#
|
17
|
-
# id
|
18
|
-
# name
|
19
|
-
# display_name
|
20
|
-
# short_name
|
21
|
-
# email
|
22
|
-
# my_networks
|
23
|
-
# login_banner
|
24
|
-
# note
|
25
|
-
# country_id
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
# url :string(255) default("http://localhost:3000/")
|
16
|
+
# id :integer not null, primary key
|
17
|
+
# name :string(255) not null
|
18
|
+
# display_name :text
|
19
|
+
# short_name :string(255) not null
|
20
|
+
# email :string(255)
|
21
|
+
# my_networks :text
|
22
|
+
# login_banner :text
|
23
|
+
# note :text
|
24
|
+
# country_id :integer
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
|
+
# admin_networks :text
|
29
|
+
# url :string(255) default("http://localhost:3000/")
|
32
30
|
#
|
33
31
|
|
data/spec/models/library_spec.rb
CHANGED
@@ -18,10 +18,10 @@ end
|
|
18
18
|
#
|
19
19
|
# Table name: libraries
|
20
20
|
#
|
21
|
-
# id :integer
|
22
|
-
# name :string(255)
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255) not null
|
23
23
|
# display_name :text
|
24
|
-
# short_display_name :string(255)
|
24
|
+
# short_display_name :string(255) not null
|
25
25
|
# zip_code :string(255)
|
26
26
|
# street :text
|
27
27
|
# locality :text
|
@@ -30,18 +30,15 @@ end
|
|
30
30
|
# telephone_number_2 :string(255)
|
31
31
|
# fax_number :string(255)
|
32
32
|
# note :text
|
33
|
-
# call_number_rows :integer
|
34
|
-
# call_number_delimiter :string(255)
|
35
|
-
# library_group_id :integer
|
36
|
-
# users_count :integer
|
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
37
|
# position :integer
|
38
38
|
# country_id :integer
|
39
|
-
# created_at :datetime
|
40
|
-
# updated_at :datetime
|
39
|
+
# created_at :datetime not null
|
40
|
+
# updated_at :datetime not null
|
41
41
|
# deleted_at :datetime
|
42
|
-
# opening_hour :text
|
43
|
-
# latitude :float
|
44
|
-
# longitude :float
|
45
42
|
# isil :string(255)
|
46
43
|
#
|
47
44
|
|
@@ -10,12 +10,12 @@ end
|
|
10
10
|
#
|
11
11
|
# Table name: request_status_types
|
12
12
|
#
|
13
|
-
# id :integer
|
14
|
-
# name :string(255)
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# name :string(255) not null
|
15
15
|
# display_name :text
|
16
16
|
# note :text
|
17
17
|
# position :integer
|
18
|
-
# created_at :datetime
|
19
|
-
# updated_at :datetime
|
18
|
+
# created_at :datetime not null
|
19
|
+
# updated_at :datetime not null
|
20
20
|
#
|
21
21
|
|
@@ -10,12 +10,12 @@ end
|
|
10
10
|
#
|
11
11
|
# Table name: request_types
|
12
12
|
#
|
13
|
-
# id :integer
|
14
|
-
# name :string(255)
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# name :string(255) not null
|
15
15
|
# display_name :text
|
16
16
|
# note :text
|
17
17
|
# position :integer
|
18
|
-
# created_at :datetime
|
19
|
-
# updated_at :datetime
|
18
|
+
# created_at :datetime not null
|
19
|
+
# updated_at :datetime not null
|
20
20
|
#
|
21
21
|
|
@@ -13,17 +13,17 @@ end
|
|
13
13
|
#
|
14
14
|
# Table name: search_engines
|
15
15
|
#
|
16
|
-
# id :integer
|
17
|
-
# name :string(255)
|
16
|
+
# id :integer not null, primary key
|
17
|
+
# name :string(255) not null
|
18
18
|
# display_name :text
|
19
|
-
# url :string(255)
|
20
|
-
# base_url :text
|
21
|
-
# http_method :text
|
22
|
-
# query_param :text
|
19
|
+
# url :string(255) not null
|
20
|
+
# base_url :text not null
|
21
|
+
# http_method :text not null
|
22
|
+
# query_param :text not null
|
23
23
|
# additional_param :text
|
24
24
|
# note :text
|
25
25
|
# position :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
data/spec/models/shelf_spec.rb
CHANGED
@@ -14,16 +14,16 @@ end
|
|
14
14
|
#
|
15
15
|
# Table name: shelves
|
16
16
|
#
|
17
|
-
# id :integer
|
18
|
-
# name :string(255)
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# name :string(255) not null
|
19
19
|
# display_name :text
|
20
20
|
# note :text
|
21
|
-
# library_id :integer
|
22
|
-
# items_count :integer
|
21
|
+
# library_id :integer default(1), not null
|
22
|
+
# items_count :integer default(0), not null
|
23
23
|
# position :integer
|
24
|
-
# created_at :datetime
|
25
|
-
# updated_at :datetime
|
24
|
+
# created_at :datetime not null
|
25
|
+
# updated_at :datetime not null
|
26
26
|
# deleted_at :datetime
|
27
|
-
# closed :boolean
|
27
|
+
# closed :boolean default(FALSE), not null
|
28
28
|
#
|
29
29
|
|
@@ -10,12 +10,12 @@ end
|
|
10
10
|
#
|
11
11
|
# Table name: subscribes
|
12
12
|
#
|
13
|
-
# id :integer
|
14
|
-
# subscription_id :integer
|
15
|
-
# work_id :integer
|
16
|
-
# start_at :datetime
|
17
|
-
# end_at :datetime
|
18
|
-
# created_at :datetime
|
19
|
-
# updated_at :datetime
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# subscription_id :integer not null
|
15
|
+
# work_id :integer not null
|
16
|
+
# start_at :datetime not null
|
17
|
+
# end_at :datetime not null
|
18
|
+
# created_at :datetime not null
|
19
|
+
# updated_at :datetime not null
|
20
20
|
#
|
21
21
|
|
@@ -13,14 +13,14 @@ end
|
|
13
13
|
#
|
14
14
|
# Table name: subscriptions
|
15
15
|
#
|
16
|
-
# id :integer
|
17
|
-
# title :text
|
16
|
+
# id :integer not null, primary key
|
17
|
+
# title :text not null
|
18
18
|
# note :text
|
19
19
|
# user_id :integer
|
20
20
|
# order_list_id :integer
|
21
21
|
# deleted_at :datetime
|
22
|
-
# subscribes_count :integer
|
23
|
-
# created_at :datetime
|
24
|
-
# updated_at :datetime
|
22
|
+
# subscribes_count :integer default(0), not null
|
23
|
+
# created_at :datetime not null
|
24
|
+
# updated_at :datetime not null
|
25
25
|
#
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre6
|
5
5
|
prerelease: 6
|
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-
|
12
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -178,7 +178,7 @@ dependencies:
|
|
178
178
|
requirements:
|
179
179
|
- - ~>
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version: 0.1.0.
|
181
|
+
version: 0.1.0.pre6
|
182
182
|
type: :development
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -186,7 +186,7 @@ dependencies:
|
|
186
186
|
requirements:
|
187
187
|
- - ~>
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.1.0.
|
189
|
+
version: 0.1.0.pre6
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: enju_manifestation_viewer
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,7 +194,7 @@ dependencies:
|
|
194
194
|
requirements:
|
195
195
|
- - ~>
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version: 0.1.0.
|
197
|
+
version: 0.1.0.pre3
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -202,7 +202,7 @@ dependencies:
|
|
202
202
|
requirements:
|
203
203
|
- - ~>
|
204
204
|
- !ruby/object:Gem::Version
|
205
|
-
version: 0.1.0.
|
205
|
+
version: 0.1.0.pre3
|
206
206
|
- !ruby/object:Gem::Dependency
|
207
207
|
name: enju_biblio
|
208
208
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,7 +210,7 @@ dependencies:
|
|
210
210
|
requirements:
|
211
211
|
- - ~>
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version: 0.1.0.
|
213
|
+
version: 0.1.0.pre13
|
214
214
|
type: :development
|
215
215
|
prerelease: false
|
216
216
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -218,7 +218,7 @@ dependencies:
|
|
218
218
|
requirements:
|
219
219
|
- - ~>
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.1.0.
|
221
|
+
version: 0.1.0.pre13
|
222
222
|
- !ruby/object:Gem::Dependency
|
223
223
|
name: sunspot_solr
|
224
224
|
requirement: !ruby/object:Gem::Requirement
|
@@ -494,16 +494,16 @@ files:
|
|
494
494
|
- spec/dummy/solr/conf/spellings.txt
|
495
495
|
- spec/dummy/solr/conf/stopwords.txt
|
496
496
|
- spec/dummy/solr/conf/synonyms.txt
|
497
|
-
- spec/dummy/solr/data/test/index/
|
498
|
-
- spec/dummy/solr/data/test/index/
|
499
|
-
- spec/dummy/solr/data/test/index/
|
500
|
-
- spec/dummy/solr/data/test/index/
|
501
|
-
- spec/dummy/solr/data/test/index/
|
502
|
-
- spec/dummy/solr/data/test/index/
|
503
|
-
- spec/dummy/solr/data/test/index/
|
504
|
-
- spec/dummy/solr/data/test/index/
|
497
|
+
- spec/dummy/solr/data/test/index/_38.fdt
|
498
|
+
- spec/dummy/solr/data/test/index/_38.fdx
|
499
|
+
- spec/dummy/solr/data/test/index/_38.fnm
|
500
|
+
- spec/dummy/solr/data/test/index/_38.frq
|
501
|
+
- spec/dummy/solr/data/test/index/_38.nrm
|
502
|
+
- spec/dummy/solr/data/test/index/_38.prx
|
503
|
+
- spec/dummy/solr/data/test/index/_38.tii
|
504
|
+
- spec/dummy/solr/data/test/index/_38.tis
|
505
505
|
- spec/dummy/solr/data/test/index/segments.gen
|
506
|
-
- spec/dummy/solr/data/test/index/
|
506
|
+
- spec/dummy/solr/data/test/index/segments_7f
|
507
507
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
508
508
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
509
509
|
- spec/factories/bookstore.rb
|
@@ -569,6 +569,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
569
569
|
- - ! '>='
|
570
570
|
- !ruby/object:Gem::Version
|
571
571
|
version: '0'
|
572
|
+
segments:
|
573
|
+
- 0
|
574
|
+
hash: 2374458796314622470
|
572
575
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
573
576
|
none: false
|
574
577
|
requirements:
|
@@ -701,16 +704,16 @@ test_files:
|
|
701
704
|
- spec/dummy/solr/conf/spellings.txt
|
702
705
|
- spec/dummy/solr/conf/stopwords.txt
|
703
706
|
- spec/dummy/solr/conf/synonyms.txt
|
704
|
-
- spec/dummy/solr/data/test/index/
|
705
|
-
- spec/dummy/solr/data/test/index/
|
706
|
-
- spec/dummy/solr/data/test/index/
|
707
|
-
- spec/dummy/solr/data/test/index/
|
708
|
-
- spec/dummy/solr/data/test/index/
|
709
|
-
- spec/dummy/solr/data/test/index/
|
710
|
-
- spec/dummy/solr/data/test/index/
|
711
|
-
- spec/dummy/solr/data/test/index/
|
707
|
+
- spec/dummy/solr/data/test/index/_38.fdt
|
708
|
+
- spec/dummy/solr/data/test/index/_38.fdx
|
709
|
+
- spec/dummy/solr/data/test/index/_38.fnm
|
710
|
+
- spec/dummy/solr/data/test/index/_38.frq
|
711
|
+
- spec/dummy/solr/data/test/index/_38.nrm
|
712
|
+
- spec/dummy/solr/data/test/index/_38.prx
|
713
|
+
- spec/dummy/solr/data/test/index/_38.tii
|
714
|
+
- spec/dummy/solr/data/test/index/_38.tis
|
712
715
|
- spec/dummy/solr/data/test/index/segments.gen
|
713
|
-
- spec/dummy/solr/data/test/index/
|
716
|
+
- spec/dummy/solr/data/test/index/segments_7f
|
714
717
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
715
718
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
716
719
|
- spec/factories/bookstore.rb
|
Binary file
|