enju_loc 0.1.0.pre2 → 0.1.0.pre3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/loc_search_controller.rb +1 -1
  3. data/app/models/loc_search.rb +13 -15
  4. data/lib/enju_loc/engine.rb +1 -0
  5. data/lib/enju_loc/loc_search.rb +1 -1
  6. data/lib/enju_loc/version.rb +1 -1
  7. data/spec/cassette_library/LocSearch/_ModsRecord/should_parse_MODS_metadata.yml +16 -14
  8. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_a_valid_manifestation.yml +12 -12
  9. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml +16 -14
  10. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_multiple_series_statements.yml +16 -14
  11. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_distinguish_title_information_with_subject.yml +16 -14
  12. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_a_manifestation_that_has_invalid_classification.yml +20 -17
  13. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_another_serial.yml +16 -14
  14. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_audio_book.yml +38 -34
  15. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource.yml +16 -14
  16. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource_packaged_.yml +16 -14
  17. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_notated_music.yml +16 -14
  18. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_note_fields.yml +16 -14
  19. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_publication_year.yml +16 -14
  20. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_serial.yml +16 -14
  21. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_video_publication.yml +16 -14
  22. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_parse_title_information_properly.yml +16 -14
  23. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_support_name_and_title_subjects.yml +16 -14
  24. data/spec/cassette_library/LocSearch/_search/should_return_a_search_result.yml +16 -14
  25. data/spec/cassette_library/LocSearchController/GET_index/should_get_index.yml +16 -14
  26. data/spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml +16 -14
  27. data/spec/cassette_library/LocSearchController/POST_create/should_create_a_bibliographic_record_if_lccn_is_set.yml +16 -14
  28. data/spec/cassette_library/LocSearchController/POST_create/should_not_create_a_bibliographic_record_if_lccn_is_not_set.yml +18 -20
  29. data/spec/dummy/config/boot.rb +2 -2
  30. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  31. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  32. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  33. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  34. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  35. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
  36. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
  37. data/spec/dummy/db/schema.rb +22 -3
  38. data/spec/dummy/db/test.sqlite3 +0 -0
  39. data/spec/fixtures/agent_types.yml +6 -25
  40. data/spec/models/loc_search_spec.rb +3 -3
  41. data/spec/spec_helper.rb +1 -1
  42. metadata +37 -31
  43. data/spec/dummy/db/development.sqlite3 +0 -0
  44. data/spec/dummy/log/development.log +0 -1528
  45. data/spec/dummy/log/test.log +0 -54815
@@ -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&query=bath.lccn=2013602064&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '13708'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
203
- recorded_at: Fri, 15 Aug 2014 14:32:05 GMT
204
- recorded_with: VCR 2.9.2
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&recordSchema=mods&query=bath.lccn=2012532441&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '4266'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
79
- recorded_at: Tue, 12 Aug 2014 15:35:18 GMT
80
- recorded_with: VCR 2.9.2
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&recordSchema=mods&query=bath.lccn=2013433146&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '4009'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
76
- recorded_at: Wed, 13 Aug 2014 14:37:59 GMT
77
- recorded_with: VCR 2.9.2
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&recordSchema=mods&query=library&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '28628'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
352
- recorded_at: Tue, 12 Aug 2014 15:35:24 GMT
353
- recorded_with: VCR 2.9.2
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&query=library&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '28628'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
352
- recorded_at: Mon, 11 Aug 2014 06:53:29 GMT
353
- recorded_with: VCR 2.9.2
353
+ http_version:
354
+ recorded_at: Thu, 02 Oct 2014 12:12:50 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=11&query=library&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '33710'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
414
- recorded_at: Thu, 14 Aug 2014 13:17:13 GMT
415
- recorded_with: VCR 2.9.2
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&recordSchema=mods&query=bath.lccn=2013385616&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '9364'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- 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
+ 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: '1.1'
139
- recorded_at: Mon, 11 Aug 2014 06:53:31 GMT
140
- recorded_with: VCR 2.9.2
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&recordSchema=mods&query=bath.lccn=&version=1.1&operation=searchRetrieve
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
- accept:
11
- - ! '*/*'
12
- user-agent:
13
- - Ruby
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
- content-length:
21
+ Content-Length:
20
22
  - '457'
21
- server:
23
+ Server:
22
24
  - Metaproxy/1.5.3
23
- connection:
25
+ Connection:
24
26
  - Keep-Alive
25
- content-type:
27
+ Content-Type:
26
28
  - text/xml
27
29
  body:
28
- encoding: US-ASCII
29
- string: ! '<?xml version="1.0"?>
30
-
31
- <zs:searchRetrieveResponse xmlns:zs="http://www.loc.gov/zing/srw/"><zs:version>1.1</zs:version><zs:diagnostics
32
- 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
33
- failed: bath.lccn=</diag:details><diag:message>Query syntax error</diag:message></diag:diagnostic></zs:diagnostics></zs:searchRetrieveResponse>
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
@@ -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__)