enju_biblio 0.1.0.pre37 → 0.1.0.pre38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/addresses.js +2 -0
  3. data/app/assets/javascripts/identifier_types.js +2 -0
  4. data/app/assets/javascripts/identifiers.js +2 -0
  5. data/app/assets/stylesheets/addresses.css +4 -0
  6. data/app/assets/stylesheets/identifier_types.css +4 -0
  7. data/app/assets/stylesheets/identifiers.css +4 -0
  8. data/app/controllers/addresses_controller.rb +2 -0
  9. data/app/controllers/carrier_types_controller.rb +85 -5
  10. data/app/controllers/identifier_types_controller.rb +84 -0
  11. data/app/controllers/identifiers_controller.rb +14 -0
  12. data/app/controllers/manifestations_controller.rb +14 -21
  13. data/app/helpers/addresses_helper.rb +2 -0
  14. data/app/helpers/identifier_types_helper.rb +2 -0
  15. data/app/helpers/identifiers_helper.rb +2 -0
  16. data/app/models/carrier_type.rb +2 -0
  17. data/app/models/enju_biblio/ability.rb +12 -0
  18. data/app/models/identifier.rb +65 -0
  19. data/app/models/identifier_type.rb +21 -0
  20. data/app/models/import_request.rb +1 -0
  21. data/app/models/manifestation.rb +28 -87
  22. data/app/models/page_sweeper.rb +0 -2
  23. data/app/models/resource_import_file.rb +34 -18
  24. data/app/views/addresses/_form.html.erb +57 -0
  25. data/app/views/addresses/edit.html.erb +6 -0
  26. data/app/views/addresses/index.html.erb +41 -0
  27. data/app/views/addresses/new.html.erb +5 -0
  28. data/app/views/addresses/show.html.erb +55 -0
  29. data/app/views/carrier_types/_form.html.erb +4 -1
  30. data/app/views/carrier_types/index.html.erb +1 -1
  31. data/app/views/identifier_types/_form.html.erb +22 -0
  32. data/app/views/identifier_types/edit.html.erb +13 -0
  33. data/app/views/identifier_types/index.html.erb +45 -0
  34. data/app/views/identifier_types/new.html.erb +12 -0
  35. data/app/views/identifier_types/show.html.erb +24 -0
  36. data/app/views/identifiers/_form.html.erb +30 -0
  37. data/app/views/identifiers/edit.html.erb +15 -0
  38. data/app/views/identifiers/index.html.erb +33 -0
  39. data/app/views/identifiers/new.html.erb +14 -0
  40. data/app/views/identifiers/show.html.erb +29 -0
  41. data/app/views/items/index.csv.erb +1 -1
  42. data/app/views/items/index.html.erb +2 -1
  43. data/app/views/manifestations/_form.html.erb +17 -36
  44. data/app/views/manifestations/_show.mods.builder +6 -2
  45. data/app/views/manifestations/_show.rdf.builder +7 -6
  46. data/app/views/manifestations/_show_detail_librarian.html.erb +5 -15
  47. data/app/views/manifestations/_show_detail_user.html.erb +5 -15
  48. data/app/views/manifestations/_show_index.html.erb +1 -1
  49. data/app/views/manifestations/index.csv.erb +1 -1
  50. data/app/views/manifestations/index.rss.builder +3 -1
  51. data/app/views/manifestations/show.mobile.erb +1 -1
  52. data/config/locales/translation_en.yml +14 -7
  53. data/config/locales/translation_ja.yml +15 -8
  54. data/config/routes.rb +6 -8
  55. data/db/migrate/005_create_manifestations.rb +0 -12
  56. data/db/migrate/20130506175303_create_identifier_types.rb +12 -0
  57. data/db/migrate/20130506175834_create_identifiers.rb +14 -0
  58. data/lib/enju_biblio/version.rb +1 -1
  59. data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +27 -0
  60. data/spec/controllers/identifier_types_controller_spec.rb +167 -0
  61. data/spec/controllers/identifiers_controller_spec.rb +446 -0
  62. data/spec/controllers/import_requests_controller_spec.rb +1 -1
  63. data/spec/controllers/manifestations_controller_spec.rb +12 -10
  64. data/spec/dummy/app/models/ability.rb +12 -0
  65. data/spec/dummy/db/development.sqlite3 +0 -0
  66. data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
  67. data/spec/dummy/db/schema.rb +26 -16
  68. data/spec/dummy/db/test.sqlite3 +0 -0
  69. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  70. data/spec/dummy/solr/data/test/index/segments_myc +0 -0
  71. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  72. data/spec/factories/identifier.rb +6 -0
  73. data/spec/factories/identifier_type.rb +5 -0
  74. data/spec/fixtures/identifier_types.yml +29 -0
  75. data/spec/fixtures/identifiers.yml +113 -0
  76. data/spec/fixtures/manifestations.yml +0 -137
  77. data/spec/fixtures/subject_heading_types.yml +39 -0
  78. data/spec/fixtures/subject_types.yml +4 -4
  79. data/spec/models/identifier_spec.rb +22 -0
  80. data/spec/models/identifier_type_spec.rb +21 -0
  81. data/spec/models/manifestation_spec.rb +0 -11
  82. data/spec/models/resource_import_file_spec.rb +7 -7
  83. data/spec/routing/manifestations_routing_spec.rb +1 -1
  84. metadata +66 -16
  85. data/app/views/manifestations/_show_periodical_master.html.erb +0 -23
  86. data/app/views/manifestations/_show_series_statement.html.erb +0 -30
  87. data/spec/dummy/solr/data/test/index/segments_l8s +0 -0
@@ -1,23 +0,0 @@
1
- <%= render 'manifestations/title', :manifestation => @manifestation.root_series_statement.manifestation -%>
2
-
3
- <p>
4
- <strong><%= t('activerecord.attributes.series_statement.original_title') -%></strong>
5
- <%= @manifestation.root_series_statement.original_title %>
6
- </p>
7
-
8
- <p>
9
- <strong><%= t('activerecord.attributes.series_statement.title_transcription') -%></strong>
10
- <%= @manifestation.root_series_statement.title_transcription %>
11
- </p>
12
-
13
- <p>
14
- <strong><%= t('activerecord.attributes.series_statement.issn') -%></strong>
15
- <%= @manifestation.root_series_statement.issn %>
16
- </p>
17
-
18
- <p>
19
- <strong><%= t('activerecord.attributes.series_statement.series_statement_identifier') -%></strong>
20
- <%= @manifestation.root_series_statement.series_statement_identifier %>
21
- </p>
22
-
23
- <%= render 'series_statements/manifestation_list', :series_statement => @manifestation.root_series_statement -%>
@@ -1,30 +0,0 @@
1
- <table class="table table-striped" id="resource_detail">
2
- <tr>
3
- <td style="width: 200px"><%= t('activerecord.attributes.series_statement.title_transcription') -%></td>
4
- <td style="width: 490px"><%= @series_statement.title_transcription %></td>
5
- </tr>
6
- <tr>
7
- <td style="width: 200px"><%= t('activerecord.attributes.series_statement.title_subseries') -%></td>
8
- <td style="width: 490px"><%= @series_statement.title_subseries %>
9
- <% if @series_statement.title_subseries_transcription? %>
10
- (<%= @series_statement.title_subseries_transcription %>)
11
- <% end %>
12
- </td>
13
- </tr>
14
- <tr>
15
- <td><%= t('activerecord.attributes.series_statement.root_manifestation_id') -%></td>
16
- <td><%= link_to @series_statement.root_manifestation.original_title, @series_statement.root_manifestation %></td>
17
- </tr>
18
- <tr>
19
- <td><%= t('activerecord.attributes.series_statement.issn') -%></td>
20
- <td><%= @series_statement.issn %></td>
21
- </tr>
22
- <tr>
23
- <td><%= t('activerecord.attributes.series_statement.series_statement_identifier') -%></td>
24
- <td><%= @series_statement.series_statement_identifier %></td>
25
- </tr>
26
- <tr>
27
- <td><%= t('activerecord.attributes.series_statement.note') -%></td>
28
- <td><%= @series_statement.note %></td>
29
- </tr>
30
- </table>