enju_biblio 0.1.0.pre56 → 0.1.0.pre57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/agent_import_files_controller.rb +1 -1
  3. data/app/controllers/agent_import_results_controller.rb +30 -6
  4. data/app/controllers/agent_relationship_types_controller.rb +74 -4
  5. data/app/controllers/agent_relationships_controller.rb +92 -10
  6. data/app/controllers/agent_types_controller.rb +74 -3
  7. data/app/controllers/carrier_types_controller.rb +1 -1
  8. data/app/controllers/content_types_controller.rb +74 -4
  9. data/app/controllers/countries_controller.rb +66 -4
  10. data/app/controllers/create_types_controller.rb +74 -3
  11. data/app/controllers/extents_controller.rb +74 -4
  12. data/app/controllers/form_of_works_controller.rb +74 -4
  13. data/app/controllers/frequencies_controller.rb +74 -4
  14. data/app/controllers/identifier_types_controller.rb +4 -5
  15. data/app/controllers/import_requests_controller.rb +1 -1
  16. data/app/controllers/languages_controller.rb +66 -4
  17. data/app/controllers/licenses_controller.rb +74 -3
  18. data/app/controllers/manifestation_relationship_types_controller.rb +74 -3
  19. data/app/controllers/manifestation_relationships_controller.rb +92 -9
  20. data/app/controllers/medium_of_performances_controller.rb +74 -3
  21. data/app/controllers/picture_files_controller.rb +34 -10
  22. data/app/controllers/produce_types_controller.rb +74 -3
  23. data/app/controllers/realize_types_controller.rb +74 -3
  24. data/app/controllers/resource_import_files_controller.rb +2 -1
  25. data/app/controllers/resource_import_results_controller.rb +31 -11
  26. data/app/models/agent_import_file.rb +1 -1
  27. data/app/models/agent_import_result.rb +0 -2
  28. data/app/models/carrier_type.rb +1 -1
  29. data/app/models/identifier.rb +5 -0
  30. data/app/models/item.rb +1 -1
  31. data/app/models/manifestation.rb +13 -8
  32. data/app/models/resource_import_file.rb +73 -79
  33. data/app/views/agent_import_files/index.html.erb +1 -0
  34. data/app/views/agent_relationship_types/index.html.erb +5 -4
  35. data/app/views/agent_types/index.html.erb +5 -4
  36. data/app/views/carrier_types/index.html.erb +2 -1
  37. data/app/views/content_types/index.html.erb +1 -0
  38. data/app/views/countries/show.html.erb +5 -0
  39. data/app/views/create_types/index.html.erb +5 -4
  40. data/app/views/extents/index.html.erb +2 -1
  41. data/app/views/form_of_works/index.html.erb +2 -1
  42. data/app/views/frequencies/index.html.erb +2 -1
  43. data/app/views/identifier_types/index.html.erb +12 -5
  44. data/app/views/import_requests/index.html.erb +1 -0
  45. data/app/views/items/show.html.erb +3 -7
  46. data/app/views/languages/_form.html.erb +19 -4
  47. data/app/views/languages/index.html.erb +6 -5
  48. data/app/views/languages/show.html.erb +19 -4
  49. data/app/views/layouts/manifestations.html.erb +2 -1
  50. data/app/views/licenses/index.html.erb +2 -1
  51. data/app/views/manifestation_relationship_types/index.html.erb +5 -4
  52. data/app/views/manifestations/_call_number.html.erb +1 -1
  53. data/app/views/manifestations/_edit_detail.html.erb +4 -1
  54. data/app/views/manifestations/_form.html.erb +5 -5
  55. data/app/views/manifestations/_show_detail_librarian.html.erb +8 -3
  56. data/app/views/manifestations/_show_detail_user.html.erb +8 -3
  57. data/app/views/medium_of_performances/index.html.erb +2 -1
  58. data/app/views/notifier/manifestation_info.en.text.erb +1 -1
  59. data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
  60. data/app/views/picture_files/_index.html.erb +1 -0
  61. data/app/views/picture_files/_index_agent.html.erb +1 -0
  62. data/app/views/picture_files/_index_manifestation.html.erb +1 -0
  63. data/app/views/picture_files/show.html.erb +15 -7
  64. data/app/views/produce_types/index.html.erb +5 -4
  65. data/app/views/realize_types/index.html.erb +5 -4
  66. data/app/views/resource_import_files/index.html.erb +1 -0
  67. data/app/views/series_statements/_index.html.erb +1 -0
  68. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +1 -0
  69. data/config/locales/translation_en.yml +70 -1
  70. data/config/locales/translation_ja.yml +77 -8
  71. data/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb +5 -0
  72. data/lib/enju_biblio/biblio_helper.rb +13 -0
  73. data/lib/enju_biblio/engine.rb +0 -2
  74. data/lib/enju_biblio/version.rb +1 -1
  75. data/lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml +1 -1
  76. data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +24 -3
  77. data/lib/tasks/enju_biblio_tasks.rake +2 -0
  78. data/lib/tasks/identifier_type.rb +12 -0
  79. data/lib/tasks/item.rb +1 -1
  80. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml +433 -0
  81. data/spec/controllers/agent_import_files_controller_spec.rb +35 -35
  82. data/spec/controllers/agent_import_results_controller_spec.rb +11 -11
  83. data/spec/controllers/agent_relationship_types_controller_spec.rb +51 -51
  84. data/spec/controllers/agent_relationships_controller_spec.rb +53 -53
  85. data/spec/controllers/agent_types_controller_spec.rb +15 -15
  86. data/spec/controllers/agents_controller_spec.rb +96 -96
  87. data/spec/controllers/carrier_types_controller_spec.rb +15 -15
  88. data/spec/controllers/content_types_controller_spec.rb +15 -15
  89. data/spec/controllers/countries_controller_spec.rb +25 -25
  90. data/spec/controllers/create_types_controller_spec.rb +15 -15
  91. data/spec/controllers/creates_controller_spec.rb +50 -50
  92. data/spec/controllers/donates_controller_spec.rb +49 -49
  93. data/spec/controllers/extents_controller_spec.rb +15 -15
  94. data/spec/controllers/form_of_works_controller_spec.rb +15 -15
  95. data/spec/controllers/frequencies_controller_spec.rb +6 -6
  96. data/spec/controllers/identifier_types_controller_spec.rb +15 -15
  97. data/spec/controllers/import_requests_controller_spec.rb +50 -50
  98. data/spec/controllers/items_controller_spec.rb +72 -72
  99. data/spec/controllers/languages_controller_spec.rb +18 -18
  100. data/spec/controllers/licenses_controller_spec.rb +15 -15
  101. data/spec/controllers/manifestation_relationship_types_controller_spec.rb +51 -51
  102. data/spec/controllers/manifestation_relationships_controller_spec.rb +53 -53
  103. data/spec/controllers/manifestations_controller_spec.rb +108 -108
  104. data/spec/controllers/medium_of_performances_controller_spec.rb +15 -15
  105. data/spec/controllers/owns_controller_spec.rb +52 -52
  106. data/spec/controllers/picture_files_controller_spec.rb +52 -52
  107. data/spec/controllers/produce_types_controller_spec.rb +15 -15
  108. data/spec/controllers/produces_controller_spec.rb +50 -50
  109. data/spec/controllers/realize_types_controller_spec.rb +15 -15
  110. data/spec/controllers/realizes_controller_spec.rb +51 -51
  111. data/spec/controllers/resource_export_files_controller_spec.rb +38 -38
  112. data/spec/controllers/resource_import_files_controller_spec.rb +38 -38
  113. data/spec/controllers/resource_import_results_controller_spec.rb +15 -15
  114. data/spec/controllers/series_statements_controller_spec.rb +54 -54
  115. data/spec/dummy/db/development.sqlite3 +0 -0
  116. data/spec/dummy/db/schema.rb +2 -3
  117. data/spec/dummy/db/test.sqlite3 +0 -0
  118. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -19
  119. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -19
  120. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-53863-1jz1wlr.txt +147 -0
  121. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-55246-1rvhs1s.txt +147 -0
  122. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-60268-1psjqua.txt +147 -0
  123. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-60996-1cy28m2.txt +147 -0
  124. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-67507-19qjhj3.txt +147 -0
  125. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-69234-1cllrec.txt +147 -0
  126. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140818-76875-1os6joy.txt +147 -0
  127. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-1148-136brhb.txt +147 -0
  128. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-473-1c326dm.txt +147 -0
  129. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-93795-1x882ik.txt +147 -0
  130. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-94274-1xr9d9e.txt +147 -0
  131. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-94643-1fjcept.txt +147 -0
  132. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-97947-mfqh5b.txt +147 -0
  133. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-98488-126cvb4.txt +147 -0
  134. data/spec/dummy/public/system/resource_export_files/resource_exports/000/000/004/original/resource_export_file_20140819-98849-1lg47mm.txt +147 -0
  135. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  136. data/spec/dummy/solr/test/data/index/segments_5ur +0 -0
  137. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007580 +0 -0
  138. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007581 +0 -0
  139. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007582 +0 -0
  140. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007583 +0 -0
  141. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007584 +0 -0
  142. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000007585 +0 -0
  143. data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +0 -0
  144. data/spec/dummy/tmp/cache/stdout +2554 -0
  145. data/spec/dummy/tmp/pids/redis-test.pid +1 -1
  146. data/spec/fixtures/agent_import_results.yml +0 -3
  147. data/spec/fixtures/carrier_types.yml +16 -16
  148. data/spec/fixtures/content_types.yml +78 -29
  149. data/spec/fixtures/frequencies.yml +32 -62
  150. data/spec/fixtures/manifestations.yml +1 -1
  151. data/spec/models/agent_import_result_spec.rb +0 -2
  152. data/spec/models/manifestation_spec.rb +1 -1
  153. data/spec/models/resource_import_file_spec.rb +30 -3
  154. data/spec/views/manifestations/show.html.erb_spec.rb +1 -1
  155. metadata +68 -103
  156. data/app/views/picture_files/_index_event.html.erb +0 -53
  157. data/app/views/picture_files/_index_shelf.html.erb +0 -53
  158. data/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
  159. data/spec/dummy/solr/test/data/index/_20i.fdt +0 -0
  160. data/spec/dummy/solr/test/data/index/_20i.fdx +0 -0
  161. data/spec/dummy/solr/test/data/index/_20i.fnm +0 -0
  162. data/spec/dummy/solr/test/data/index/_20i.nvd +0 -0
  163. data/spec/dummy/solr/test/data/index/_20i.nvm +0 -0
  164. data/spec/dummy/solr/test/data/index/_20i.si +0 -0
  165. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.doc +0 -0
  166. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.pos +0 -0
  167. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.tim +0 -0
  168. data/spec/dummy/solr/test/data/index/_20i_Lucene41_0.tip +0 -0
  169. data/spec/dummy/solr/test/data/index/_20j.fdt +0 -0
  170. data/spec/dummy/solr/test/data/index/_20j.fdx +0 -0
  171. data/spec/dummy/solr/test/data/index/_20j.fnm +0 -0
  172. data/spec/dummy/solr/test/data/index/_20j.nvd +0 -0
  173. data/spec/dummy/solr/test/data/index/_20j.nvm +0 -0
  174. data/spec/dummy/solr/test/data/index/_20j.si +0 -0
  175. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.doc +0 -0
  176. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.pos +0 -0
  177. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.tim +0 -0
  178. data/spec/dummy/solr/test/data/index/_20j_Lucene41_0.tip +0 -0
  179. data/spec/dummy/solr/test/data/index/_20k.fdt +0 -0
  180. data/spec/dummy/solr/test/data/index/_20k.fdx +0 -0
  181. data/spec/dummy/solr/test/data/index/_20k.fnm +0 -0
  182. data/spec/dummy/solr/test/data/index/_20k.nvd +0 -0
  183. data/spec/dummy/solr/test/data/index/_20k.nvm +0 -0
  184. data/spec/dummy/solr/test/data/index/_20k.si +0 -0
  185. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.doc +0 -0
  186. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.pos +0 -0
  187. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.tim +0 -0
  188. data/spec/dummy/solr/test/data/index/_20k_Lucene41_0.tip +0 -0
  189. data/spec/dummy/solr/test/data/index/segments_2uc +0 -0
  190. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003680 +0 -0
  191. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003681 +0 -0
  192. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000003682 +0 -0
@@ -8,12 +8,13 @@
8
8
  <%= auto_discovery_link_tag(:rss, url_for(params.merge(format: :rss, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
9
9
  <%= auto_discovery_link_tag(:atom, url_for(params.merge(format: :atom, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
10
10
  <%- end -%>
11
- <% if controller.action_name == 'show' %>
11
+ <% if %w(show edit).include?(controller.action_name) %>
12
12
  <% if Setting.book_jacket.source == :google %>
13
13
  <script type="text/javascript" src="https://www.google.com/jsapi"></script>
14
14
  <%= render 'manifestations/google_book_thumbnail_header' %>
15
15
  <% end %>
16
16
  <% end %>
17
+ <link rel="search" type="application/opensearchdescription+xml" title="<%= LibraryGroup.site_config.display_name.localize %>" href="<%= page_opensearch_url(format: :xml) %>">
17
18
  </head>
18
19
  <body>
19
20
 
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.license')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <tr>
@@ -44,7 +45,7 @@
44
45
 
45
46
  <div id="submenu" class="ui-corner-all ui-widget-content">
46
47
  <ul>
47
- <%- if can? :create, ContentType -%>
48
+ <%- if can? :create, License -%>
48
49
  <li><%= link_to t('page.new', model: t('activerecord.models.license')), new_license_path -%></li>
49
50
  <%- end -%>
50
51
  </ul>
@@ -1,6 +1,7 @@
1
- <div id="manifestation_relationship_detail" class="ui-corner-all ui-widget-manifestation_relationship">
1
+ <div id="manifestation_relationship_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.manifestation_relationship_type')) -%></h1>
3
- <div id="manifestation_relationship_list">
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <tr>
@@ -42,9 +43,9 @@
42
43
  </div>
43
44
  </div>
44
45
 
45
- <div id="submenu" class="ui-corner-all ui-widget-manifestation_relationship">
46
+ <div id="submenu" class="ui-corner-all ui-widget-content">
46
47
  <ul>
47
- <%- if can? :create, ContentType -%>
48
+ <%- if can? :create, ManifestationRelationshipType -%>
48
49
  <li><%= link_to t('page.new', model: t('activerecord.models.manifestation_relationship_type')), new_manifestation_relationship_type_path -%></li>
49
50
  <%- end -%>
50
51
  </ul>
@@ -3,7 +3,7 @@
3
3
  <td class="call_number_table">
4
4
  <%= item.shelf.library.display_name.localize -%>
5
5
  <br />
6
- <%= link_to item.shelf.display_name.localize, library_shelf_path(item.shelf.library, item.shelf) -%>
6
+ <%= link_to item.shelf.display_name.localize, shelf -%>
7
7
  <br />
8
8
  <% if defined?(EnjuCirculation) %>
9
9
  <%= item.circulation_status.display_name.localize if item.circulation_status -%>
@@ -2,7 +2,10 @@
2
2
  <li>
3
3
  <%= link_to t('page.edit'), edit_manifestation_path(@manifestation) -%>
4
4
  </li>
5
- <li><%= link_to t('manifestation.edit_item'), items_path(manifestation_id: @manifestation.id) -%></li>
5
+ <li>
6
+ <%= link_to t('manifestation.edit_item'), items_path(manifestation_id: @manifestation.id) -%>
7
+ (<%= link_to t('manifestation.new_item'), new_item_path(manifestation_id: @manifestation.id) %>)
8
+ </li>
6
9
  <li><%= link_to t('manifestation.add_derivation'), manifestations_path(parent_id: @manifestation.id, mode: 'add') -%></li>
7
10
  <% if can? :delete, @manifestation %>
8
11
  <li><%= link_to t('page.destroy'), @manifestation, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
@@ -62,14 +62,14 @@
62
62
  <div class="field">
63
63
  <%= f.label :series_statement_string -%><br />
64
64
  <%= f.fields_for :series_statements do |series_form| %>
65
- <%= series_form.label :original_title %><br />
65
+ <%= series_form.label :original_title %>
66
66
  <%= series_form.text_field :original_title, class: 'resource_title' %>
67
67
  <%= series_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %><br />
68
- <%= series_form.label :title_transcription %><br />
68
+ <%= series_form.label :title_transcription %>
69
69
  <%= series_form.text_field :title_transcription, class: 'resource_title' %><br />
70
- <%= series_form.label :volume_number_string %><br />
70
+ <%= series_form.label :volume_number_string %>
71
71
  <%= series_form.text_field :volume_number_string %><br />
72
- <%= series_form.label :creator_string %><br />
72
+ <%= series_form.label :creator_string %>
73
73
  <%= series_form.text_field :creator_string %><br />
74
74
  <%= series_form.label :series_master %>
75
75
  <%= series_form.check_box :series_master %>
@@ -140,7 +140,7 @@
140
140
  <%= f.label :identifier -%><br />
141
141
  <%= f.fields_for :identifiers do |identifier_form| %>
142
142
  <%= identifier_form.select(:identifier_type_id, @identifier_types.collect{|i| [i.display_name.localize, i.id]}) %>
143
- <%= identifier_form.text_field :body, class: 'resource_isbn_issn', style: 'ime-mode: disabled' -%>
143
+ <%= identifier_form.text_field :body, class: 'resource_identifier_body', style: 'ime-mode: disabled' -%>
144
144
  <%= identifier_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %>
145
145
  <% end %>
146
146
  <p><%= f.link_to_add t('page.add'), :identifiers %></p>
@@ -62,9 +62,14 @@
62
62
  <tr>
63
63
  <td><%= t('page.identifier') -%>:</td>
64
64
  <td>
65
- <% manifestation.identifiers.each do |identifier| %>
66
- <%= "#{identifier.identifier_type.display_name.localize}: #{identifier.body}" %>
67
- <% end %>
65
+ <ul>
66
+ <% manifestation.identifiers.each do |identifier| %>
67
+ <li>
68
+ <%= identifier.identifier_type.display_name.localize %>:
69
+ <%= identifier_link(identifier) %>
70
+ </li>
71
+ <% end %>
72
+ </ul>
68
73
  </td>
69
74
  </tr>
70
75
  <%- end -%>
@@ -64,9 +64,14 @@
64
64
  <tr>
65
65
  <td><%= t('page.identifier') -%>:</td>
66
66
  <td>
67
- <% manifestation.identifiers.each do |identifier| %>
68
- <%= "#{identifier.identifier_type.display_name.localize}: #{identifier.body}" %>
69
- <% end %>
67
+ <ul>
68
+ <% manifestation.identifiers.each do |identifier| %>
69
+ <li>
70
+ <%= identifier.identifier_type.display_name.localize %>:
71
+ <%= identifier_link(identifier) %>
72
+ </li>
73
+ <% end %>
74
+ </ul>
70
75
  </td>
71
76
  </tr>
72
77
  <%- end -%>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.medium_of_performance')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <tr>
@@ -44,7 +45,7 @@
44
45
 
45
46
  <div id="submenu" class="ui-corner-all ui-widget-content">
46
47
  <ul>
47
- <%- if can? :create, ContentType -%>
48
+ <%- if can? :create, MediumOfPerformance -%>
48
49
  <li><%= link_to t('page.new', model: t('activerecord.models.medium_of_performance')), new_medium_of_performance_path -%></li>
49
50
  <%- end -%>
50
51
  </ul>
@@ -4,7 +4,7 @@ Title: <%= @manifestation.original_title %>
4
4
  Creator(s): <%= @manifestation.creators.readable_by(@user).collect(&:full_name).join("/") %>
5
5
  Contributor(s): <%= @manifestation.contributors.readable_by(@user).collect(&:full_name).join("/") %>
6
6
  Publisher(s): <%= @manifestation.publishers.readable_by(@user).collect(&:full_name).join("/") %>
7
- ISBN: <%= @manifestation.identifier_contents(:isbn) %>
7
+ ISBN: <%= @manifestation.identifier_contents(:isbn).join(" ") %>
8
8
  URL: <%= @manifestation.access_address %>
9
9
  Holding:
10
10
  <% @manifestation.items.for_checkout.on_shelf.each do |item| -%>
@@ -4,7 +4,7 @@
4
4
  著者: <%= @manifestation.creators.readable_by(@user).collect(&:full_name).join("/") %>
5
5
  編者: <%= @manifestation.contributors.readable_by(@user).collect(&:full_name).join("/") %>
6
6
  出版者: <%= @manifestation.publishers.readable_by(@user).collect(&:full_name).join("/") %>
7
- ISBN: <%= @manifestation.identifier_contents(:isbn) %>
7
+ ISBN: <%= @manifestation.identifier_contents(:isbn).join(" ") %>
8
8
  URL: <%= @manifestation.access_address %>
9
9
  所蔵場所:
10
10
  <% @manifestation.items.for_checkout.on_shelf.each do |item| -%>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.picture_file')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <tr>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.picture_file')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <h2 class="resource_title">
6
7
  [P] <%= link_to agent.full_name, agent -%>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.picture_file')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <h2 class="resource_title">
6
7
  [M] <%= link_to manifestation.original_title, manifestation -%>
@@ -51,14 +51,22 @@
51
51
  <ul>
52
52
  <li><%= link_to t('page.edit'), edit_picture_file_path(@picture_file) -%></li>
53
53
  <% if @picture_file.picture_attachable_type? %>
54
- <%- case when @picture_file.picture_attachable.is_a?(Shelf) -%>
55
- <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), shelf_picture_files_path(@picture_file.picture_attachable) -%></li>
56
- <%- when @picture_file.picture_attachable.is_a?(Manifestation) -%>
57
- <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), manifestation_picture_files_path(@picture_file.picture_attachable) -%></li>
58
- <%- when @picture_file.picture_attachable.is_a?(Agent) -%>
59
- <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), agent_picture_files_path(@picture_file.picture_attachable) -%></li>
54
+ <%- case @picture_attachale.picture_attachable.class.name when "Shelf" -%>
55
+ <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path(shelf_id: @picture_file.picture_attachable_id) -%></li>
56
+ <%- when "Manifestation" -%>
57
+ <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path(manifestation_id: @picture_file.picture_attachable_id) -%></li>
58
+ <%- when "Agent" -%>
59
+ <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path(agent_id: @picture_file.picture_attachable_id) -%></li>
60
60
  <%- else -%>
61
- <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path -%></li>
61
+ <%- if defined?(EnjuEvent) %>
62
+ <% if @picture_file.picture_attachable.class.name == 'Event' %>
63
+ <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path(event_id: @picture_file.picture_attachable_id) -%></li>
64
+ <% else %>
65
+ <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path -%></li>
66
+ <% end %>
67
+ <% else %>
68
+ <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path -%></li>
69
+ <% end %>
62
70
  <%- end -%>
63
71
  <% else %>
64
72
  <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path -%></li>
@@ -1,6 +1,7 @@
1
- <div id="produce_detail" class="ui-corner-all ui-widget-produce">
1
+ <div id="produce_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.produce_type')) -%></h1>
3
- <div id="produce_list">
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <tr>
@@ -42,9 +43,9 @@
42
43
  </div>
43
44
  </div>
44
45
 
45
- <div id="submenu" class="ui-corner-all ui-widget-produce">
46
+ <div id="submenu" class="ui-corner-all ui-widget-content">
46
47
  <ul>
47
- <%- if can? :create, ContentType -%>
48
+ <%- if can? :create, ProduceType -%>
48
49
  <li><%= link_to t('page.new', model: t('activerecord.models.produce_type')), new_produce_type_path -%></li>
49
50
  <%- end -%>
50
51
  </ul>
@@ -1,6 +1,7 @@
1
- <div id="realize_detail" class="ui-corner-all ui-widget-realize">
1
+ <div id="realize_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.realize_type')) -%></h1>
3
- <div id="realize_list">
3
+ <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <tr>
@@ -42,9 +43,9 @@
42
43
  </div>
43
44
  </div>
44
45
 
45
- <div id="submenu" class="ui-corner-all ui-widget-realize">
46
+ <div id="submenu" class="ui-corner-all ui-widget-content">
46
47
  <ul>
47
- <%- if can? :create, ContentType -%>
48
+ <%- if can? :create, RealizeType -%>
48
49
  <li><%= link_to t('page.new', model: t('activerecord.models.realize_type')), new_realize_type_path -%></li>
49
50
  <%- end -%>
50
51
  </ul>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.resource_import_file')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <table class="table table-striped index">
6
7
  <thead>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.series_statement')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <div class="search_form">
6
7
  <%= form_for :series_statements, url: series_statements_path, html: {method: 'get'} do -%>
@@ -1,6 +1,7 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
2
  <h1 class="title"><%= t('page.listing', model: t('activerecord.models.series_statement')) -%></h1>
3
3
  <div id="content_list">
4
+ <p id="notice"><%= notice %></p>
4
5
 
5
6
  <div class="search_form">
6
7
  <%= form_for :series_statements, url: series_statement_merge_list_series_statements_path(@series_statement_merge_list), html: {method: 'get'} do -%>
@@ -190,7 +190,7 @@ en:
190
190
  title_transcription: Title transcription
191
191
  note: Note
192
192
  series_master: Master
193
- volume_nunber_string: Volume number
193
+ volume_number_string: Volume number
194
194
  creator_string: Creator
195
195
  country:
196
196
  name: Name
@@ -326,6 +326,75 @@ en:
326
326
  creator: Creator
327
327
  contributor: Contributor
328
328
  publisher: Publisher
329
+ library_group_agent: "Agents of %{library_group_name}"
330
+ work_agent: "Creaters of %{work_title}"
331
+ expression_agent: "Realizers of %{expression_title}"
332
+ manifestation_agent: "Producers of %{manifestation_title}"
333
+ activate_as_user: "Activate as an user"
334
+ deactivate: "Deactivate this user"
335
+ add: "Add a agent"
336
+ publication: "Publications"
337
+ recent_publication: "Recent publications"
338
+ all_publication: "All publications"
339
+ other_address: "The other address"
340
+ add_derivation: "Add derivatation"
341
+ creator: "Creator"
342
+ contributor: "Contributor"
343
+ publisher: "Publisher"
344
+ owner: "Owner"
345
+
346
+ manifestation:
347
+ date_of_acquisition: "Date of acquisition"
348
+ physical_description: "Physical description"
349
+ edit: "Edit this manifestation"
350
+ add_next_issue: "Add a next issue"
351
+ edit_creator: "Edit creators"
352
+ edit_contributor: "Edit contributors"
353
+ edit_publisher: "Edit publishers"
354
+ edit_expression: "Edit expressions"
355
+ edit_item: "Edit items"
356
+ expressions_manifestation: "Manifestations for %{expression_title}"
357
+ library_group_manifestation: "Manifestations in %{library_group_name}"
358
+ reserve_this: "Reserve this manifestation"
359
+ cancel_reservation: "Cancel this reservation"
360
+ user_who_bookmark_this_resource: "Users who bookmark this resource"
361
+ query_search_result: "Search results for %{query} in %{library_group_name}"
362
+ serial: "Serial"
363
+ number: "Number"
364
+ invalid_isbn: "Invalid ISBN."
365
+ already_imported: "This manifestation is already imporeted."
366
+ record_not_found: "Record not found."
367
+ add: "Add a manifestation"
368
+ specify_expression: "Specify the expression."
369
+ pickup: "Pick up"
370
+ showing_all_record: "Showing all records."
371
+ showing_reservable_record: "Showing reservable records."
372
+ reservable: "Reservable"
373
+ all_result: "All results"
374
+ reservable_list: "Reservable list"
375
+ post_to_twitter: "post to Twitter"
376
+ web: "Web"
377
+ send_email: "Email this information"
378
+ attachment_file: "Attachment file"
379
+ add_derivation: "Add a derivation"
380
+ new_item: "New item"
381
+
382
+ item:
383
+ current_checkout: "Current checkout"
384
+ donor: "Donors"
385
+ library_group_item: "Items in %{library_group_name}"
386
+ add: "Add an item"
387
+ specify_manifestation: "Specify the manifestation."
388
+ this_item_is_reserved: "This item is reserved!"
389
+ create_shelf_first: "You should create a shelf first."
390
+ this_item_include_supplement: "This item includes supplements."
391
+ all_item: "All items"
392
+ add_new_copy: "Add a new copy"
393
+ no_manifestation: "No manifestation"
394
+ no_number: "No number"
395
+ add_lending_policy: "Add a new lending policy"
396
+ edit_exemplification: "Edit exemplification"
397
+ accepted_at: "Accepted at"
329
398
 
330
399
  page:
331
400
  add: Add
@@ -44,7 +44,7 @@ ja:
44
44
  manifestation:
45
45
  original_title: 原題
46
46
  title_alternative: 代替タイトル
47
- title_transcription: タイトルよみ
47
+ title_transcription: タイトルのヨミ
48
48
  classification_number: 分類番号
49
49
  manifestation_identifier: 識別子
50
50
  date_of_publication: 出版日
@@ -114,13 +114,13 @@ ja:
114
114
  last_name: 姓
115
115
  middle_name: ミドルネーム
116
116
  first_name: 名
117
- last_name_transcription: 姓(よみ)
118
- middle_name_transcription: ミドルネーム(よみ)
119
- first_name_transcription: 名(よみ)
117
+ last_name_transcription: 姓(ヨミ)
118
+ middle_name_transcription: ミドルネーム(ヨミ)
119
+ first_name_transcription: 名(ヨミ)
120
120
  corporate_name: 会社名
121
- corporate_name_transcription: 企業名(よみ)
121
+ corporate_name_transcription: 企業名(ヨミ)
122
122
  full_name: フルネーム
123
- full_name_transcription: フルネーム(よみ)
123
+ full_name_transcription: フルネーム(ヨミ)
124
124
  full_name_alternative: フルネーム代替
125
125
  deleted_at: 削除時刻
126
126
  zip_code_1: 郵便番号1
@@ -182,12 +182,12 @@ ja:
182
182
  original_title: シリーズ名
183
183
  numbering: シリーズ番号
184
184
  title_subseries: 副シリーズ名
185
- title_subseries_transcription: 副シリーズ名よみ
185
+ title_subseries_transcription: 副シリーズ名のヨミ
186
186
  numbering_subseries: 副シリーズ番号
187
187
  work: 著作
188
188
  series_statement_identifier: シリーズ識別子
189
189
  issn: ISSN
190
- title_transcription: シリーズ名よみ
190
+ title_transcription: シリーズ名のヨミ
191
191
  note: 注記
192
192
  series_master: マスタ
193
193
  volume_number_string: シリーズ巻号
@@ -330,6 +330,75 @@ ja:
330
330
  creator: 著者
331
331
  contributor: 協力者・編者
332
332
  publisher: 出版社
333
+ library_group_agent: "%{library_group_name} の人物・団体"
334
+ work_agent: "%{work_title} の著作者"
335
+ expression_agent: "%{expression_title} の編者"
336
+ manifestation_agent: "%{manifestation_title} の出版者"
337
+ activate_as_user: "利用者として登録する"
338
+ deactivate: "利用者登録を解除する"
339
+ add: "人物・団体を追加する"
340
+ publication: "出版物"
341
+ recent_publication: "最近の出版物"
342
+ all_publication: "全ての出版物"
343
+ other_address: "他の住所"
344
+ add_derivation: "派生人物・団体を追加"
345
+ creator: "著者"
346
+ contributor: "協力者・編者"
347
+ publisher: "出版者"
348
+ owner: "所有者"
349
+
350
+ manifestation:
351
+ date_of_acquisition: "受入日"
352
+ physical_description: "ページ数と大きさ"
353
+ add_next_issue: "次の号を追加"
354
+ edit_creator: "著者を編集"
355
+ edit_contributor: "編者を編集"
356
+ edit_publisher: "出版者を編集"
357
+ edit_expression: "協力した資料を編集"
358
+ edit_item: "所蔵を編集"
359
+ agent_manifestation: "%{agent_name} の資料"
360
+ expressions_manifestation: "%{expression_title} の出版した資料"
361
+ library_group_manifestation: "%{library_group_name} にある資料"
362
+ reserve_this: "この資料を予約する"
363
+ cancel_reservation: "この資料の予約を解除する"
364
+ user_who_bookmark_this_resource: "この資料をブックマークしている利用者"
365
+ query_search_result: "検索語 %{query} による %{library_group_name} の資料の検索結果"
366
+ serial: "定期刊行物"
367
+ number: "巻号"
368
+ invalid_isbn: "無効なISBNです。"
369
+ already_imported: "すでにインポートされています。"
370
+ record_not_found: "資料が見つかりませんでした。"
371
+ add: "資料を追加する"
372
+ specify_expression: "協力した資料を指定してください。"
373
+ pickup: "ピックアップ"
374
+ showing_all_record: "すべての資料を表示しています。"
375
+ showing_reservable_record: "予約可能な資料のみを表示しています。"
376
+ reservable: "予約可能"
377
+ all_result: "すべての検索結果"
378
+ reservable_list: "予約可能な資料の一覧"
379
+ post_to_twitter: "Twitterに送信する"
380
+ web: "Web"
381
+ send_email: "書誌情報を電子メールで送信する"
382
+ attachment_file: "添付ファイル"
383
+ add_derivation: "派生資料を追加"
384
+ new_item: "新規作成"
385
+
386
+ item:
387
+ current_checkout: "現在の貸出"
388
+ donor: "寄贈者"
389
+ library_group_item: "%{library_group_name}にある所蔵情報"
390
+ add: "所蔵情報を追加する"
391
+ specify_manifestation: "資料を指定してください。"
392
+ this_item_is_reserved: "この資料は予約されています!"
393
+ create_shelf_first: "最初に書棚を作成してください。"
394
+ this_item_include_supplement: "この資料は付録を含んでいます。"
395
+ all_item: "全ての所蔵情報"
396
+ add_new_copy: "複本を追加"
397
+ no_manifestation: "資料なし"
398
+ no_number: "番号なし"
399
+ add_lending_policy: "貸出規則の追加"
400
+ edit_exemplification: "書誌の付け替え"
401
+ accepted_at: "検収時刻"
333
402
 
334
403
  page:
335
404
  add: 追加
@@ -0,0 +1,5 @@
1
+ class AddExtentOfTextToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :extent_of_text, :text
4
+ end
5
+ end
@@ -55,5 +55,18 @@ module EnjuBiblio
55
55
  end
56
56
  agents_list.join(" ").html_safe
57
57
  end
58
+
59
+ def identifier_link(identifier)
60
+ case identifier.identifier_type.name
61
+ when 'doi'
62
+ link_to identifier.body, "http://dx.doi.org/#{identifier.body}"
63
+ when 'iss_itemno'
64
+ link_to identifier.body, "http://iss.ndl.go.jp/books/#{identifier.body}"
65
+ when 'lccn'
66
+ link_to identifier.body, "http://lccn.loc.gov/#{identifier.body}"
67
+ else
68
+ identifier.body
69
+ end
70
+ end
58
71
  end
59
72
  end
@@ -1,10 +1,8 @@
1
1
  require 'enju_seed'
2
- require 'inherited_resources'
3
2
  require 'paper_trail'
4
3
  require 'paperclip'
5
4
  require 'paperclip-meta'
6
5
  require 'validates_timeliness'
7
- require 'has_scope'
8
6
  require 'dynamic_form'
9
7
  require 'simple_form'
10
8
  require 'resque_mailer'
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre56"
2
+ VERSION = "0.1.0.pre57"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  content_type_00001:
3
3
  id: 1
4
- name: text
4
+ name: text
5
5
  display_name: "en: text\r\n\
6
6
  ja: 文字"
7
7
  note:
@@ -1,26 +1,47 @@
1
1
  # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
2
 
3
- one:
3
+ identifier_type_00001:
4
4
  name: isbn
5
5
  display_name: ISBN
6
6
  note:
7
7
  position: 1
8
8
  id: 1
9
9
 
10
- two:
10
+ identifier_type_00002:
11
11
  name: issn
12
12
  display_name: ISSN
13
13
  note:
14
14
  position: 2
15
15
  id: 2
16
16
 
17
- three:
17
+ identifier_type_00003:
18
18
  name: jpno
19
19
  display_name: JPNO
20
20
  note:
21
21
  position: 3
22
22
  id: 3
23
23
 
24
+ identifier_type_00004:
25
+ name: doi
26
+ display_name: DOI
27
+ note:
28
+ position: 4
29
+ id: 4
30
+
31
+ identifier_type_00005:
32
+ name: iss_itemno
33
+ display_name: NDL Search
34
+ note:
35
+ position: 5
36
+ id: 5
37
+
38
+ identifier_type_00006:
39
+ name: lccn
40
+ display_name: LCCN
41
+ note:
42
+ position: 6
43
+ id: 6
44
+
24
45
  # == Schema Information
25
46
  #
26
47
  # Table name: identifier_types
@@ -1,6 +1,7 @@
1
1
  require 'active_record/fixtures'
2
2
  require 'tasks/carrier_type'
3
3
  require 'tasks/content_type'
4
+ require 'tasks/identifier_type'
4
5
  require 'tasks/item'
5
6
 
6
7
  namespace :enju_biblio do
@@ -27,6 +28,7 @@ namespace :enju_biblio do
27
28
  update_item
28
29
  update_carrier_type
29
30
  update_content_type
31
+ update_identifier_type
30
32
  end
31
33
  puts 'enju_biblio: The upgrade completed successfully.'
32
34
  end