enju_biblio 0.1.0.pre34 → 0.1.0.pre35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/manifestations_controller.rb +29 -14
  3. data/app/models/manifestation.rb +30 -17
  4. data/app/models/page_sweeper.rb +1 -1
  5. data/app/models/series_statement.rb +3 -17
  6. data/app/views/manifestations/_form.html.erb +14 -3
  7. data/app/views/manifestations/_index_form_parent.html.erb +21 -0
  8. data/app/views/manifestations/_manifestation.html.erb +12 -12
  9. data/app/views/manifestations/_show_detail_librarian.html.erb +5 -1
  10. data/app/views/manifestations/_show_parent.html.erb +26 -0
  11. data/app/views/manifestations/_show_series_index.html.erb +1 -1
  12. data/app/views/manifestations/_show_series_statement.html.erb +2 -2
  13. data/app/views/manifestations/_submenu_parent.html.erb +8 -0
  14. data/app/views/manifestations/index.html.erb +6 -6
  15. data/app/views/series_statements/index.html.erb +1 -5
  16. data/config/locales/translation_en.yml +3 -0
  17. data/config/locales/translation_ja.yml +3 -0
  18. data/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
  19. data/lib/enju_biblio/version.rb +1 -1
  20. data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +44 -50
  21. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml +44 -50
  22. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +43 -49
  23. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +43 -49
  24. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +43 -49
  25. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +43 -49
  26. data/spec/cassette_library/Manifestation/should_import_isbn.yml +3643 -0
  27. data/spec/dummy/app/models/ability.rb +4 -8
  28. data/spec/dummy/db/development.sqlite3 +0 -0
  29. data/spec/dummy/db/schema.rb +3 -12
  30. data/spec/dummy/db/test.sqlite3 +0 -0
  31. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  32. data/spec/dummy/solr/data/test/index/segments_iwe +0 -0
  33. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  34. data/spec/fixtures/manifestations.yml +11 -9
  35. data/spec/fixtures/series_statements.yml +15 -2
  36. data/spec/models/manifestation_spec.rb +3 -5
  37. data/spec/models/series_statement_spec.rb +1 -3
  38. metadata +10 -30
  39. data/app/controllers/series_has_manifestations_controller.rb +0 -101
  40. data/app/models/series_has_manifestation.rb +0 -35
  41. data/app/views/manifestations/_serial_form.html.erb +0 -14
  42. data/app/views/manifestations/_submenu_series_statement.html.erb +0 -9
  43. data/app/views/series_has_manifestations/_form.html.erb +0 -27
  44. data/app/views/series_has_manifestations/edit.html.erb +0 -15
  45. data/app/views/series_has_manifestations/index.html.erb +0 -34
  46. data/app/views/series_has_manifestations/new.html.erb +0 -14
  47. data/app/views/series_has_manifestations/show.html.erb +0 -23
  48. data/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  49. data/spec/controllers/series_has_manifestations_controller_spec.rb +0 -443
  50. data/spec/dummy/solr/data/test/index/segments_gs2 +0 -0
  51. data/spec/fixtures/series_has_manifestations.yml +0 -35
  52. data/spec/models/series_has_manifestation_spec.rb +0 -21
  53. data/spec/routing/series_has_manifestations_routing_spec.rb +0 -35
  54. data/spec/views/series_has_manifestations/edit.html.erb_spec.rb +0 -21
  55. data/spec/views/series_has_manifestations/index.html.erb_spec.rb +0 -31
  56. data/spec/views/series_has_manifestations/new.html.erb_spec.rb +0 -21
  57. data/spec/views/series_has_manifestations/show.html.erb_spec.rb +0 -21
@@ -1,21 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "series_has_manifestations/new" do
4
- before(:each) do
5
- assign(:series_has_manifestation, stub_model(SeriesHasManifestation,
6
- :series_statement_id => 1,
7
- :manifestation_id => 1,
8
- :position => 1
9
- ).as_new_record)
10
- end
11
-
12
- it "renders new series_has_manifestation form" do
13
- render
14
-
15
- # Run the generator again with the --webrat flag if you want to use webrat matchers
16
- assert_select "form", :action => series_has_manifestations_path, :method => "post" do
17
- assert_select "input#series_has_manifestation_series_statement_id", :name => "series_has_manifestation[series_statement_id]"
18
- assert_select "input#series_has_manifestation_manifestation_id", :name => "series_has_manifestation[manifestation_id]"
19
- end
20
- end
21
- end
@@ -1,21 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "series_has_manifestations/show" do
4
- before(:each) do
5
- @series_has_manifestation = assign(:series_has_manifestation, stub_model(SeriesHasManifestation,
6
- :series_statement_id => 1,
7
- :manifestation_id => 1,
8
- :position => 1
9
- ))
10
- end
11
-
12
- it "renders attributes in <p>" do
13
- render
14
- # Run the generator again with the --webrat flag if you want to use webrat matchers
15
- rendered.should match(/1/)
16
- # Run the generator again with the --webrat flag if you want to use webrat matchers
17
- rendered.should match(/1/)
18
- # Run the generator again with the --webrat flag if you want to use webrat matchers
19
- rendered.should match(/1/)
20
- end
21
- end