enju_biblio 0.1.0.pre45 → 0.1.0.pre46

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3fd1c5d37cc6a0cb7fdfe7daf9020e3b42e2b87
4
- data.tar.gz: 4e7aced7c8b57d398445c76492e01c33132b2a10
3
+ metadata.gz: 0c9f724ae9bc949082a242108f0b9763eca797c1
4
+ data.tar.gz: 0655a86c9ca4d9b17402c083cd2c36ffb5f2e90b
5
5
  SHA512:
6
- metadata.gz: 15cfbbab7bf4fd1cb6d39fe0843c677e7b031fc1897a1d4f5fa37f1f8acae6c00ddde81104b2ac369cce7703e075491df2d2c92342b73008e5a6245ef27104b6
7
- data.tar.gz: e0c585fdad372c6a062221b64b94dd21f59f39d79e8cab9f22e8181b8cb26ec9e1248f75f53651201be215b09d67399001ce7d8c87fc485811b3196d1544c585
6
+ metadata.gz: c1b83d9791c1147dccbbdd1e56e0b97aa771d0f8b323109f13211c5d3b79ce031796fa5146edeeebcb737ec32c1319fab791dc3192ce3903098776bec66f4bc3
7
+ data.tar.gz: 215fa31378a4b9ec227c65c0aedfa70d8545f038c2688d26ca952ce4d2266cfa3128899f2ab3e2625759394f30468667f44c50fe3bfa3cb3f92c4d15bc6c16e8
@@ -8,29 +8,12 @@
8
8
  <%= @agent.full_name -%>
9
9
  </h2>
10
10
 
11
- <%- if @version -%>
12
- <p>(<%= l(@agent.versions.find(@version).created_at) -%>)</p>
13
- <%- end -%>
14
- <p>
15
- (<%= link_to_wikipedia(@agent.full_name_without_space) -%>)
16
- </p>
17
-
18
11
  <div id="tabs">
19
12
  <ul>
20
13
  <li title="active" class="selected"><a href="#detail"><em><%= t('page.detail') -%></em></a></li>
21
14
  <%- if @agent.derived_agents.exists? or @agent.original_agents.exists? -%>
22
15
  <li><a href="#related"><em><%= t('page.related') -%></em></a></li>
23
16
  <%- end -%>
24
- <%- if @agent.works.exists? -%>
25
- <li><a href="#work"><em><%= t('activerecord.models.work') -%></em></a></li>
26
- <%- end -%>
27
- <%- if @agent.expressions.exists? -%>
28
- <li><a href="#expression"><em><%= t('activerecord.models.expression') -%></em></a></li>
29
- <%- end -%>
30
- <%- if @agent.manifestations.exists? -%>
31
- <li><a href="#manifestation"><em><%= t('activerecord.models.manifestation') -%></em></a></li>
32
- <%- end -%>
33
- <li><a href="#history"><em><%= t('page.history') -%></em></a></li>
34
17
  </ul>
35
18
  <div id="detail">
36
19
  <table class="table table-striped index vcard">
@@ -95,16 +78,6 @@
95
78
  <%- unless @agent.derived_agents.empty? and @agent.original_agents.empty? -%>
96
79
  <%= render 'agents/agent_list' -%>
97
80
  <%- end -%>
98
- <%- unless @works.blank? -%>
99
- <%= render 'agents/work_list' -%>
100
- <%- end -%>
101
- <%- unless @expressions.blank? -%>
102
- <%= render 'agents/expression_list' -%>
103
- <%- end -%>
104
- <%- unless @manifestations.blank? -%>
105
- <%= render 'agents/manifestation_list' -%>
106
- <%- end -%>
107
- <%= render 'history_list' -%>
108
81
  </div>
109
82
  </div>
110
83
  </div>
@@ -145,8 +118,6 @@
145
118
  <%- end -%>
146
119
  </ul>
147
120
  <ul>
148
- <li><%= link_to t('page.listing', :model => t('activerecord.models.work')), creator_manifestations_path(@agent) -%></li>
149
- <li><%= link_to t('page.listing', :model => t('activerecord.models.expression')), contributor_manifestations_path(@agent) -%></li>
150
- <li><%= link_to t('page.listing', :model => t('activerecord.models.manifestation')), publisher_manifestations_path(@agent) -%></li>
121
+ <li><%= link_to t('page.listing', :model => t('activerecord.models.manifestation')), manifestations_path(:query => @agent.full_name) -%></li>
151
122
  </ul>
152
123
  </div>
@@ -6,6 +6,3 @@
6
6
  <%= render 'manifestations/question_list', :manifestation => manifestation -%>
7
7
  <%- end -%>
8
8
  <%- end -%>
9
- <%- if current_user.try(:has_role?, 'Librarian') -%>
10
- <%= render 'manifestations/history_list', :manifestation => manifestation -%>
11
- <%- end -%>
@@ -8,7 +8,4 @@
8
8
  <li><a href="#question"><em><%= t('resource.question') -%></em></a></li>
9
9
  <%- end -%>
10
10
  <% end %>
11
- <%- if current_user.try(:has_role?, 'Librarian') -%>
12
- <li><a href="#history"><em><%= t('page.history') -%></em></a></li>
13
- <%- end -%>
14
11
  </ul>
@@ -19,12 +19,12 @@ en:
19
19
  manifestation_relationship_type: Resource relationship type
20
20
  medium_of_performance: Medium of performance
21
21
  own: Own
22
- patron: Patron
23
- patron_import_file: Patron import file
24
- patron_import_result: Patron Import Result
25
- patron_relationship: Patron relationship
26
- patron_relationship_type: Patron relationship type
27
- patron_type: Patron type
22
+ agent: Agent
23
+ agent_import_file: Agent import file
24
+ agent_import_result: Agent Import Result
25
+ agent_relationship: Agent relationship
26
+ agent_relationship_type: Agent relationship type
27
+ agent_type: Agent type
28
28
  picture_file: Picture file
29
29
  produce: Produce
30
30
  produce_type: Produce type
@@ -103,7 +103,7 @@ en:
103
103
  lock_version: Lock version
104
104
  acquired_at: Acquired at
105
105
  donation: Donation
106
- patron:
106
+ agent:
107
107
  last_name: Last name
108
108
  middle_name: Middle name
109
109
  first_name: First name
@@ -133,18 +133,18 @@ en:
133
133
  lock_version: Lock version
134
134
  note: Note
135
135
  country: Country
136
- patron_type: Patron type
136
+ agent_type: Agent type
137
137
  language: Language
138
138
  email: Email
139
139
  url: URL
140
- patron_import_file:
141
- patron_import_file_name: Filename
142
- patron_import_content_type: Content type
143
- patron_import_file_size: Size
144
- patron_import_fingerprint: File hash
140
+ agent_import_file:
141
+ agent_import_file_name: Filename
142
+ agent_import_content_type: Content type
143
+ agent_import_file_size: Size
144
+ agent_import_fingerprint: File hash
145
145
  note: Note
146
146
  executed_at: Executed at
147
- patron_import_updated_at: Updated at
147
+ agent_import_updated_at: Updated at
148
148
  state: State
149
149
  edit_mode: Edit mode
150
150
  error_message: Error message
@@ -205,7 +205,7 @@ en:
205
205
  display_name: Display name
206
206
  note: Note
207
207
  position: Position
208
- patron_relationship_type:
208
+ agent_relationship_type:
209
209
  name: Name
210
210
  display_name: Display name
211
211
  note: Note
@@ -223,10 +223,10 @@ en:
223
223
  import_request:
224
224
  isbn: ISBN
225
225
  state: State
226
- patron_relationship:
226
+ agent_relationship:
227
227
  parent_id: Parent
228
228
  child_id: Child
229
- patron_relationship_type_id: Patron relationship type
229
+ agent_relationship_type_id: Agent relationship type
230
230
  manifestation_relationship:
231
231
  parent_id: Parent
232
232
  child_id: Child
@@ -270,7 +270,7 @@ en:
270
270
  display_name: Display name
271
271
  note: Note
272
272
  position: Position
273
- patron_type:
273
+ agent_type:
274
274
  name: Name
275
275
  display_name: Display name
276
276
  note: Note
@@ -281,7 +281,7 @@ en:
281
281
  position: Position
282
282
  resource_import_result:
283
283
  body: Body
284
- patron_import_result:
284
+ agent_import_result:
285
285
  body: Body
286
286
  create_type:
287
287
  name: Name
@@ -307,7 +307,7 @@ en:
307
307
  resource_import_file:
308
308
  update_relationship: Update relationship
309
309
 
310
- patron:
310
+ agent:
311
311
  creator: Creator
312
312
  contributor: Contributor
313
313
  publisher: Publisher
@@ -19,12 +19,12 @@ ja:
19
19
  license: ライセンス
20
20
  import_request: ISBNインポートのリクエスト
21
21
  own: 所有関係
22
- patron: 人物・団体
23
- patron_import_file: 人物・団体のインポート用ファイル
24
- patron_import_result: 人物・団体インポートの結果
25
- patron_relationship: 著者・編者・出版社の関係
26
- patron_relationship_type: 人物・団体の関係の種類
27
- patron_type: 人物・団体の種類
22
+ agent: 人物・団体
23
+ agent_import_file: 人物・団体のインポート用ファイル
24
+ agent_import_result: 人物・団体インポートの結果
25
+ agent_relationship: 著者・編者・出版社の関係
26
+ agent_relationship_type: 人物・団体の関係の種類
27
+ agent_type: 人物・団体の種類
28
28
  picture_file: 画像ファイル
29
29
  produce: 出版関係
30
30
  produce_type: 体現の関係
@@ -103,7 +103,7 @@ ja:
103
103
  lock_version: ロックバージョン
104
104
  acquired_at: 受入日
105
105
  donation: 寄贈情報
106
- patron:
106
+ agent:
107
107
  last_name: 姓
108
108
  middle_name: ミドルネーム
109
109
  first_name: 名
@@ -133,18 +133,18 @@ ja:
133
133
  lock_version: ロックバージョン
134
134
  note: 注記
135
135
  country: 国籍
136
- patron_type: 人物・団体の種類
136
+ agent_type: 人物・団体の種類
137
137
  language: 言語
138
138
  email: 電子メール
139
139
  url: URL
140
- patron_import_file:
141
- patron_import_file_name: ファイル名
142
- patron_import_content_type: Content-Type
143
- patron_import_file_size: ファイルサイズ
144
- patron_import_fingerprint: ファイルのハッシュ
140
+ agent_import_file:
141
+ agent_import_file_name: ファイル名
142
+ agent_import_content_type: Content-Type
143
+ agent_import_file_size: ファイルサイズ
144
+ agent_import_fingerprint: ファイルのハッシュ
145
145
  note: 注記
146
146
  executed_at: 実行時刻
147
- patron_import_updated_at: 更新時刻
147
+ agent_import_updated_at: 更新時刻
148
148
  state: 状態
149
149
  edit_mode: 編集モード
150
150
  error_message: エラーメッセージ
@@ -200,12 +200,12 @@ ja:
200
200
  display_name: 表示名
201
201
  note: 注記
202
202
  position: 位置
203
- patron_type:
203
+ agent_type:
204
204
  name: 名前
205
205
  display_name: 表示名
206
206
  note: 注記
207
207
  position: 位置
208
- patron_relationship_type:
208
+ agent_relationship_type:
209
209
  name: 名前
210
210
  display_name: 表示名
211
211
  note: 注記
@@ -223,10 +223,10 @@ ja:
223
223
  import_request:
224
224
  isbn: ISBN
225
225
  state: 状態
226
- patron_relationship:
226
+ agent_relationship:
227
227
  parent: 派生元の人物・団体
228
228
  child: 派生先の人物・団体
229
- patron_relationship_type_id: 人物・団体の関係の種類
229
+ agent_relationship_type_id: 人物・団体の関係の種類
230
230
  manifestation_relationship:
231
231
  parent: 派生元の資料
232
232
  child: 派生先の資料
@@ -270,7 +270,7 @@ ja:
270
270
  display_name: 表示名
271
271
  note: 注記
272
272
  position: 位置
273
- patron_type:
273
+ agent_type:
274
274
  name: 名前
275
275
  display_name: 表示名
276
276
  note: 注記
@@ -281,7 +281,7 @@ ja:
281
281
  position: 位置
282
282
  resource_import_result:
283
283
  body: 本文
284
- patron_import_result:
284
+ agent_import_result:
285
285
  body: 本文
286
286
  create_type:
287
287
  name: 名称
@@ -307,7 +307,7 @@ ja:
307
307
  resource_import_file:
308
308
  update_relationship: 関連を更新
309
309
 
310
- patron:
310
+ agent:
311
311
  creator: 著者
312
312
  contributor: 協力者・編者
313
313
  publisher: 出版社
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre45"
2
+ VERSION = "0.1.0.pre46"
3
3
  end
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.1.0.pre45
4
+ version: 0.1.0.pre46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
@@ -559,20 +559,19 @@ files:
559
559
  - app/views/agent_types/index.html.erb
560
560
  - app/views/agent_types/new.html.erb
561
561
  - app/views/agent_types/show.html.erb
562
+ - app/views/agents/_agent.html.erb
563
+ - app/views/agents/_agent_list.html.erb
562
564
  - app/views/agents/_expression_list.html.erb
563
565
  - app/views/agents/_form.html.erb
564
566
  - app/views/agents/_form_family_name_first.html.erb
565
567
  - app/views/agents/_form_family_name_last.html.erb
566
568
  - app/views/agents/_history_list.html.erb
567
569
  - app/views/agents/_index.html.erb
570
+ - app/views/agents/_index_agent.html.erb
568
571
  - app/views/agents/_index_expression.html.erb
569
572
  - app/views/agents/_index_manifestation.html.erb
570
- - app/views/agents/_index_patron.html.erb
571
- - app/views/agents/_index_patron_merge_list.html.erb
572
573
  - app/views/agents/_index_work.html.erb
573
574
  - app/views/agents/_manifestation_list.html.erb
574
- - app/views/agents/_patron.html.erb
575
- - app/views/agents/_patron_list.html.erb
576
575
  - app/views/agents/_work_list.html.erb
577
576
  - app/views/agents/edit.html.erb
578
577
  - app/views/agents/index.atom.builder
@@ -605,7 +604,7 @@ files:
605
604
  - app/views/create_types/show.html.erb
606
605
  - app/views/creates/_form.html.erb
607
606
  - app/views/creates/_index.html.erb
608
- - app/views/creates/_index_patron.html.erb
607
+ - app/views/creates/_index_agent.html.erb
609
608
  - app/views/creates/_index_work.html.erb
610
609
  - app/views/creates/edit.html.erb
611
610
  - app/views/creates/index.html.erb
@@ -662,10 +661,10 @@ files:
662
661
  - app/views/languages/index.html.erb
663
662
  - app/views/languages/new.html.erb
664
663
  - app/views/languages/show.html.erb
664
+ - app/views/layouts/agents.html.erb
665
+ - app/views/layouts/agents.mobile.erb
665
666
  - app/views/layouts/manifestations.html.erb
666
667
  - app/views/layouts/manifestations.mobile.erb
667
- - app/views/layouts/patrons.html.erb
668
- - app/views/layouts/patrons.mobile.erb
669
668
  - app/views/licenses/_form.html.erb
670
669
  - app/views/licenses/edit.html.erb
671
670
  - app/views/licenses/index.html.erb
@@ -755,9 +754,9 @@ files:
755
754
  - app/views/owns/new.html.erb
756
755
  - app/views/owns/show.html.erb
757
756
  - app/views/picture_files/_index.html.erb
757
+ - app/views/picture_files/_index_agent.html.erb
758
758
  - app/views/picture_files/_index_event.html.erb
759
759
  - app/views/picture_files/_index_manifestation.html.erb
760
- - app/views/picture_files/_index_patron.html.erb
761
760
  - app/views/picture_files/_index_shelf.html.erb
762
761
  - app/views/picture_files/_link.html.erb
763
762
  - app/views/picture_files/_link.mobile.erb
@@ -773,8 +772,8 @@ files:
773
772
  - app/views/produce_types/show.html.erb
774
773
  - app/views/produces/_form.html.erb
775
774
  - app/views/produces/_index.html.erb
775
+ - app/views/produces/_index_agent.html.erb
776
776
  - app/views/produces/_index_manifestation.html.erb
777
- - app/views/produces/_index_patron.html.erb
778
777
  - app/views/produces/edit.html.erb
779
778
  - app/views/produces/index.html.erb
780
779
  - app/views/produces/new.html.erb
@@ -786,8 +785,8 @@ files:
786
785
  - app/views/realize_types/show.html.erb
787
786
  - app/views/realizes/_form.html.erb
788
787
  - app/views/realizes/_index.html.erb
788
+ - app/views/realizes/_index_agent.html.erb
789
789
  - app/views/realizes/_index_expression.html.erb
790
- - app/views/realizes/_index_patron.html.erb
791
790
  - app/views/realizes/edit.html.erb
792
791
  - app/views/realizes/index.html.erb
793
792
  - app/views/realizes/new.html.erb
@@ -1,53 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.agent')) -%></h1>
3
- <div id="content_list">
4
-
5
- <div class="search_form">
6
- <%= form_for :agents, :url => agent_merge_list_agents_path(@agent_merge_list), :html => {:method => 'get'} do -%>
7
- <p>
8
- <%= 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')} -%>
9
- <%- if can? :update, @agent_merge_list -%>
10
- <%= render 'page/add' %>
11
- <%- end -%>
12
- <%= submit_tag t('page.search') -%>
13
- <%= link_to t('page.back_to_index'), agent_merge_list_agents_path(@agent_merge_list) -%>
14
- </p>
15
- <%- end -%>
16
- </div>
17
-
18
- <table class="table table-striped index">
19
- <tr>
20
- <th><%= t('activerecord.attributes.agent.full_name') -%></th>
21
- <th><%= t('activerecord.models.agent_type') -%></th>
22
- <th><%= t('activerecord.attributes.agent.date_of_birth') -%></th>
23
- <th id="edit_icons"></th>
24
- </tr>
25
-
26
- <%- @agents.each do |agent| -%>
27
- <tr class="line<%= cycle("0", "1") -%>">
28
- <td><%= link_to agent.full_name, agent_merge_list_agent_path(@agent_merge_list, agent) -%></td>
29
- <td><%= agent.agent_type.display_name.localize -%></td>
30
- <td><%=l agent.date_of_birth if agent.date_of_birth -%></td>
31
- <td>
32
- <%- if can? :delete, agent -%>
33
- <%- if params[:mode] == 'add' -%>
34
- <%= link_to t('page.add'), new_agent_merge_list_agent_merge_path(@agent_merge_list, :agent_id => agent.id) unless @agent_merge_list.agents.include?(agent) -%>
35
- <%- else -%>
36
- <%- agent_merge = @agent_merge_list.agent_merges.where(:agent_id => agent.id).first -%>
37
- <%= link_to t('page.destroy'), agent_merge_list_agent_merge_path(@agent_merge_list, agent_merge), :data => {:confirm => t('page.are_you_sure')}, :method => :delete if agent_merge -%>
38
- <%- end -%>
39
- <%- end -%>
40
- </td>
41
- </tr>
42
- <%- end -%>
43
- </table>
44
-
45
- <%= paginate(@agents) -%>
46
- </div>
47
- </div>
48
-
49
- <div id="submenu" class="ui-corner-all">
50
- <ul>
51
- <li><%= link_to t('page.listing', :model => t('activerecord.models.agent_merge_list')), @agent_merge_list -%></li>
52
- </ul>
53
- </div>