enju_biblio 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,8 +9,8 @@ class PictureFile < ActiveRecord::Base
9
9
  :s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
10
10
  :s3_permissions => :private
11
11
  else
12
- has_attached_file :picture, :styles => { :medium => "600x600>", :thumb => "100x100>" } #,
13
- # :path => ":rails_root/private/system/:class/:attachment/:id_partition/:style/:filename"
12
+ has_attached_file :picture, :styles => { :medium => "600x600>", :thumb => "100x100>" },
13
+ :path => ":rails_root/private/system/:class/:attachment/:id_partition/:style/:filename"
14
14
  end
15
15
  validates_attachment_presence :picture
16
16
  validates_attachment_content_type :picture, :content_type => ["image/jpeg", "image/pjpeg", "image/png", "image/gif", "image/svg+xml"], :on => :create
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  date:
20
- - Fri, 01 Jun 2012 00:05:07 GMT
20
+ - Sat, 02 Jun 2012 13:40:23 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.224538"
30
+ - "0.153323"
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=7d526ab7c3f484c682b7ee59096e66bf; domain=.iss.ndl.go.jp; path=/; expires=Fri, 01-Jun-2012 01:05:07 GMT; HttpOnly
41
- - serverid=1102; path=/
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=/
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: Fri, 01 Jun 2012 00:05:08 GMT
105
+ recorded_at: Sat, 02 Jun 2012 13:40:23 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
- - Fri, 01 Jun 2012 00:05:08 GMT
123
+ - Sat, 02 Jun 2012 13:40:23 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.406517"
133
+ - "0.886560"
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=27b1944a32962a13f3e8284d0e281ea8; domain=.iss.ndl.go.jp; path=/; expires=Fri, 01-Jun-2012 01:05:08 GMT; HttpOnly
144
- - serverid=1105; path=/
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=/
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: Fri, 01 Jun 2012 00:05:08 GMT
522
+ recorded_at: Sat, 02 Jun 2012 13:40:24 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
- - Wed, 06 Jun 2012 00:47:18 GMT
20
+ - Sat, 02 Jun 2012 14:18:10 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.159748"
30
+ - "0.159388"
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=6cbce8417ee4d4abc56ba0833e296639; domain=.iss.ndl.go.jp; path=/; expires=Wed, 06-Jun-2012 01:47:18 GMT; HttpOnly
40
+ - _front_session_id=5170aa59dc71a4b1408f4b5001e315c3; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 15:18:10 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: Wed, 06 Jun 2012 00:47:20 GMT
106
+ recorded_at: Sat, 02 Jun 2012 14:18:10 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
- - Wed, 06 Jun 2012 00:47:19 GMT
124
+ - Sat, 02 Jun 2012 14:18:10 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.744922"
134
+ - "0.836118"
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=fef35c7dea106d383888b8651402db4c; domain=.iss.ndl.go.jp; path=/; expires=Wed, 06-Jun-2012 01:47:19 GMT; HttpOnly
144
+ - _front_session_id=b364b1688e10e7bf73c43a9bacc873f3; domain=.iss.ndl.go.jp; path=/; expires=Sat, 02-Jun-2012 15:18:11 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: Wed, 06 Jun 2012 00:47:21 GMT
577
+ recorded_at: Sat, 02 Jun 2012 14:18:11 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
- - Thu, 07 Jun 2012 12:39:42 GMT
595
+ - Sat, 02 Jun 2012 15:28:30 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.118518"
605
+ - "0.086686"
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=5bf7f7538d18506400e1081810dc1c1c; domain=.iss.ndl.go.jp; path=/; expires=Thu, 07-Jun-2012 13:39:42 GMT; HttpOnly
616
- - serverid=1102; path=/
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=/
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: Thu, 07 Jun 2012 12:39:43 GMT
682
+ recorded_at: Sat, 02 Jun 2012 15:28:30 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
- - Thu, 07 Jun 2012 12:39:42 GMT
700
+ - Sat, 02 Jun 2012 15:28:30 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.918968"
710
+ - "0.892157"
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=0ea752e083d0c700c523bbee26d499fc; domain=.iss.ndl.go.jp; path=/; expires=Thu, 07-Jun-2012 13:39:43 GMT; HttpOnly
721
- - serverid=1105; path=/
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=/
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: Thu, 07 Jun 2012 12:39:44 GMT
1139
+ recorded_at: Sat, 02 Jun 2012 15:28:31 GMT
1140
1140
  recorded_with: VCR 2.2.0
@@ -0,0 +1,13 @@
1
+ class LocalPatron
2
+ def initialize(user)
3
+ @user = user
4
+ end
5
+
6
+ def id
7
+ end
8
+
9
+ def full_name
10
+ # TODO: 外部サービスから取得
11
+ @user.email
12
+ end
13
+ end
@@ -91,4 +91,12 @@ class User < ActiveRecord::Base
91
91
  end
92
92
  end
93
93
  end
94
+
95
+ def patron
96
+ LocalPatron.new(self)
97
+ end
98
+
99
+ def full_name
100
+ username
101
+ end
94
102
  end
Binary file
Binary file
@@ -60,7 +60,12 @@
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>
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">
64
69
  <tokenizer class="solr.StandardTokenizerFactory"/>
65
70
  <filter class="solr.StandardFilterFactory"/>
66
71
  <filter class="solr.LowerCaseFilterFactory"/>
@@ -235,4 +240,5 @@
235
240
  <!-- copyField commands copy one field to another at the time a document
236
241
  is added to the index. It's used either to index the same field differently,
237
242
  or to add multiple fields to the same field for easier/faster searching. -->
243
+ <copyField source="*_text" dest="text" />
238
244
  </schema>
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.8
4
+ version: 0.0.9
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-21 00:00:00.000000000 Z
12
+ date: 2012-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -975,6 +975,7 @@ files:
975
975
  - spec/dummy/app/helpers/application_helper.rb
976
976
  - spec/dummy/app/mailers/notifier.rb
977
977
  - spec/dummy/app/models/ability.rb
978
+ - spec/dummy/app/models/local_patron.rb
978
979
  - spec/dummy/app/models/role.rb
979
980
  - spec/dummy/app/models/user.rb
980
981
  - spec/dummy/app/models/user_group.rb
@@ -1011,6 +1012,7 @@ files:
1011
1012
  - spec/dummy/config/locales/ja.yml
1012
1013
  - spec/dummy/config/routes.rb
1013
1014
  - spec/dummy/config.ru
1015
+ - spec/dummy/db/development.sqlite3
1014
1016
  - spec/dummy/db/migrate/032_create_checkins.rb
1015
1017
  - spec/dummy/db/migrate/033_create_checkouts.rb
1016
1018
  - spec/dummy/db/migrate/035_create_reserves.rb
@@ -1134,19 +1136,10 @@ files:
1134
1136
  - spec/dummy/solr/conf/spellings.txt
1135
1137
  - spec/dummy/solr/conf/stopwords.txt
1136
1138
  - spec/dummy/solr/conf/synonyms.txt
1137
- - spec/dummy/solr/data/test/index/_3f.fdt
1138
- - spec/dummy/solr/data/test/index/_3f.fdx
1139
- - spec/dummy/solr/data/test/index/_3f.fnm
1140
- - spec/dummy/solr/data/test/index/_3f.frq
1141
- - spec/dummy/solr/data/test/index/_3f.nrm
1142
- - spec/dummy/solr/data/test/index/_3f.prx
1143
- - spec/dummy/solr/data/test/index/_3f.tii
1144
- - spec/dummy/solr/data/test/index/_3f.tis
1145
1139
  - spec/dummy/solr/data/test/index/segments.gen
1146
- - spec/dummy/solr/data/test/index/segments_57
1140
+ - spec/dummy/solr/data/test/index/segments_q1
1147
1141
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1148
1142
  - spec/dummy/solr/data/test/spellchecker/segments_1
1149
- - spec/dummy/tmp/cache/4AD/470/country_all
1150
1143
  - spec/dummy/tmp/cache/4F7/F90/default_role
1151
1144
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
1152
1145
  - spec/factories/carrier_type.rb
@@ -1410,6 +1403,7 @@ test_files:
1410
1403
  - spec/dummy/app/helpers/application_helper.rb
1411
1404
  - spec/dummy/app/mailers/notifier.rb
1412
1405
  - spec/dummy/app/models/ability.rb
1406
+ - spec/dummy/app/models/local_patron.rb
1413
1407
  - spec/dummy/app/models/role.rb
1414
1408
  - spec/dummy/app/models/user.rb
1415
1409
  - spec/dummy/app/models/user_group.rb
@@ -1446,6 +1440,7 @@ test_files:
1446
1440
  - spec/dummy/config/locales/ja.yml
1447
1441
  - spec/dummy/config/routes.rb
1448
1442
  - spec/dummy/config.ru
1443
+ - spec/dummy/db/development.sqlite3
1449
1444
  - spec/dummy/db/migrate/032_create_checkins.rb
1450
1445
  - spec/dummy/db/migrate/033_create_checkouts.rb
1451
1446
  - spec/dummy/db/migrate/035_create_reserves.rb
@@ -1569,19 +1564,10 @@ test_files:
1569
1564
  - spec/dummy/solr/conf/spellings.txt
1570
1565
  - spec/dummy/solr/conf/stopwords.txt
1571
1566
  - spec/dummy/solr/conf/synonyms.txt
1572
- - spec/dummy/solr/data/test/index/_3f.fdt
1573
- - spec/dummy/solr/data/test/index/_3f.fdx
1574
- - spec/dummy/solr/data/test/index/_3f.fnm
1575
- - spec/dummy/solr/data/test/index/_3f.frq
1576
- - spec/dummy/solr/data/test/index/_3f.nrm
1577
- - spec/dummy/solr/data/test/index/_3f.prx
1578
- - spec/dummy/solr/data/test/index/_3f.tii
1579
- - spec/dummy/solr/data/test/index/_3f.tis
1580
1567
  - spec/dummy/solr/data/test/index/segments.gen
1581
- - spec/dummy/solr/data/test/index/segments_57
1568
+ - spec/dummy/solr/data/test/index/segments_q1
1582
1569
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1583
1570
  - spec/dummy/solr/data/test/spellchecker/segments_1
1584
- - spec/dummy/tmp/cache/4AD/470/country_all
1585
1571
  - spec/dummy/tmp/cache/4F7/F90/default_role
1586
1572
  - spec/dummy/tmp/cache/6E4/420/search_engine_all
1587
1573
  - spec/factories/carrier_type.rb
@@ -1,3 +0,0 @@
1
- ����idtype
2
- class_name created_at_d updated_at_ddate_of_birth_d work_ids_imexpression_ids_immanifestation_ids_imrequired_role_id_ipatron_type_id_i name_text
3
- place_textother_designation_textoriginal_patron_ids_im
@@ -1 +0,0 @@
1
- NRM�yyxyyxxxxxyttuuux��||���������������||�������������