enju_ndl 0.1.0.pre26 → 0.1.0.pre27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ndl_books_controller.rb +1 -1
- data/app/helpers/ndl_books_helper.rb +5 -5
- data/app/models/ndl_book.rb +10 -6
- data/app/views/ndl_books/index.html.erb +1 -1
- data/lib/enju_ndl/ndl_search.rb +8 -2
- data/lib/enju_ndl/version.rb +1 -1
- data/spec/cassette_library/ImportRequest/should_import_isbn.yml +354 -352
- data/spec/cassette_library/Manifestation/should_imporrt_a_bibliographic_record.yml +650 -648
- data/spec/cassette_library/Manifestation/should_import_isbn.yml +355 -353
- data/spec/cassette_library/NdlBook/import/should_get_series_title.yml +61 -55
- data/spec/cassette_library/NdlBook/import/should_get_volume_number.yml +58 -56
- data/spec/cassette_library/NdlBook/import/should_import_audio_cd.yml +8 -8
- data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record.yml +96 -96
- data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record_that_does_not_have_any_classifications.yml +7 -7
- data/spec/cassette_library/NdlBook/import/should_import_pud_date_is_nil.yml +55 -55
- data/spec/cassette_library/NdlBook/import/should_import_series_statement.yml +7 -7
- data/spec/cassette_library/NdlBook/import/should_import_series_statement_if_the_resource_is_periodical.yml +190 -248
- data/spec/cassette_library/NdlBook/import/should_import_title_alternative.yml +165 -163
- data/spec/cassette_library/NdlBook/import/should_import_url_contain_whitespace.yml +8 -8
- data/spec/cassette_library/NdlBook/import/should_import_video_dvd.yml +7 -7
- data/spec/cassette_library/NdlBook/import/should_import_volume_number_string.yml +155 -152
- data/spec/cassette_library/NdlBook/import/should_not_get_series_title_if_book_has_not_series_title.yml +64 -62
- data/spec/cassette_library/NdlBook/import/should_not_get_volume_number_if_book_has_not_volume.yml +54 -52
- data/spec/cassette_library/NdlBook/search/should_not_distinguish_double_byte_space_from_one-byte_space_in_a_query.yml +625 -609
- data/spec/cassette_library/NdlBook/search/should_search_bibliographic_record.yml +353 -347
- data/spec/cassette_library/NdlBooksController/GET_index/should_get_index.yml +425 -423
- data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_bibliographic_record_if_jpno_is_set.yml +7 -7
- data/spec/cassette_library/NdlBooksController/POST_create/should_not_create_a_bibliographic_record_if_jpno_is_not_set.yml +11 -11
- data/spec/cassette_library/Question/should_respond_to_search_crd.yml +296 -497
- data/spec/controllers/ndl_books_controller_spec.rb +1 -1
- data/spec/dummy/config/initializers/devise.rb +2 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/models/ndl_book_spec.rb +12 -11
- metadata +7 -7
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://iss.ndl.go.jp/api/sru?operation=searchRetrieve&recordSchema=dcndl
|
5
|
+
uri: http://iss.ndl.go.jp/api/sru?operation=searchRetrieve&recordSchema=dcndl&maximumRecords=1&query=%28itemno=R100000002-I000002539673-00%29&onlyBib=true
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Sun, 13 Oct 2013 20:14:11 GMT
|
23
23
|
server:
|
24
24
|
- Apache
|
25
25
|
etag:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
x-ua-compatible:
|
28
28
|
- IE=Edge,chrome=1
|
29
29
|
x-runtime:
|
30
|
-
- '0.
|
30
|
+
- '0.221370'
|
31
31
|
cache-control:
|
32
32
|
- max-age=0, private, must-revalidate
|
33
33
|
status:
|
@@ -35,8 +35,8 @@ http_interactions:
|
|
35
35
|
content-type:
|
36
36
|
- application/xml; charset=utf-8
|
37
37
|
set-cookie:
|
38
|
-
- _front_session_id=
|
39
|
-
path=/; expires=
|
38
|
+
- _front_session_id=b8e8e9a5b61b353b2cfcb3f7d40b2390; domain=.iss.ndl.go.jp;
|
39
|
+
path=/; expires=Sun, 13-Oct-2013 21:14:11 GMT; HttpOnly
|
40
40
|
- serverid=1102; path=/
|
41
41
|
vary:
|
42
42
|
- Accept-Encoding,User-Agent
|
@@ -249,5 +249,5 @@ http_interactions:
|
|
249
249
|
ZWNvcmQ+CiAgPC9yZWNvcmRzPgo8L3NlYXJjaFJldHJpZXZlUmVzcG9uc2U+
|
250
250
|
Cg==
|
251
251
|
http_version: '1.0'
|
252
|
-
recorded_at:
|
253
|
-
recorded_with: VCR 2.
|
252
|
+
recorded_at: Sun, 13 Oct 2013 20:14:12 GMT
|
253
|
+
recorded_with: VCR 2.6.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://iss.ndl.go.jp/api/sru?operation=searchRetrieve&recordSchema=dcndl
|
5
|
+
uri: http://iss.ndl.go.jp/api/sru?operation=searchRetrieve&recordSchema=dcndl&maximumRecords=1&query=%28itemno=%29&onlyBib=true
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,15 +19,15 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Sun, 13 Oct 2013 20:14:12 GMT
|
23
23
|
server:
|
24
24
|
- Apache
|
25
25
|
etag:
|
26
|
-
- '"
|
26
|
+
- '"79f8f250e63181b33a2145c0edfd1141"'
|
27
27
|
x-ua-compatible:
|
28
28
|
- IE=Edge,chrome=1
|
29
29
|
x-runtime:
|
30
|
-
- '0.
|
30
|
+
- '0.006109'
|
31
31
|
cache-control:
|
32
32
|
- max-age=0, private, must-revalidate
|
33
33
|
status:
|
@@ -35,15 +35,15 @@ http_interactions:
|
|
35
35
|
content-type:
|
36
36
|
- application/xml; charset=utf-8
|
37
37
|
set-cookie:
|
38
|
-
- _front_session_id=
|
39
|
-
path=/; expires=
|
40
|
-
- serverid=
|
38
|
+
- _front_session_id=2a22c56dbb3e4f12c846f19175f48c40; domain=.iss.ndl.go.jp;
|
39
|
+
path=/; expires=Sun, 13-Oct-2013 21:14:12 GMT; HttpOnly
|
40
|
+
- serverid=1101; path=/
|
41
41
|
vary:
|
42
42
|
- Accept-Encoding,User-Agent
|
43
43
|
content-encoding:
|
44
44
|
- gzip
|
45
45
|
content-length:
|
46
|
-
- '
|
46
|
+
- '232'
|
47
47
|
connection:
|
48
48
|
- close
|
49
49
|
body:
|
@@ -55,10 +55,10 @@ http_interactions:
|
|
55
55
|
<diagnostic xmlns="http://www.loc.gov/zing/srw/diagnostic/">
|
56
56
|
<uri>info:srw/diagnostic/1/1</uri>
|
57
57
|
<details>An error occurred</details>
|
58
|
-
<message>search term(s) is requested in '
|
58
|
+
<message>search term(s) is requested in 'itemno='</message>
|
59
59
|
</diagnostic>
|
60
60
|
</diagnostics>
|
61
61
|
</searchRetrieveResponse>
|
62
62
|
http_version: '1.0'
|
63
|
-
recorded_at:
|
64
|
-
recorded_with: VCR 2.
|
63
|
+
recorded_at: Sun, 13 Oct 2013 20:14:13 GMT
|
64
|
+
recorded_with: VCR 2.6.0
|