enju_biblio 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/README.rdoc +2 -2
  2. data/app/models/country.rb +1 -1
  3. data/app/models/language.rb +1 -1
  4. data/lib/enju_biblio/version.rb +1 -1
  5. data/spec/cassette_library/enju_ndl/manifestation.yml +10 -10
  6. data/spec/cassette_library/enju_ndl/ndl_search.yml +18 -18
  7. data/spec/controllers/items_controller_spec.rb +4 -0
  8. data/spec/controllers/manifestations_controller_spec.rb +4 -0
  9. data/spec/controllers/patrons_controller_spec.rb +4 -0
  10. data/spec/controllers/series_statements_controller_spec.rb +4 -0
  11. data/spec/dummy/config/locales/en.yml +207 -4
  12. data/spec/dummy/config/locales/ja.yml +186 -135
  13. data/spec/dummy/db/schema.rb +1 -4
  14. data/spec/dummy/db/test.sqlite3 +0 -0
  15. data/spec/dummy/solr/conf/schema.xml +1 -7
  16. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  17. data/spec/dummy/solr/data/test/index/segments_n6 +0 -0
  18. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  19. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  20. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  21. data/spec/models/manifestation_spec.rb +3 -0
  22. data/spec/spec_helper.rb +1 -1
  23. metadata +8 -30
  24. data/spec/dummy/config/locales/active_support_en.yml +0 -36
  25. data/spec/dummy/db/development.sqlite3 +0 -0
  26. data/spec/dummy/solr/data/test/index/_j.fdt +0 -0
  27. data/spec/dummy/solr/data/test/index/_j.fdx +0 -0
  28. data/spec/dummy/solr/data/test/index/_j.fnm +0 -5
  29. data/spec/dummy/solr/data/test/index/_j.frq +0 -0
  30. data/spec/dummy/solr/data/test/index/_j.nrm +0 -1
  31. data/spec/dummy/solr/data/test/index/_j.prx +0 -0
  32. data/spec/dummy/solr/data/test/index/_j.tii +0 -0
  33. data/spec/dummy/solr/data/test/index/_j.tis +0 -0
  34. data/spec/dummy/solr/data/test/index/_j_1.del +0 -0
  35. data/spec/dummy/solr/data/test/index/segments_1g +0 -0
data/README.rdoc CHANGED
@@ -1,3 +1,3 @@
1
- = EnjuBiblio
1
+ = EnjuBiblio {<img src="https://secure.travis-ci.org/next-l/enju_biblio.png?branch=master" alt="Build Status" />}[http://travis-ci.org/next-l/enju_biblio]
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ This project rocks and uses MIT-LICENSE.
@@ -21,7 +21,7 @@ class Country < ActiveRecord::Base
21
21
  after_destroy :clear_all_cache
22
22
 
23
23
  def self.all_cache
24
- Rails.cache.fetch('country_all'){Country.all}
24
+ Rails.cache.fetch('country_all'){Country.all.to_a}
25
25
  end
26
26
 
27
27
  def clear_all_cache
@@ -15,7 +15,7 @@ class Language < ActiveRecord::Base
15
15
 
16
16
  def self.all_cache
17
17
  if Rails.env == 'production'
18
- Rails.cache.fetch('language_all'){Language.all}
18
+ Rails.cache.fetch('language_all'){Language.all.to_a}
19
19
  else
20
20
  Language.all
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  date:
20
- - Sat, 02 Jun 2012 13:40:23 GMT
20
+ - Fri, 01 Jun 2012 00:05:07 GMT
21
21
  server:
22
22
  - Apache
23
23
  x-powered-by:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  x-ua-compatible:
28
28
  - IE=Edge,chrome=1
29
29
  x-runtime:
30
- - "0.153323"
30
+ - "0.224538"
31
31
  cache-control:
32
32
  - max-age=0, private, must-revalidate
33
33
  content-length:
@@ -37,8 +37,8 @@ http_interactions:
37
37
  content-type:
38
38
  - application/xml; charset=utf-8
39
39
  set-cookie:
40
- - _front_session_id=726567f43b738891cd20529045366623; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 14:40:23 GMT; HttpOnly
41
- - serverid=1105; path=/
40
+ - _front_session_id=7d526ab7c3f484c682b7ee59096e66bf; domain=.iss.ndl.go.jp; path=/; expires=Fri, 01-Jun-2012 01:05:07 GMT; HttpOnly
41
+ - serverid=1102; path=/
42
42
  vary:
43
43
  - Accept-Encoding,User-Agent
44
44
  connection:
@@ -102,7 +102,7 @@ http_interactions:
102
102
  ZGVzY3JpcHRpb24+CiAgICA8L2l0ZW0+CiAgPC9jaGFubmVsPgo8L3Jzcz4K
103
103
 
104
104
  http_version: "1.0"
105
- recorded_at: Sat, 02 Jun 2012 13:40:23 GMT
105
+ recorded_at: Fri, 01 Jun 2012 00:05:08 GMT
106
106
  - request:
107
107
  method: get
108
108
  uri: http://iss.ndl.go.jp/books/R100000002-I000007602726-00.rdf
@@ -120,7 +120,7 @@ http_interactions:
120
120
  message: OK
121
121
  headers:
122
122
  date:
123
- - Sat, 02 Jun 2012 13:40:23 GMT
123
+ - Fri, 01 Jun 2012 00:05:08 GMT
124
124
  server:
125
125
  - Apache
126
126
  x-powered-by:
@@ -130,7 +130,7 @@ http_interactions:
130
130
  x-ua-compatible:
131
131
  - IE=Edge,chrome=1
132
132
  x-runtime:
133
- - "0.886560"
133
+ - "0.406517"
134
134
  cache-control:
135
135
  - max-age=0, private, must-revalidate
136
136
  content-length:
@@ -140,8 +140,8 @@ http_interactions:
140
140
  content-type:
141
141
  - application/rdf+xml; charset=utf-8
142
142
  set-cookie:
143
- - _front_session_id=f2df568d1169394863f7ae3973585aa4; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 14:40:24 GMT; HttpOnly
144
- - serverid=1101; path=/
143
+ - _front_session_id=27b1944a32962a13f3e8284d0e281ea8; domain=.iss.ndl.go.jp; path=/; expires=Fri, 01-Jun-2012 01:05:08 GMT; HttpOnly
144
+ - serverid=1105; path=/
145
145
  vary:
146
146
  - Accept-Encoding,User-Agent
147
147
  connection:
@@ -519,5 +519,5 @@ http_interactions:
519
519
  dGlvbj4KICA8L2RjbmRsOkl0ZW0+CjwvcmRmOlJERj4=
520
520
 
521
521
  http_version: "1.0"
522
- recorded_at: Sat, 02 Jun 2012 13:40:24 GMT
522
+ recorded_at: Fri, 01 Jun 2012 00:05:08 GMT
523
523
  recorded_with: VCR 2.2.0
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  date:
20
- - Sat, 02 Jun 2012 14:18:10 GMT
20
+ - Wed, 06 Jun 2012 00:47:18 GMT
21
21
  server:
22
22
  - Apache
23
23
  x-powered-by:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  x-ua-compatible:
28
28
  - IE=Edge,chrome=1
29
29
  x-runtime:
30
- - "0.159388"
30
+ - "0.159748"
31
31
  cache-control:
32
32
  - max-age=0, private, must-revalidate
33
33
  content-length:
@@ -37,7 +37,7 @@ http_interactions:
37
37
  content-type:
38
38
  - application/xml; charset=utf-8
39
39
  set-cookie:
40
- - _front_session_id=5170aa59dc71a4b1408f4b5001e315c3; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 15:18:10 GMT; HttpOnly
40
+ - _front_session_id=6cbce8417ee4d4abc56ba0833e296639; domain=.iss.ndl.go.jp; path=/; expires=Wed, 06-Jun-2012 01:47:18 GMT; HttpOnly
41
41
  - serverid=1105; path=/
42
42
  vary:
43
43
  - Accept-Encoding,User-Agent
@@ -103,7 +103,7 @@ http_interactions:
103
103
  dGlvbj4KICAgIDwvaXRlbT4KICA8L2NoYW5uZWw+CjwvcnNzPgo=
104
104
 
105
105
  http_version: "1.0"
106
- recorded_at: Sat, 02 Jun 2012 14:18:10 GMT
106
+ recorded_at: Wed, 06 Jun 2012 00:47:20 GMT
107
107
  - request:
108
108
  method: get
109
109
  uri: http://iss.ndl.go.jp/books/R100000002-I000009423883-00.rdf
@@ -121,7 +121,7 @@ http_interactions:
121
121
  message: OK
122
122
  headers:
123
123
  date:
124
- - Sat, 02 Jun 2012 14:18:10 GMT
124
+ - Wed, 06 Jun 2012 00:47:19 GMT
125
125
  server:
126
126
  - Apache
127
127
  x-powered-by:
@@ -131,7 +131,7 @@ http_interactions:
131
131
  x-ua-compatible:
132
132
  - IE=Edge,chrome=1
133
133
  x-runtime:
134
- - "0.836118"
134
+ - "0.744922"
135
135
  cache-control:
136
136
  - max-age=0, private, must-revalidate
137
137
  content-length:
@@ -141,7 +141,7 @@ http_interactions:
141
141
  content-type:
142
142
  - application/rdf+xml; charset=utf-8
143
143
  set-cookie:
144
- - _front_session_id=b364b1688e10e7bf73c43a9bacc873f3; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 15:18:11 GMT; HttpOnly
144
+ - _front_session_id=fef35c7dea106d383888b8651402db4c; domain=.iss.ndl.go.jp; path=/; expires=Wed, 06-Jun-2012 01:47:19 GMT; HttpOnly
145
145
  - serverid=1102; path=/
146
146
  vary:
147
147
  - Accept-Encoding,User-Agent
@@ -574,7 +574,7 @@ http_interactions:
574
574
  Y3JpcHRpb24+CiAgPC9kY25kbDpJdGVtPgo8L3JkZjpSREY+
575
575
 
576
576
  http_version: "1.0"
577
- recorded_at: Sat, 02 Jun 2012 14:18:11 GMT
577
+ recorded_at: Wed, 06 Jun 2012 00:47:21 GMT
578
578
  - request:
579
579
  method: get
580
580
  uri: http://iss.ndl.go.jp/api/opensearch?dpid=iss-ndl-opac&isbn=9784873114422&cnt=10&idx=1
@@ -592,7 +592,7 @@ http_interactions:
592
592
  message: OK
593
593
  headers:
594
594
  date:
595
- - Sat, 02 Jun 2012 15:28:30 GMT
595
+ - Thu, 07 Jun 2012 12:39:42 GMT
596
596
  server:
597
597
  - Apache
598
598
  x-powered-by:
@@ -602,7 +602,7 @@ http_interactions:
602
602
  x-ua-compatible:
603
603
  - IE=Edge,chrome=1
604
604
  x-runtime:
605
- - "0.086686"
605
+ - "0.118518"
606
606
  cache-control:
607
607
  - max-age=0, private, must-revalidate
608
608
  content-length:
@@ -612,8 +612,8 @@ http_interactions:
612
612
  content-type:
613
613
  - application/xml; charset=utf-8
614
614
  set-cookie:
615
- - _front_session_id=dfdbd2213e07e3aa4dbb75a35d02e1da; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 16:28:30 GMT; HttpOnly
616
- - serverid=1101; path=/
615
+ - _front_session_id=5bf7f7538d18506400e1081810dc1c1c; domain=.iss.ndl.go.jp; path=/; expires=Thu, 07-Jun-2012 13:39:42 GMT; HttpOnly
616
+ - serverid=1102; path=/
617
617
  vary:
618
618
  - Accept-Encoding,User-Agent
619
619
  connection:
@@ -679,7 +679,7 @@ http_interactions:
679
679
  Y3JpcHRpb24+CiAgICA8L2l0ZW0+CiAgPC9jaGFubmVsPgo8L3Jzcz4K
680
680
 
681
681
  http_version: "1.0"
682
- recorded_at: Sat, 02 Jun 2012 15:28:30 GMT
682
+ recorded_at: Thu, 07 Jun 2012 12:39:43 GMT
683
683
  - request:
684
684
  method: get
685
685
  uri: http://iss.ndl.go.jp/books/R100000002-I000010712584-00.rdf
@@ -697,7 +697,7 @@ http_interactions:
697
697
  message: OK
698
698
  headers:
699
699
  date:
700
- - Sat, 02 Jun 2012 15:28:30 GMT
700
+ - Thu, 07 Jun 2012 12:39:42 GMT
701
701
  server:
702
702
  - Apache
703
703
  x-powered-by:
@@ -707,7 +707,7 @@ http_interactions:
707
707
  x-ua-compatible:
708
708
  - IE=Edge,chrome=1
709
709
  x-runtime:
710
- - "0.892157"
710
+ - "0.918968"
711
711
  cache-control:
712
712
  - max-age=0, private, must-revalidate
713
713
  content-length:
@@ -717,8 +717,8 @@ http_interactions:
717
717
  content-type:
718
718
  - application/rdf+xml; charset=utf-8
719
719
  set-cookie:
720
- - _front_session_id=26fdffc6b12b561c67c3656670a6d93c; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 16:28:31 GMT; HttpOnly
721
- - serverid=1101; path=/
720
+ - _front_session_id=0ea752e083d0c700c523bbee26d499fc; domain=.iss.ndl.go.jp; path=/; expires=Thu, 07-Jun-2012 13:39:43 GMT; HttpOnly
721
+ - serverid=1105; path=/
722
722
  vary:
723
723
  - Accept-Encoding,User-Agent
724
724
  connection:
@@ -1136,5 +1136,5 @@ http_interactions:
1136
1136
  PC9yZGY6UkRGPg==
1137
1137
 
1138
1138
  http_version: "1.0"
1139
- recorded_at: Sat, 02 Jun 2012 15:28:31 GMT
1139
+ recorded_at: Thu, 07 Jun 2012 12:39:44 GMT
1140
1140
  recorded_with: VCR 2.2.0
@@ -9,6 +9,10 @@ describe ItemsController do
9
9
  end
10
10
 
11
11
  describe "GET index", :solr => true do
12
+ before do
13
+ Item.reindex
14
+ end
15
+
12
16
  describe "When logged in as Administrator" do
13
17
  login_admin
14
18
 
@@ -8,6 +8,10 @@ describe ManifestationsController do
8
8
  end
9
9
 
10
10
  describe "GET index", :solr => true do
11
+ before do
12
+ Manifestation.reindex
13
+ end
14
+
11
15
  describe "When logged in as Administrator" do
12
16
  login_admin
13
17
 
@@ -8,6 +8,10 @@ describe PatronsController do
8
8
  end
9
9
 
10
10
  describe "GET index", :solr => true do
11
+ before do
12
+ Patron.reindex
13
+ end
14
+
11
15
  describe "When logged in as Administrator" do
12
16
  login_fixture_admin
13
17
 
@@ -8,6 +8,10 @@ describe SeriesStatementsController do
8
8
  end
9
9
 
10
10
  describe "GET index", :solr => true do
11
+ before do
12
+ SeriesStatement.reindex
13
+ end
14
+
11
15
  describe "When logged in as Administrator" do
12
16
  login_fixture_admin
13
17
 
@@ -1,5 +1,208 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
1
  en:
5
- hello: "Hello world"
2
+ date:
3
+ abbr_day_names:
4
+ - Sun
5
+ - Mon
6
+ - Tue
7
+ - Wed
8
+ - Thu
9
+ - Fri
10
+ - Sat
11
+ abbr_month_names:
12
+ -
13
+ - Jan
14
+ - Feb
15
+ - Mar
16
+ - Apr
17
+ - May
18
+ - Jun
19
+ - Jul
20
+ - Aug
21
+ - Sep
22
+ - Oct
23
+ - Nov
24
+ - Dec
25
+ day_names:
26
+ - Sunday
27
+ - Monday
28
+ - Tuesday
29
+ - Wednesday
30
+ - Thursday
31
+ - Friday
32
+ - Saturday
33
+ formats:
34
+ default: ! '%Y-%m-%d'
35
+ long: ! '%B %d, %Y'
36
+ short: ! '%b %d'
37
+ month_names:
38
+ -
39
+ - January
40
+ - February
41
+ - March
42
+ - April
43
+ - May
44
+ - June
45
+ - July
46
+ - August
47
+ - September
48
+ - October
49
+ - November
50
+ - December
51
+ order:
52
+ - :year
53
+ - :month
54
+ - :day
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: about 1 hour
59
+ other: about %{count} hours
60
+ about_x_months:
61
+ one: about 1 month
62
+ other: about %{count} months
63
+ about_x_years:
64
+ one: about 1 year
65
+ other: about %{count} years
66
+ almost_x_years:
67
+ one: almost 1 year
68
+ other: almost %{count} years
69
+ half_a_minute: half a minute
70
+ less_than_x_minutes:
71
+ one: less than a minute
72
+ other: less than %{count} minutes
73
+ less_than_x_seconds:
74
+ one: less than 1 second
75
+ other: less than %{count} seconds
76
+ over_x_years:
77
+ one: over 1 year
78
+ other: over %{count} years
79
+ x_days:
80
+ one: 1 day
81
+ other: ! '%{count} days'
82
+ x_minutes:
83
+ one: 1 minute
84
+ other: ! '%{count} minutes'
85
+ x_months:
86
+ one: 1 month
87
+ other: ! '%{count} months'
88
+ x_seconds:
89
+ one: 1 second
90
+ other: ! '%{count} seconds'
91
+ prompts:
92
+ day: Day
93
+ hour: Hour
94
+ minute: Minute
95
+ month: Month
96
+ second: Seconds
97
+ year: Year
98
+ errors: &errors
99
+ format: ! '%{attribute} %{message}'
100
+ messages:
101
+ accepted: must be accepted
102
+ blank: can't be blank
103
+ confirmation: doesn't match confirmation
104
+ empty: can't be empty
105
+ equal_to: must be equal to %{count}
106
+ even: must be even
107
+ exclusion: is reserved
108
+ greater_than: must be greater than %{count}
109
+ greater_than_or_equal_to: must be greater than or equal to %{count}
110
+ inclusion: is not included in the list
111
+ invalid: is invalid
112
+ less_than: must be less than %{count}
113
+ less_than_or_equal_to: must be less than or equal to %{count}
114
+ not_a_number: is not a number
115
+ not_an_integer: must be an integer
116
+ odd: must be odd
117
+ record_invalid: ! 'Validation failed: %{errors}'
118
+ taken: has already been taken
119
+ too_long:
120
+ one: is too long (maximum is 1 character)
121
+ other: is too long (maximum is %{count} characters)
122
+ too_short:
123
+ one: is too short (minimum is 1 character)
124
+ other: is too short (minimum is %{count} characters)
125
+ wrong_length:
126
+ one: is the wrong length (should be 1 character)
127
+ other: is the wrong length (should be %{count} characters)
128
+ template:
129
+ body: ! 'There were problems with the following fields:'
130
+ header:
131
+ one: 1 error prohibited this %{model} from being saved
132
+ other: ! '%{count} errors prohibited this %{model} from being saved'
133
+ helpers:
134
+ select:
135
+ prompt: Please select
136
+ submit:
137
+ create: Create %{model}
138
+ submit: Save %{model}
139
+ update: Update %{model}
140
+ number:
141
+ currency:
142
+ format:
143
+ delimiter: ! ','
144
+ format: ! '%u%n'
145
+ precision: 2
146
+ separator: .
147
+ significant: false
148
+ strip_insignificant_zeros: false
149
+ unit: $
150
+ format:
151
+ delimiter: ! ','
152
+ precision: 3
153
+ separator: .
154
+ significant: false
155
+ strip_insignificant_zeros: false
156
+ human:
157
+ decimal_units:
158
+ format: ! '%n %u'
159
+ units:
160
+ billion: Billion
161
+ million: Million
162
+ quadrillion: Quadrillion
163
+ thousand: Thousand
164
+ trillion: Trillion
165
+ unit: ''
166
+ format:
167
+ delimiter: ''
168
+ precision: 3
169
+ significant: true
170
+ strip_insignificant_zeros: true
171
+ storage_units:
172
+ format: ! '%n %u'
173
+ units:
174
+ byte:
175
+ one: Byte
176
+ other: Bytes
177
+ gb: GB
178
+ kb: KB
179
+ mb: MB
180
+ tb: TB
181
+ percentage:
182
+ format:
183
+ delimiter: ''
184
+ precision:
185
+ format:
186
+ delimiter: ''
187
+ support:
188
+ array:
189
+ last_word_connector: ! ', and '
190
+ two_words_connector: ! ' and '
191
+ words_connector: ! ', '
192
+ time:
193
+ am: am
194
+ formats:
195
+ default: ! '%a, %d %b %Y %H:%M:%S %z'
196
+ long: ! '%B %d, %Y %H:%M'
197
+ short: ! '%d %b %H:%M'
198
+ only_date: "%b %d, %Y"
199
+ only_year_and_month: "%m %Y"
200
+ only_month: "%m"
201
+ pm: pm
202
+ # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
203
+ activemodel:
204
+ errors:
205
+ <<: *errors
206
+ activerecord:
207
+ errors:
208
+ <<: *errors
@@ -1,149 +1,200 @@
1
- # Japanese translations for Ruby on Rails
2
- # by Akira Matsuda (ronnie@dio.jp)
3
- # AR error messages are basically taken from Ruby-GetText-Package. Thanks to Masao Mutoh.
4
-
5
1
  ja:
6
- helpers:
7
- submit:
8
- create: "%{model}を作成"
9
- update: "%{model}を更新"
10
2
  date:
3
+ abbr_day_names:
4
+ - 日
5
+ - 月
6
+ - 火
7
+ - 水
8
+ - 木
9
+ - 金
10
+ - 土
11
+ abbr_month_names:
12
+ -
13
+ - 1月
14
+ - 2月
15
+ - 3月
16
+ - 4月
17
+ - 5月
18
+ - 6月
19
+ - 7月
20
+ - 8月
21
+ - 9月
22
+ - 10月
23
+ - 11月
24
+ - 12月
25
+ day_names:
26
+ - 日曜日
27
+ - 月曜日
28
+ - 火曜日
29
+ - 水曜日
30
+ - 木曜日
31
+ - 金曜日
32
+ - 土曜日
11
33
  formats:
12
- default: "%Y/%m/%d"
13
- short: "%m/%d"
14
- long: "%Y年%m月%d日(%a)"
15
-
16
- day_names: [日曜日, 月曜日, 火曜日, 水曜日, 木曜日, 金曜日, 土曜日]
17
- abbr_day_names: [日, 月, 火, 水, 木, 金, 土]
18
-
19
- month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12]
20
- abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12]
21
-
22
- order: [:year, :month, :day]
23
-
24
- time:
25
- formats:
26
- default: "%Y/%m/%d %H:%M:%S"
27
- short: "%y/%m/%d %H:%M"
28
- long: "%Y年%m月%d日(%a) %H時%M分%S秒 %Z"
29
- only_date: "%Y年%m月%d日"
30
- only_year_and_month: "%Y年%m月"
31
- only_month: "%m月"
32
- am: "午前"
33
- pm: "午後"
34
-
35
- support:
36
- array:
37
- sentence_connector: ""
38
- skip_last_comma: true
39
- words_connector: ""
40
- two_words_connector: ""
41
- last_word_connector: ""
42
-
34
+ default: ! '%Y/%m/%d'
35
+ long: ! '%Y年%m月%d日(%a)'
36
+ short: ! '%m/%d'
37
+ month_names:
38
+ -
39
+ - 1月
40
+ - 2月
41
+ - 3月
42
+ - 4月
43
+ - 5月
44
+ - 6月
45
+ - 7月
46
+ - 8月
47
+ - 9月
48
+ - 10月
49
+ - 11月
50
+ - 12月
51
+ order:
52
+ - :year
53
+ - :month
54
+ - :day
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: 約1時間
59
+ other: 約%{count}時間
60
+ about_x_months:
61
+ one: 約1ヶ月
62
+ other: 約%{count}ヶ月
63
+ about_x_years:
64
+ one: 約1年
65
+ other: 約%{count}年
66
+ almost_x_years:
67
+ one: 1年弱
68
+ other: ! '%{count}年弱'
69
+ half_a_minute: 30秒前後
70
+ less_than_x_minutes:
71
+ one: 1分以内
72
+ other: ! '%{count}分以内'
73
+ less_than_x_seconds:
74
+ one: 1秒以内
75
+ other: ! '%{count}秒以内'
76
+ over_x_years:
77
+ one: 1年以上
78
+ other: ! '%{count}年以上'
79
+ x_days:
80
+ one: 1日
81
+ other: ! '%{count}日'
82
+ x_minutes:
83
+ one: 1分
84
+ other: ! '%{count}分'
85
+ x_months:
86
+ one: 1ヶ月
87
+ other: ! '%{count}ヶ月'
88
+ x_seconds:
89
+ one: 1秒
90
+ other: ! '%{count}秒'
91
+ prompts:
92
+ day: 日
93
+ hour: 時
94
+ minute: 分
95
+ month: 月
96
+ second: 秒
97
+ year: 年
98
+ errors: &errors
99
+ format: ! '%{attribute}%{message}'
100
+ messages:
101
+ accepted: を受諾してください。
102
+ blank: を入力してください。
103
+ confirmation: と確認の入力が一致しません。
104
+ empty: を入力してください。
105
+ equal_to: は%{count}にしてください。
106
+ even: は偶数にしてください。
107
+ exclusion: は予約されています。
108
+ greater_than: は%{count}より大きい値にしてください。
109
+ greater_than_or_equal_to: は%{count}以上の値にしてください。
110
+ inclusion: は一覧にありません。
111
+ invalid: は不正な値です。
112
+ less_than: は%{count}より小さい値にしてください。
113
+ less_than_or_equal_to: は%{count}以下の値にしてください。
114
+ not_a_number: は数値で入力してください。
115
+ not_an_integer: は整数で入力してください。
116
+ odd: は奇数にしてください。
117
+ record_invalid: バリデーションに失敗しました。 %{errors}
118
+ taken: はすでに存在します。
119
+ too_long: は%{count}文字以内で入力してください。
120
+ too_short: は%{count}文字以上で入力してください。
121
+ wrong_length: は%{count}文字で入力してください。
122
+ template:
123
+ body: 次の項目を確認してください。
124
+ header:
125
+ one: ! '%{model}にエラーが発生しました。'
126
+ other: ! '%{model}に%{count}つのエラーが発生しました。'
127
+ helpers:
43
128
  select:
44
- prompt: "選択してください。"
45
-
129
+ prompt: 選択してください。
130
+ submit:
131
+ create: 登録する
132
+ submit: 保存する
133
+ update: 更新する
46
134
  number:
47
- format:
48
- separator: "."
49
- delimiter: ","
50
- precision: 3
51
-
52
135
  currency:
53
136
  format:
54
- format: "%n%u"
55
- unit: "円"
56
- separator: "."
57
- delimiter: ","
137
+ delimiter: ! ','
138
+ format: ! '%n%u'
58
139
  precision: 0
59
-
60
- percentage:
61
- format:
62
- delimiter: ""
63
-
64
- precision:
65
- format:
66
- delimiter: ""
67
-
140
+ separator: .
141
+ significant: false
142
+ strip_insignificant_zeros: false
143
+ unit:
144
+ format:
145
+ delimiter: ! ','
146
+ precision: 3
147
+ separator: .
148
+ significant: false
149
+ strip_insignificant_zeros: false
68
150
  human:
151
+ decimal_units:
152
+ format: ! '%n %u'
153
+ units:
154
+ billion: 十億
155
+ million: 百万
156
+ quadrillion: 千兆
157
+ thousand: 千
158
+ trillion: 兆
159
+ unit: ''
69
160
  format:
70
- delimiter: ""
71
- precision: 1
161
+ delimiter: ''
162
+ precision: 3
163
+ significant: true
164
+ strip_insignificant_zeros: true
72
165
  storage_units:
73
- format: "%n%u"
166
+ format: ! '%n%u'
74
167
  units:
75
- byte: "バイト"
76
- kb: "キロバイト"
77
- mb: "メガバイト"
78
- gb: "ギガバイト"
79
- tb: "テラバイト"
80
-
81
- datetime:
82
- distance_in_words:
83
- half_a_minute: "30秒前後"
84
- less_than_x_seconds:
85
- one: "1秒以内"
86
- other: "%{count}秒以内"
87
- x_seconds:
88
- one: "1秒"
89
- other: "%{count}秒"
90
- less_than_x_minutes:
91
- one: "1分以内"
92
- other: "%{count}分以内"
93
- x_minutes:
94
- one: "1分"
95
- other: "%{count}分"
96
- about_x_hours:
97
- one: "約1時間"
98
- other: "約%{count}時間"
99
- x_days:
100
- one: "1日"
101
- other: "%{count}日"
102
- about_x_months:
103
- one: "約1ヶ月"
104
- other: "約%{count}ヶ月"
105
- x_months:
106
- one: "1ヶ月"
107
- other: "%{count}ヶ月"
108
- about_x_years:
109
- one: "約%{count}年"
110
- other: "約%{count}年"
111
- over_x_years:
112
- one: "%{count}年以上"
113
- other: "%{count}年以上"
114
-
168
+ byte: バイト
169
+ gb: ギガバイト
170
+ kb: キロバイト
171
+ mb: メガバイト
172
+ tb: テラバイト
173
+ percentage:
174
+ format:
175
+ delimiter: ''
176
+ precision:
177
+ format:
178
+ delimiter: ''
179
+ support:
180
+ array:
181
+ last_word_connector:
182
+ two_words_connector:
183
+ words_connector:
184
+ time:
185
+ am: 午前
186
+ formats:
187
+ default: ! '%Y/%m/%d %H:%M:%S'
188
+ long: ! '%Y年%m月%d日(%a) %H時%M分%S秒 %z'
189
+ short: ! '%y/%m/%d %H:%M'
190
+ only_date: "%Y年%m月%d日"
191
+ only_year_and_month: "%Y年%m月"
192
+ only_month: "%m月"
193
+ pm: 午後
194
+ # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
195
+ activemodel:
196
+ errors:
197
+ <<: *errors
115
198
  activerecord:
116
199
  errors:
117
- template:
118
- header:
119
- #one: "%{model}にエラーが発生しました。"
120
- #other: "%{model}に%{count}つのエラーが発生しました。"
121
- # authlogicでuser_sessionのtranslateができないため
122
- one: "エラーが発生しました。"
123
- other: "%{count}つのエラーが発生しました。"
124
- body: "次の項目を確認してください。"
125
-
126
- messages:
127
- inclusion: "は一覧にありません。"
128
- exclusion: "は予約されています。"
129
- invalid: "は不正な値です。"
130
- confirmation: "が一致しません。"
131
- accepted: "を受諾してください。"
132
- empty: "を入力してください。"
133
- blank: "を入力してください。"
134
- too_long: "は%{count}文字以内で入力してください。"
135
- too_short: "は%{count}文字以上で入力してください。"
136
- wrong_length: "は%{count}文字で入力してください。"
137
- taken: "はすでに存在します。"
138
- not_a_number: "は数値で入力してください。"
139
- greater_than: "は%{count}より大きい値にしてください。"
140
- greater_than_or_equal_to: "は%{count}以上の値にしてください。"
141
- equal_to: "は%{count}にしてください。"
142
- less_than: "は%{count}より小さい値にしてください。"
143
- less_than_or_equal_to: "は%{count}以下の値にしてください。"
144
- odd: "は奇数にしてください。"
145
- even: "は偶数にしてください。"
146
- record_invalid: "バリデーションに失敗しました。 %{errors}"
147
-
148
- full_messages:
149
- format: "%{attribute}%{message}"
200
+ <<: *errors
@@ -687,7 +687,7 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
687
687
  t.text "title", :null => false
688
688
  t.text "body", :null => false
689
689
  t.integer "position"
690
- t.string "locale", :default => "en"
690
+ t.string "locale", :default => "ja"
691
691
  t.datetime "created_at", :null => false
692
692
  t.datetime "updated_at", :null => false
693
693
  end
@@ -739,7 +739,6 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
739
739
 
740
740
  create_table "patron_import_files", :force => true do |t|
741
741
  t.integer "parent_id"
742
- t.string "filename"
743
742
  t.string "content_type"
744
743
  t.integer "size"
745
744
  t.integer "user_id"
@@ -862,7 +861,6 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
862
861
  t.string "picture_attachable_type"
863
862
  t.string "content_type"
864
863
  t.text "title"
865
- t.text "filename"
866
864
  t.string "thumbnail"
867
865
  t.integer "position"
868
866
  t.datetime "created_at", :null => false
@@ -982,7 +980,6 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
982
980
 
983
981
  create_table "resource_import_files", :force => true do |t|
984
982
  t.integer "parent_id"
985
- t.string "filename"
986
983
  t.string "content_type"
987
984
  t.integer "size"
988
985
  t.integer "user_id"
Binary file
@@ -60,12 +60,7 @@
60
60
  <fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
61
61
  <!-- *** This fieldType is used by Sunspot! *** -->
62
62
  <fieldType name="text" class="solr.TextField" omitNorms="false">
63
- <analyzer type="index" class="org.apache.lucene.analysis.cjk.CJKAnalyzer">
64
- <tokenizer class="solr.StandardTokenizerFactory"/>
65
- <filter class="solr.StandardFilterFactory"/>
66
- <filter class="solr.LowerCaseFilterFactory"/>
67
- </analyzer>
68
- <analyzer type="query" class="org.apache.lucene.analysis.cjk.CJKAnalyzer">
63
+ <analyzer>
69
64
  <tokenizer class="solr.StandardTokenizerFactory"/>
70
65
  <filter class="solr.StandardFilterFactory"/>
71
66
  <filter class="solr.LowerCaseFilterFactory"/>
@@ -240,5 +235,4 @@
240
235
  <!-- copyField commands copy one field to another at the time a document
241
236
  is added to the index. It's used either to index the same field differently,
242
237
  or to add multiple fields to the same field for easier/faster searching. -->
243
- <copyField source="*_text" dest="text" />
244
238
  </schema>
@@ -4,6 +4,9 @@ require 'spec_helper'
4
4
  describe Manifestation, :solr => true do
5
5
  fixtures :all
6
6
  use_vcr_cassette "enju_ndl/manifestation", :record => :new_episodes
7
+ before do
8
+ Manifestation.reindex
9
+ end
7
10
 
8
11
  it "should set year_of_publication" do
9
12
  manifestation = FactoryGirl.create(:manifestation, :pub_date => '2000')
data/spec/spec_helper.rb CHANGED
@@ -46,7 +46,7 @@ RSpec.configure do |config|
46
46
  config.before :each, :solr => true do
47
47
  Sunspot::Rails::Tester.start_original_sunspot_session
48
48
  Sunspot.session = $original_sunspot_session
49
- #Sunspot.remove_all!
49
+ Sunspot.remove_all!
50
50
  end
51
51
  end
52
52
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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-07-18 00:00:00.000000000 Z
12
+ date: 2012-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -370,7 +370,7 @@ dependencies:
370
370
  requirements:
371
371
  - - ~>
372
372
  - !ruby/object:Gem::Version
373
- version: 2.0.0.pre.120417
373
+ version: 2.0.0.pre.120720
374
374
  type: :development
375
375
  prerelease: false
376
376
  version_requirements: !ruby/object:Gem::Requirement
@@ -378,7 +378,7 @@ dependencies:
378
378
  requirements:
379
379
  - - ~>
380
380
  - !ruby/object:Gem::Version
381
- version: 2.0.0.pre.120417
381
+ version: 2.0.0.pre.120720
382
382
  - !ruby/object:Gem::Dependency
383
383
  name: enju_circulation
384
384
  requirement: !ruby/object:Gem::Requirement
@@ -386,7 +386,7 @@ dependencies:
386
386
  requirements:
387
387
  - - ~>
388
388
  - !ruby/object:Gem::Version
389
- version: 0.0.56
389
+ version: 0.0.70
390
390
  type: :development
391
391
  prerelease: false
392
392
  version_requirements: !ruby/object:Gem::Requirement
@@ -394,7 +394,7 @@ dependencies:
394
394
  requirements:
395
395
  - - ~>
396
396
  - !ruby/object:Gem::Version
397
- version: 0.0.56
397
+ version: 0.0.70
398
398
  - !ruby/object:Gem::Dependency
399
399
  name: enju_inventory
400
400
  requirement: !ruby/object:Gem::Requirement
@@ -1007,12 +1007,10 @@ files:
1007
1007
  - spec/dummy/config/initializers/secret_token.rb
1008
1008
  - spec/dummy/config/initializers/session_store.rb
1009
1009
  - spec/dummy/config/initializers/wrap_parameters.rb
1010
- - spec/dummy/config/locales/active_support_en.yml
1011
1010
  - spec/dummy/config/locales/en.yml
1012
1011
  - spec/dummy/config/locales/ja.yml
1013
1012
  - spec/dummy/config/routes.rb
1014
1013
  - spec/dummy/config.ru
1015
- - spec/dummy/db/development.sqlite3
1016
1014
  - spec/dummy/db/migrate/032_create_checkins.rb
1017
1015
  - spec/dummy/db/migrate/033_create_checkouts.rb
1018
1016
  - spec/dummy/db/migrate/035_create_reserves.rb
@@ -1136,17 +1134,8 @@ files:
1136
1134
  - spec/dummy/solr/conf/spellings.txt
1137
1135
  - spec/dummy/solr/conf/stopwords.txt
1138
1136
  - spec/dummy/solr/conf/synonyms.txt
1139
- - spec/dummy/solr/data/test/index/_j.fdt
1140
- - spec/dummy/solr/data/test/index/_j.fdx
1141
- - spec/dummy/solr/data/test/index/_j.fnm
1142
- - spec/dummy/solr/data/test/index/_j.frq
1143
- - spec/dummy/solr/data/test/index/_j.nrm
1144
- - spec/dummy/solr/data/test/index/_j.prx
1145
- - spec/dummy/solr/data/test/index/_j.tii
1146
- - spec/dummy/solr/data/test/index/_j.tis
1147
- - spec/dummy/solr/data/test/index/_j_1.del
1148
1137
  - spec/dummy/solr/data/test/index/segments.gen
1149
- - spec/dummy/solr/data/test/index/segments_1g
1138
+ - spec/dummy/solr/data/test/index/segments_n6
1150
1139
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1151
1140
  - spec/dummy/solr/data/test/spellchecker/segments_1
1152
1141
  - spec/dummy/tmp/cache/4F7/F90/default_role
@@ -1444,12 +1433,10 @@ test_files:
1444
1433
  - spec/dummy/config/initializers/secret_token.rb
1445
1434
  - spec/dummy/config/initializers/session_store.rb
1446
1435
  - spec/dummy/config/initializers/wrap_parameters.rb
1447
- - spec/dummy/config/locales/active_support_en.yml
1448
1436
  - spec/dummy/config/locales/en.yml
1449
1437
  - spec/dummy/config/locales/ja.yml
1450
1438
  - spec/dummy/config/routes.rb
1451
1439
  - spec/dummy/config.ru
1452
- - spec/dummy/db/development.sqlite3
1453
1440
  - spec/dummy/db/migrate/032_create_checkins.rb
1454
1441
  - spec/dummy/db/migrate/033_create_checkouts.rb
1455
1442
  - spec/dummy/db/migrate/035_create_reserves.rb
@@ -1573,17 +1560,8 @@ test_files:
1573
1560
  - spec/dummy/solr/conf/spellings.txt
1574
1561
  - spec/dummy/solr/conf/stopwords.txt
1575
1562
  - spec/dummy/solr/conf/synonyms.txt
1576
- - spec/dummy/solr/data/test/index/_j.fdt
1577
- - spec/dummy/solr/data/test/index/_j.fdx
1578
- - spec/dummy/solr/data/test/index/_j.fnm
1579
- - spec/dummy/solr/data/test/index/_j.frq
1580
- - spec/dummy/solr/data/test/index/_j.nrm
1581
- - spec/dummy/solr/data/test/index/_j.prx
1582
- - spec/dummy/solr/data/test/index/_j.tii
1583
- - spec/dummy/solr/data/test/index/_j.tis
1584
- - spec/dummy/solr/data/test/index/_j_1.del
1585
1563
  - spec/dummy/solr/data/test/index/segments.gen
1586
- - spec/dummy/solr/data/test/index/segments_1g
1564
+ - spec/dummy/solr/data/test/index/segments_n6
1587
1565
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1588
1566
  - spec/dummy/solr/data/test/spellchecker/segments_1
1589
1567
  - spec/dummy/tmp/cache/4F7/F90/default_role
@@ -1,36 +0,0 @@
1
- en:
2
- date:
3
- formats:
4
- # Use the strftime parameters for formats.
5
- # When no format has been given, it uses default.
6
- # You can provide other formats here if you like!
7
- default: "%b %d, %Y"
8
- short: "%m/%d/%y"
9
- long: "%A, %B %d, %Y"
10
-
11
- day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
12
- abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
13
-
14
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
15
- month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
16
- abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
17
- # Used in date_select and datime_select.
18
- order: [ :year, :month, :day ]
19
-
20
- time:
21
- formats:
22
- default: "%b %d, %Y %H:%M:%S"
23
- short: "%m/%d/%y %H:%M"
24
- long: "%A, %B %d, %Y %H:%M:%S %Z"
25
- only_date: "%b %d, %Y"
26
- only_year_and_month: "%m %Y"
27
- only_month: "%m"
28
- am: "am"
29
- pm: "pm"
30
-
31
- # Used in array.to_sentence.
32
- support:
33
- array:
34
- words_connector: ", "
35
- two_words_connector: " and "
36
- last_word_connector: ", and "
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- ����!idtype
2
- class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
3
- language_s created_at_d updated_at_ddate_of_publication_dmsort_date_of_publication_drequired_role_id_irepository_content_b sort_title_s periodical_bperiodical_master_b reservable_b
4
- title_texttext btitle_text isbn_textvolume_number_imissue_number_impatron_type_id_i name_text
5
- position_imanifestation_ids_imseries_statement_id_i pub_date_dmdate_of_publication_d
Binary file
@@ -1 +0,0 @@
1
- NRM�||t|||||y|y||t|||||y|y���||�||�|�|||qu||||||
Binary file
Binary file
Binary file