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
@@ -18,36 +18,34 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ date:
22
+ - Tue, 30 Apr 2013 15:07:06 GMT
23
+ server:
24
+ - Apache
25
+ etag:
26
+ - '"fa6491c99dd53c6490a69b3c4eebc6e2"'
27
+ x-ua-compatible:
28
+ - IE=Edge,chrome=1
29
+ x-runtime:
30
+ - '0.157430'
21
31
  cache-control:
22
32
  - max-age=0, private, must-revalidate
23
- content-length:
24
- - '2811'
33
+ status:
34
+ - '200'
25
35
  content-type:
26
36
  - application/xml; charset=utf-8
27
- date:
28
- - Fri, 19 Apr 2013 04:25:50 GMT
29
- etag:
30
- - '"fa6491c99dd53c6490a69b3c4eebc6e2"'
31
- proxy-connection:
32
- - keep-alive
33
- server:
34
- - Apache
35
37
  set-cookie:
36
- - _front_session_id=db7bc19b587e94ea0a46ee570b20fd38; domain=.iss.ndl.go.jp;
37
- path=/; expires=Fri, 19-Apr-2013 05:25:50 GMT; HttpOnly
38
+ - _front_session_id=559a14930866ed448818ae1a3cc691bf; domain=.iss.ndl.go.jp;
39
+ path=/; expires=Tue, 30-Apr-2013 16:07:06 GMT; HttpOnly
38
40
  - serverid=1102; path=/
39
- status:
40
- - '200'
41
41
  vary:
42
42
  - Accept-Encoding,User-Agent
43
- via:
44
- - 1.0 webwasher (Webwasher 6.9.1.12571)
45
- x-powered-by:
46
- - Phusion Passenger (mod_rails/mod_rack) 2.2.15
47
- x-runtime:
48
- - '0.184228'
49
- x-ua-compatible:
50
- - IE=Edge,chrome=1
43
+ content-encoding:
44
+ - gzip
45
+ content-length:
46
+ - '1172'
47
+ connection:
48
+ - close
51
49
  body:
52
50
  encoding: ASCII-8BIT
53
51
  string: !binary |-
@@ -114,8 +112,8 @@ http_interactions:
114
112
  aHR0cDovL29wYWNzdnIwMS5saWJyYXJ5LnByZWYubmFyYS5qcC9teWxpbWVk
115
113
  aW8vc2VhcmNoL2Jvb2suZG8/YmliaWQ9NDI1ODI0Ii8+CiAgICA8L2l0ZW0+
116
114
  CiAgPC9jaGFubmVsPgo8L3Jzcz4K
117
- http_version: '1.1'
118
- recorded_at: Fri, 19 Apr 2013 04:25:53 GMT
115
+ http_version: '1.0'
116
+ recorded_at: Tue, 30 Apr 2013 15:07:06 GMT
119
117
  - request:
120
118
  method: get
121
119
  uri: http://iss.ndl.go.jp/books/R100000002-I000010712584-00.rdf
@@ -134,36 +132,32 @@ http_interactions:
134
132
  code: 200
135
133
  message: OK
136
134
  headers:
137
- cache-control:
138
- - max-age=0, private, must-revalidate
139
- content-type:
140
- - text/xml; charset=utf-8
141
135
  date:
142
- - Fri, 19 Apr 2013 04:25:50 GMT
143
- etag:
144
- - '"9ace307e1e90071196050a040cfe844a"'
145
- proxy-connection:
146
- - keep-alive
136
+ - Tue, 30 Apr 2013 15:07:09 GMT
147
137
  server:
148
138
  - Apache
149
- set-cookie:
150
- - _front_session_id=0027b0763e233d94aa65be1860b0a31f; domain=.iss.ndl.go.jp;
151
- path=/; expires=Fri, 19-Apr-2013 05:25:51 GMT; HttpOnly
152
- - serverid=1102; path=/
139
+ etag:
140
+ - '"9ace307e1e90071196050a040cfe844a"'
141
+ x-ua-compatible:
142
+ - IE=Edge,chrome=1
143
+ x-runtime:
144
+ - '0.905399'
145
+ cache-control:
146
+ - max-age=0, private, must-revalidate
153
147
  status:
154
148
  - '200'
155
- transfer-encoding:
156
- - chunked
149
+ content-type:
150
+ - application/rdf+xml; charset=utf-8
151
+ set-cookie:
152
+ - _front_session_id=45e2aa99055e0f62fa10b8d2cdddf828; domain=.iss.ndl.go.jp;
153
+ path=/; expires=Tue, 30-Apr-2013 16:07:10 GMT; HttpOnly
154
+ - serverid=1101; path=/
157
155
  vary:
158
156
  - Accept-Encoding,User-Agent
159
- via:
160
- - 1.0 webwasher (Webwasher 6.9.1.12571)
161
- x-powered-by:
162
- - Phusion Passenger (mod_rails/mod_rack) 2.2.15
163
- x-runtime:
164
- - '0.720113'
165
- x-ua-compatible:
166
- - IE=Edge,chrome=1
157
+ content-encoding:
158
+ - gzip
159
+ connection:
160
+ - close
167
161
  body:
168
162
  encoding: ASCII-8BIT
169
163
  string: !binary |-
@@ -619,6 +613,6 @@ http_interactions:
619
613
  YXZhaWxhYmlsaXR5PgogICAgPGRjdGVybXM6ZGVzY3JpcHRpb24+6YWN572u
620
614
  5aC05omAIDog77yi77yR6ZaL5p62PC9kY3Rlcm1zOmRlc2NyaXB0aW9uPgog
621
615
  IDwvZGNuZGw6SXRlbT4KPC9yZGY6UkRGPg==
622
- http_version: '1.1'
623
- recorded_at: Fri, 19 Apr 2013 04:25:53 GMT
616
+ http_version: '1.0'
617
+ recorded_at: Tue, 30 Apr 2013 15:07:09 GMT
624
618
  recorded_with: VCR 2.4.0