enju_question 0.0.13 → 0.0.14

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.
@@ -8,7 +8,7 @@ xml.rss('version' => "2.0",
8
8
  xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
9
9
  xml.language @locale.to_s
10
10
  xml.ttl "60"
11
- xml.tag! "atom:link", :rel => 'self', :href => "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => :rss))}"
11
+ xml.tag! "atom:link", :rel => 'self', :href => "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => :rss, :only_path => true))}"
12
12
  xml.tag! "atom:link", :rel => 'alternate', :href => "#{request.protocol}#{request.host_with_port}"
13
13
  #xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "http://#{request.host_with_port}/page/opensearch"
14
14
  unless params[:query].blank?
@@ -4,17 +4,17 @@
4
4
  <%- if params[:sort_by].blank? -%>
5
5
  <strong><%= t('question.last_answered_at') -%></strong>
6
6
  <%- else -%>
7
- <%= link_to t('question.last_answered_at'), params.merge(:sort_by => nil) -%>
7
+ <%= link_to t('question.last_answered_at'), url_for(params.merge(:sort_by => nil, :only_path => true)) -%>
8
8
  <%- end -%>
9
9
  <%- if params[:sort_by] == 'created_at' -%>
10
10
  <strong><%= t('question.created_at') -%></strong>
11
11
  <%- else -%>
12
- <%= link_to t('question.created_at'), params.merge(:sort_by => 'created_at') -%>
12
+ <%= link_to t('question.created_at'), url_for(params.merge(:sort_by => 'created_at', :only_path => true)) -%>
13
13
  <%- end -%>
14
14
  <%- if params[:sort_by] == 'answers_count' -%>
15
15
  <strong><%= t('activerecord.attributes.question.answers_count') -%></strong>
16
16
  <%- else -%>
17
- <%= link_to t('activerecord.attributes.question.answers_count'), params.merge(:sort_by => 'answers_count') -%>
17
+ <%= link_to t('activerecord.attributes.question.answers_count'), url_for(params.merge(:sort_by => 'answers_count', :only_path => true) -%>
18
18
  <%- end -%>
19
19
  </p>
20
20
 
@@ -1,21 +1,15 @@
1
1
  <h4><%= t('activerecord.attributes.question.solved') -%></h4>
2
2
  <ul>
3
3
  <%- @question_facet.each do |facet| -%>
4
+ <% facet.value ? facet_solved = true : facet_solved = false %>
4
5
  <li>
5
- <%- if facet.value -%>
6
- <%- if @solved == 'true' -%><strong><%- end -%>
7
- <%= link_to localized_boolean(facet.value), url_for(params.merge(:page => nil, :solved => true, :view => nil)) -%>
8
- (<%= facet.count -%>)
9
- <%- if @solved == 'true' -%></strong><%- end -%>
10
- <%- else -%>
11
- <%- if @solved == 'false' -%><strong><%- end -%>
12
- <%= link_to localized_boolean(facet.value), url_for(params.merge(:page => nil, :solved => 'false', :view => nil)) -%>
13
- (<%= facet.count -%>)
14
- <%- if @solved == 'false' -%></strong><%- end -%>
15
- <%- end -%>
6
+ <%- if @solved == facet_solved -%><strong><%- end -%>
7
+ <%= link_to localized_boolean(facet.value), url_for(params.merge(:page => nil, :solved => facet.value.to_s, :view => nil, :only_path => true)) -%>
8
+ (<%= facet.count -%>)
9
+ <%- if @solved == facet_solved -%></strong><%- end -%>
16
10
  </li>
17
11
  <%- end -%>
18
12
  <%- if @solved -%>
19
- <li><%= link_to t('page.remove_this_facet'), params.merge(:solved => nil, :page => nil, :view => nil) -%></li>
13
+ <li><%= link_to t('page.remove_this_facet'), params.merge(:solved => nil, :page => nil, :view => nil, :only_path => true) -%></li>
20
14
  <%- end -%>
21
15
  </ul>
@@ -1,3 +1,3 @@
1
1
  module EnjuQuestion
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -15,7 +15,7 @@ http_interactions:
15
15
  message: OK
16
16
  headers:
17
17
  date:
18
- - Thu, 15 Dec 2011 08:18:24 GMT
18
+ - Wed, 28 Dec 2011 21:49:09 GMT
19
19
  content-type:
20
20
  - application/xml;charset=UTF-8
21
21
  connection:
@@ -24,16 +24,103 @@ http_interactions:
24
24
 
25
25
  <result_set xmlns="http://crd.ndl.go.jp/refapi/servlet/refapi.RSearchAPI">
26
26
 
27
- <hit_num>4</hit_num>
27
+ <hit_num>5</hit_num>
28
28
 
29
29
  <results_get_position>1</results_get_position>
30
30
 
31
- <results_num>4</results_num>
31
+ <results_num>5</results_num>
32
32
 
33
33
  <results_cd>0001</results_cd>
34
34
 
35
35
  <result>
36
36
 
37
+ <QUESTION>グリーグ「詩人の心」のCDを借りたい。
38
+
39
+ yahooで検索し「自作の歌曲による12のピアノ曲集」(全音楽譜出版社)の曲だということがわかりました。『クラシック音楽作品名辞典』(三省堂)で「自作~」を引くと、「自作~」はop41とop52があり、曲の順番からいって「詩人の心」はop52の3曲目と思われますが、3曲目は「海の永遠の動きをあなたは知らない」となっています。
40
+
41
+ op52の入っているCDは1枚所蔵があったのですが、その3番目の曲は「君知らず、彼の永遠の動きを」です(「グリーグ:ピアノ全曲集⑧」)。この曲と「詩人の心」は同一の曲でしょうか。
42
+
43
+
44
+ (関係ないかもしれませんが、前出の「クラシック~」によると、「4つのデンマーク語の歌『心の歌』」op5の2曲目にも「海の永遠の動きをあなたは知らない」という曲があります。)
45
+
46
+
47
+ 貴館でお持ちの「新・外国楽曲の呼び方」(日本放送出版協会)資料No1511395137と「洋楽索引:作曲者と原題と訳題を引き出すための上、下」(民音音楽資料館)資料No1510796988,1510796996を確認してください。
48
+
49
+
50
+ 「クラシック音楽作品名辞典第3版」(三省堂)および「作曲家別名曲解説ライブラリー18北欧の巨匠」(音楽の友社)は調査済みです。</QUESTION>
51
+
52
+ <REG-ID>OSPR11070035</REG-ID>
53
+
54
+ <ANSWER>「海の永遠の動きをあなたは知らない」(「君知らず、彼の永遠の動きを」)と「詩人の心」は同じものでした。
55
+
56
+
57
+ ①《自作の歌曲によるピアノ曲》Op.52は題名のとおり、グリーグの作曲した歌曲をピアノ曲に編曲したもので、「海の永遠の動きをあなたは知らない」Du fatter
58
+ ej Bolgernes evige Gangは《4つのデンマーク語の歌「心の歌」》Op.5の第2曲に当たります。これは『グリーグ:生涯と作品』(菅野浩和/著 音楽之友社 1984.11)付録28頁に記載されています。
59
+
60
+
61
+ ②「海の永遠の動きをあなたは知らない」は『クラシック音楽作品名辞典:改訂版』(井上和男/編 三省堂 1996.12)174頁にあるようにアンデルセンの詩に曲をつけたものです(事前調査された第3版にも記載されていると思います)。
62
+
63
+
64
+ ③〈NAXOS MUSIC LIBRARY〉のサイトでは、
65
+
66
+ 「 Du fatter ej Boigemes evige Gang (The Poet''s Heart), Op. 5, No. 2」と表記されています。
67
+
68
+
69
+ http://ml.naxos.jp/album/8.553400
70
+
71
+
72
+
73
+ ※『ピアノ作曲家作品事典』(中村菊子/著 大竹紀子/著 ヤマハミュージックメディア 2003.11)は「詩人の心」The Poet''s Heartと表記されています(79頁)。これは全音楽譜出版社の《自作の歌曲による12のピアノ曲》の楽譜に依っています。
74
+
75
+
76
+ なお、以下の資料には「詩人の心」「海の永遠の動きをあなたは知らない」は記載されていませんでした。
77
+
78
+ 『新・外国楽曲の呼び方』(日本放送協会 1962.9)
79
+
80
+ 『洋楽索引:作曲者と原題と訳題を引き出すための 下巻』(民音音楽資料館 1981.2)
81
+
82
+ 『洋楽索引:作曲者と原題と訳題を引き出すための 上巻』(民音音楽資料館 1975.11)
83
+
84
+ </ANSWER>
85
+
86
+ <CRT-DATE>2011/07/25</CRT-DATE>
87
+
88
+ <KEYWORD>Du fatter ej Boigemes evige Gang  The Poet''s Heart</KEYWORD>
89
+
90
+ <NDC>763</NDC>
91
+
92
+ <NDC-NOTE>楽器.器楽(763:8版)</NDC-NOTE>
93
+
94
+ <RES-TYPE>事実調査</RES-TYPE>
95
+
96
+ <BIBL>『グリーグ:生涯と作品』(菅野浩和/著 音楽之友社 1984.11)(ページ:28)</BIBL>
97
+
98
+ <BIBL>『クラシック音楽作品名辞典:改訂版』(井上和男/編 三省堂 1996.12)(ページ:174)</BIBL>
99
+
100
+ <BIBL>『ピアノ作曲家作品事典:152人の作曲家たちとピアノ曲のすべて』(中村菊子/著 大竹紀子/著 ヤマハミュージックメディア 2003.11)(ページ:79)</BIBL>
101
+
102
+ <BIBL>NAXOS MUSIC LIBRARY(2010/7/27現在)(ホームページ:http://ml.naxos.jp/album/8.553400)</BIBL>
103
+
104
+ <REG-DATE>201112160205</REG-DATE>
105
+
106
+ <LST-DATE>201112161258</LST-DATE>
107
+
108
+ <SYS-ID>1000098395</SYS-ID>
109
+
110
+ <LIB-ID>2120005</LIB-ID>
111
+
112
+ <LIB-NAME>大阪府立中央図書館</LIB-NAME>
113
+
114
+ <URL>http://crd.ndl.go.jp/GENERAL/servlet/detail.reference?id=1000098395</URL>
115
+
116
+ <IMAGE>無</IMAGE>
117
+
118
+ <position>0</position>
119
+
120
+ </result>
121
+
122
+ <result>
123
+
37
124
  <QUESTION>「極冷酒」の読み方を知りたい。尾瀬あきら著『さらに極める日本酒味わい入門』の紹介文に「熱燗、燗冷まし、割り水燗、にごり酒、日本酒カクテル、極冷酒・・・。日本酒のオツな楽しみ方が満載」とあり、原本には「極冷酒のファンタジー」の項目がありました。日本酒の辞典類には用語はなく、yahoo検索では極冷酒はありましたが読みはなし。</QUESTION>
38
125
 
39
126
  <REG-ID>5077</REG-ID>
@@ -171,7 +258,7 @@ http_interactions:
171
258
 
172
259
  <IMAGE>無</IMAGE>
173
260
 
174
- <position>0</position>
261
+ <position>1</position>
175
262
 
176
263
  </result>
177
264
 
@@ -213,7 +300,7 @@ http_interactions:
213
300
 
214
301
  <IMAGE>無</IMAGE>
215
302
 
216
- <position>1</position>
303
+ <position>2</position>
217
304
 
218
305
  </result>
219
306
 
@@ -301,7 +388,7 @@ http_interactions:
301
388
 
302
389
  <IMAGE>無</IMAGE>
303
390
 
304
- <position>2</position>
391
+ <position>3</position>
305
392
 
306
393
  </result>
307
394
 
@@ -428,7 +515,7 @@ http_interactions:
428
515
 
429
516
  <IMAGE>無</IMAGE>
430
517
 
431
- <position>3</position>
518
+ <position>4</position>
432
519
 
433
520
  </result>
434
521
 
@@ -436,5 +523,5 @@ http_interactions:
436
523
 
437
524
  '
438
525
  http_version: '1.0'
439
- recorded_at: Thu, 15 Dec 2011 08:18:26 GMT
526
+ recorded_at: Wed, 28 Dec 2011 21:49:10 GMT
440
527
  recorded_with: VCR 2.0.0.rc1
@@ -92,10 +92,6 @@ Devise.setup do |config|
92
92
  # If true, extends the user's remember period when remembered via cookie.
93
93
  # config.extend_remember_period = false
94
94
 
95
- # If true, uses the password salt as remember token. This should be turned
96
- # to false if you are not using database authenticatable.
97
- config.use_salt_as_remember_token = true
98
-
99
95
  # Options to be passed to the created cookie. For instance, you can set
100
96
  # :secure => true in order to force SSL only cookies.
101
97
  # config.cookie_options = {}
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_question
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
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-05-15 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -387,7 +387,6 @@ files:
387
387
  - spec/dummy/config/locales/en.yml
388
388
  - spec/dummy/config/routes.rb
389
389
  - spec/dummy/config.ru
390
- - spec/dummy/db/development.sqlite3
391
390
  - spec/dummy/db/migrate/006_create_items.rb
392
391
  - spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb
393
392
  - spec/dummy/db/migrate/20111201121636_create_languages.rb
@@ -498,7 +497,6 @@ test_files:
498
497
  - spec/dummy/config/locales/en.yml
499
498
  - spec/dummy/config/routes.rb
500
499
  - spec/dummy/config.ru
501
- - spec/dummy/db/development.sqlite3
502
500
  - spec/dummy/db/migrate/006_create_items.rb
503
501
  - spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb
504
502
  - spec/dummy/db/migrate/20111201121636_create_languages.rb
Binary file