enju_biblio 0.3.13 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/agent_import_results_controller.rb +1 -1
  3. data/app/controllers/items_controller.rb +2 -2
  4. data/app/controllers/manifestations_controller.rb +4 -4
  5. data/app/controllers/resource_import_results_controller.rb +2 -2
  6. data/app/models/identifier.rb +4 -0
  7. data/app/models/item.rb +3 -2
  8. data/app/models/manifestation.rb +5 -4
  9. data/app/models/picture_file.rb +1 -1
  10. data/app/models/resource_import_file.rb +8 -4
  11. data/app/views/agent_import_results/{index.txt.ruby → index.text.ruby} +0 -0
  12. data/app/views/agent_relationship_types/index.html.erb +3 -3
  13. data/app/views/items/index.text.ruby +13 -0
  14. data/app/views/manifestations/_title.html.erb +1 -1
  15. data/app/views/manifestations/index.text.ruby +13 -0
  16. data/app/views/manifestations/{show.txt.ruby → show.text.ruby} +0 -0
  17. data/app/views/resource_import_results/{index.txt.ruby → index.text.ruby} +0 -0
  18. data/lib/enju_biblio/version.rb +1 -1
  19. data/spec/controllers/items_controller_spec.rb +5 -0
  20. data/spec/controllers/manifestations_controller_spec.rb +2 -2
  21. data/spec/fixtures/items.yml +1 -0
  22. data/spec/fixtures/manifestations.yml +2 -1
  23. data/spec/models/manifestation_spec.rb +15 -1
  24. data/spec/models/picture_file_spec.rb +7 -1
  25. data/spec/models/resource_import_file_spec.rb +18 -0
  26. data/spec/views/agent_import_results/{index.txt.ruby_spec.rb → index.text.ruby_spec.rb} +1 -1
  27. data/spec/views/manifestations/{index.txt.ruby_spec.rb → index.text.ruby_spec.rb} +1 -1
  28. data/spec/views/manifestations/{show.txt.ruby_spec.rb → show.text.ruby_spec.rb} +1 -1
  29. data/spec/views/resource_import_results/{index.txt.ruby_spec.rb → index.text.ruby_spec.rb} +1 -1
  30. metadata +525 -525
  31. data/app/views/items/index.txt.erb +0 -4
  32. data/app/views/manifestations/index.txt.ruby +0 -7
@@ -1,4 +0,0 @@
1
- title,isbn item_identifier call_number created_at
2
- <%- @items.each do |item| -%>
3
- "<%=h item.manifestation.original_title.gsub(/"/, '""') if item.manifestation -%>" <%=h item.manifestation.identifier_contents(:isbn).join("; ") %> <%=h item.item_identifier -%> <%=h item.call_number -%> <%=h item.created_at %><%= "\n" -%>
4
- <%- end -%>
@@ -1,7 +0,0 @@
1
- Manifestation.csv_header(
2
- role: current_user_role_name
3
- ).to_csv(col_sep: "\t") + @manifestations.map{|manifestation|
4
- manifestation.to_hash(
5
- role: current_user_role_name
6
- ).values.to_csv(col_sep: "\t")
7
- }.join