enju_loc 0.1.0.pre2 → 0.1.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/loc_search_controller.rb +1 -1
- data/app/models/loc_search.rb +13 -15
- data/lib/enju_loc/engine.rb +1 -0
- data/lib/enju_loc/loc_search.rb +1 -1
- data/lib/enju_loc/version.rb +1 -1
- data/spec/cassette_library/LocSearch/_ModsRecord/should_parse_MODS_metadata.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_a_valid_manifestation.yml +12 -12
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_multiple_series_statements.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_distinguish_title_information_with_subject.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_a_manifestation_that_has_invalid_classification.yml +20 -17
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_another_serial.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_audio_book.yml +38 -34
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource_packaged_.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_notated_music.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_note_fields.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_publication_year.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_serial.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_video_publication.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_parse_title_information_properly.yml +16 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_support_name_and_title_subjects.yml +16 -14
- data/spec/cassette_library/LocSearch/_search/should_return_a_search_result.yml +16 -14
- data/spec/cassette_library/LocSearchController/GET_index/should_get_index.yml +16 -14
- data/spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml +16 -14
- data/spec/cassette_library/LocSearchController/POST_create/should_create_a_bibliographic_record_if_lccn_is_set.yml +16 -14
- data/spec/cassette_library/LocSearchController/POST_create/should_not_create_a_bibliographic_record_if_lccn_is_not_set.yml +18 -20
- data/spec/dummy/config/boot.rb +2 -2
- data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
- data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
- data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
- data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
- data/spec/dummy/db/schema.rb +22 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/fixtures/agent_types.yml +6 -25
- data/spec/models/loc_search_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +37 -31
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -1528
- data/spec/dummy/log/test.log +0 -54815
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_video_publication.yml
CHANGED
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=2013602064&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '13708'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>1</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo>\n <title>Clint Eastwood</title>\n </titleInfo>\n <titleInfo
|
@@ -199,6 +201,6 @@ http_interactions:
|
|
199
201
|
1.94 2014/02/21)</recordOrigin>\n <languageOfCataloging>\n <languageTerm
|
200
202
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </languageOfCataloging>\n
|
201
203
|
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
202
|
-
http_version:
|
203
|
-
recorded_at:
|
204
|
-
recorded_with: VCR 2.9.
|
204
|
+
http_version:
|
205
|
+
recorded_at: Thu, 02 Oct 2014 12:13:05 GMT
|
206
|
+
recorded_with: VCR 2.9.3
|
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=2012532441&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '4266'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>1</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo>\n <nonSort>The </nonSort>\n <title>data journalism handbook</title>\n
|
@@ -75,6 +77,6 @@ http_interactions:
|
|
75
77
|
1.94 2014/02/21)</recordOrigin>\n <languageOfCataloging>\n <languageTerm
|
76
78
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </languageOfCataloging>\n
|
77
79
|
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
78
|
-
http_version:
|
79
|
-
recorded_at:
|
80
|
-
recorded_with: VCR 2.9.
|
80
|
+
http_version:
|
81
|
+
recorded_at: Thu, 02 Oct 2014 12:12:56 GMT
|
82
|
+
recorded_with: VCR 2.9.3
|
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=2013433146&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '4009'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>1</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo>\n <title>Anne around the world</title>\n <subTitle>L.M.
|
@@ -72,6 +74,6 @@ http_interactions:
|
|
72
74
|
1.94 2014/02/21)</recordOrigin>\n <languageOfCataloging>\n <languageTerm
|
73
75
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </languageOfCataloging>\n
|
74
76
|
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
75
|
-
http_version:
|
76
|
-
recorded_at:
|
77
|
-
recorded_with: VCR 2.9.
|
77
|
+
http_version:
|
78
|
+
recorded_at: Thu, 02 Oct 2014 12:13:00 GMT
|
79
|
+
recorded_with: VCR 2.9.3
|
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=library&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '28628'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>10000</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo>\n <title/>\n </titleInfo>\n <typeOfResource>text</typeOfResource>\n
|
@@ -348,6 +350,6 @@ http_interactions:
|
|
348
350
|
\ <recordIdentifier>18176790</recordIdentifier>\n <recordOrigin>Converted
|
349
351
|
from MARCXML to MODS version 3.4 using MARC21slim2MODS3-4.xsl\n\t\t\t\t(Revision
|
350
352
|
1.94 2014/02/21)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>10</zs:recordPosition></zs:record></zs:records><zs:nextRecordPosition>11</zs:nextRecordPosition></zs:searchRetrieveResponse>\n"
|
351
|
-
http_version:
|
352
|
-
recorded_at:
|
353
|
-
recorded_with: VCR 2.9.
|
353
|
+
http_version:
|
354
|
+
recorded_at: Thu, 02 Oct 2014 12:13:15 GMT
|
355
|
+
recorded_with: VCR 2.9.3
|
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&recordSchema=mods&startRecord=1&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=library&recordSchema=mods&startRecord=1&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '28628'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>10000</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo>\n <title/>\n </titleInfo>\n <typeOfResource>text</typeOfResource>\n
|
@@ -348,6 +350,6 @@ http_interactions:
|
|
348
350
|
\ <recordIdentifier>18176790</recordIdentifier>\n <recordOrigin>Converted
|
349
351
|
from MARCXML to MODS version 3.4 using MARC21slim2MODS3-4.xsl\n\t\t\t\t(Revision
|
350
352
|
1.94 2014/02/21)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>10</zs:recordPosition></zs:record></zs:records><zs:nextRecordPosition>11</zs:nextRecordPosition></zs:searchRetrieveResponse>\n"
|
351
|
-
http_version:
|
352
|
-
recorded_at:
|
353
|
-
recorded_with: VCR 2.9.
|
353
|
+
http_version:
|
354
|
+
recorded_at: Thu, 02 Oct 2014 12:12:50 GMT
|
355
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml
CHANGED
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&recordSchema=mods&startRecord=11&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=library&recordSchema=mods&startRecord=11&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '33710'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>10000</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo>\n <title>$#*! my dad says</title>\n <partName>Lock and
|
@@ -410,6 +412,6 @@ http_interactions:
|
|
410
412
|
encoding=\"iso8601\">20140605151844.0</recordChangeDate>\n <recordIdentifier>18176724</recordIdentifier>\n
|
411
413
|
\ <recordOrigin>Converted from MARCXML to MODS version 3.4 using MARC21slim2MODS3-4.xsl\n\t\t\t\t(Revision
|
412
414
|
1.94 2014/02/21)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>20</zs:recordPosition></zs:record></zs:records><zs:nextRecordPosition>21</zs:nextRecordPosition></zs:searchRetrieveResponse>\n"
|
413
|
-
http_version:
|
414
|
-
recorded_at: Thu,
|
415
|
-
recorded_with: VCR 2.9.
|
415
|
+
http_version:
|
416
|
+
recorded_at: Thu, 02 Oct 2014 12:12:52 GMT
|
417
|
+
recorded_with: VCR 2.9.3
|
@@ -2,31 +2,33 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=2013385616&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '9364'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>1</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
33
|
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
34
|
\ <titleInfo altRepGroup=\"01\" script=\"Latn\">\n <title>Entotsu no mieru
|
@@ -135,6 +137,6 @@ http_interactions:
|
|
135
137
|
\ <recordIdentifier>17731062</recordIdentifier>\n <recordOrigin>Converted
|
136
138
|
from MARCXML to MODS version 3.4 using MARC21slim2MODS3-4.xsl\n\t\t\t\t(Revision
|
137
139
|
1.94 2014/02/21)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
138
|
-
http_version:
|
139
|
-
recorded_at:
|
140
|
-
recorded_with: VCR 2.9.
|
140
|
+
http_version:
|
141
|
+
recorded_at: Thu, 02 Oct 2014 12:12:53 GMT
|
142
|
+
recorded_with: VCR 2.9.3
|
@@ -2,37 +2,35 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
-
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
19
|
message: OK
|
18
20
|
headers:
|
19
|
-
|
21
|
+
Content-Length:
|
20
22
|
- '457'
|
21
|
-
|
23
|
+
Server:
|
22
24
|
- Metaproxy/1.5.3
|
23
|
-
|
25
|
+
Connection:
|
24
26
|
- Keep-Alive
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- text/xml
|
27
29
|
body:
|
28
|
-
encoding:
|
29
|
-
string:
|
30
|
-
|
31
|
-
<zs:searchRetrieveResponse xmlns:zs="http://www.loc.gov/zing/srw/"><zs:version>1.1</zs:version><zs:diagnostics
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
'
|
36
|
-
http_version: '1.1'
|
37
|
-
recorded_at: Mon, 11 Aug 2014 06:53:34 GMT
|
38
|
-
recorded_with: VCR 2.9.2
|
30
|
+
encoding: UTF-8
|
31
|
+
string: |
|
32
|
+
<?xml version="1.0"?>
|
33
|
+
<zs:searchRetrieveResponse xmlns:zs="http://www.loc.gov/zing/srw/"><zs:version>1.1</zs:version><zs:diagnostics xmlns:diag="http://www.loc.gov/zing/srw/diagnostic/"><diag:diagnostic><diag:uri>info:srw/diagnostic/1/10</diag:uri><diag:details>query_transform::query_transform:cql_parser_string failed: bath.lccn=</diag:details><diag:message>Query syntax error</diag:message></diag:diagnostic></zs:diagnostics></zs:searchRetrieveResponse>
|
34
|
+
http_version:
|
35
|
+
recorded_at: Thu, 02 Oct 2014 12:12:54 GMT
|
36
|
+
recorded_with: VCR 2.9.3
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
2
|
+
gemfile = ENV['BUNDLE_GEMFILE'] || File.expand_path('../../../../Gemfile', __FILE__)
|
3
3
|
|
4
4
|
if File.exist?(gemfile)
|
5
5
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
@@ -7,4 +7,4 @@ if File.exist?(gemfile)
|
|
7
7
|
Bundler.setup
|
8
8
|
end
|
9
9
|
|
10
|
-
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
10
|
+
$:.unshift File.expand_path('../../../../lib', __FILE__)
|