enju_loc 0.1.0.pre4 → 0.1.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/app/helpers/loc_search_helper.rb +1 -1
- data/app/models/loc_search.rb +12 -11
- data/app/views/loc_search/index.html.erb +1 -1
- data/lib/enju_loc/loc_search.rb +105 -104
- data/lib/enju_loc/version.rb +1 -1
- data/spec/cassette_library/LocSearch/_ModsRecord/should_parse_MODS_metadata.yml +8 -8
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_a_valid_manifestation.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_multiple_series_statements.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_distinguish_title_information_with_subject.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_a_manifestation_that_has_invalid_classification.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_another_serial.yml +22 -22
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_audio_book.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource.yml +12 -13
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource_packaged_.yml +25 -25
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_lccn_exact_math.yml +57 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_notated_music.yml +55 -56
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_note_fields.yml +9 -9
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_publication_year.yml +14 -14
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_serial.yml +22 -23
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_video_publication.yml +10 -10
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_parse_title_information_properly.yml +10 -10
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_support_name_and_title_subjects.yml +10 -10
- data/spec/cassette_library/LocSearch/_search/should_return_a_search_result.yml +119 -83
- data/spec/cassette_library/LocSearchController/GET_index/should_get_index.yml +119 -83
- data/spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml +99 -102
- data/spec/cassette_library/LocSearchController/POST_create/should_create_a_bibliographic_record_if_lccn_is_set.yml +12 -12
- data/spec/cassette_library/LocSearchController/POST_create/should_not_create_a_bibliographic_record_if_lccn_is_not_set.yml +7 -7
- data/spec/dummy/app/assets/javascripts/application.js +2 -2
- data/spec/models/loc_search_spec.rb +6 -0
- metadata +35 -21
- data/spec/dummy/app/models/setting.rb +0 -4
data/lib/enju_loc/version.rb
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '7164'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>Everything is miscellaneous</title>\n <subTitle>the
|
35
35
|
power of the new digital disorder</subTitle>\n </titleInfo>\n <name type=\"personal\"
|
36
36
|
usage=\"primary\">\n <namePart>Weinberger, David</namePart>\n <namePart
|
@@ -106,8 +106,8 @@ http_interactions:
|
|
106
106
|
\ <recordContentSource authority=\"marcorg\">DLC</recordContentSource>\n
|
107
107
|
\ <recordCreationDate encoding=\"marc\">070323</recordCreationDate>\n <recordChangeDate
|
108
108
|
encoding=\"iso8601\">20071005142314.0</recordChangeDate>\n <recordIdentifier>14780655</recordIdentifier>\n
|
109
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
110
|
-
1.
|
109
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
110
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=2007012024</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
111
111
|
http_version:
|
112
|
-
recorded_at:
|
113
|
-
recorded_with: VCR
|
112
|
+
recorded_at: Fri, 06 Nov 2015 14:26:58 GMT
|
113
|
+
recorded_with: VCR 3.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2007012024%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '7167'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>Everything is miscellaneous</title>\n <subTitle>the
|
35
35
|
power of the new digital disorder</subTitle>\n </titleInfo>\n <name type=\"personal\"
|
36
36
|
usage=\"primary\">\n <namePart>Weinberger, David</namePart>\n <namePart
|
@@ -106,8 +106,8 @@ http_interactions:
|
|
106
106
|
\ <recordContentSource authority=\"marcorg\">DLC</recordContentSource>\n
|
107
107
|
\ <recordCreationDate encoding=\"marc\">070323</recordCreationDate>\n <recordChangeDate
|
108
108
|
encoding=\"iso8601\">20071005142314.0</recordChangeDate>\n <recordIdentifier>14780655</recordIdentifier>\n
|
109
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
110
|
-
1.
|
109
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
110
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2007012024\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
111
111
|
http_version:
|
112
|
-
recorded_at:
|
113
|
-
recorded_with: VCR
|
112
|
+
recorded_at: Fri, 06 Nov 2015 14:26:40 GMT
|
113
|
+
recorded_with: VCR 3.0.0
|
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2011281911%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '3457'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <nonSort>The </nonSort>\n <title>RSpec book</title>\n
|
35
35
|
\ <subTitle>behaviour-driven development with RSpec, Cucumber, and Friends</subTitle>\n
|
36
36
|
\ </titleInfo>\n <name type=\"personal\">\n <namePart>Chelimsky, David.</namePart>\n
|
@@ -61,8 +61,8 @@ http_interactions:
|
|
61
61
|
authority=\"marcorg\">UKM</recordContentSource>\n <recordCreationDate encoding=\"marc\">110516</recordCreationDate>\n
|
62
62
|
\ <recordChangeDate encoding=\"iso8601\">20110914124355.0</recordChangeDate>\n
|
63
63
|
\ <recordIdentifier>16781422</recordIdentifier>\n <recordOrigin>Converted
|
64
|
-
from MARCXML to MODS version 3.
|
65
|
-
1.
|
64
|
+
from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
65
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2011281911\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
68
|
-
recorded_with: VCR
|
67
|
+
recorded_at: Fri, 06 Nov 2015 14:26:42 GMT
|
68
|
+
recorded_with: VCR 3.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2012471967%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '3698'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <nonSort>The </nonSort>\n <title>Rails view</title>\n
|
35
35
|
\ <subTitle>creating a beautiful and maintainable user experience</subTitle>\n
|
36
36
|
\ </titleInfo>\n <name type=\"personal\" usage=\"primary\">\n <namePart>Athayde,
|
@@ -64,8 +64,8 @@ http_interactions:
|
|
64
64
|
\ <recordContentSource authority=\"marcorg\">DLC</recordContentSource>\n
|
65
65
|
\ <recordCreationDate encoding=\"marc\">121102</recordCreationDate>\n <recordChangeDate
|
66
66
|
encoding=\"iso8601\">20121102161644.0</recordChangeDate>\n <recordIdentifier>17516814</recordIdentifier>\n
|
67
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
68
|
-
1.
|
67
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
68
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2012471967\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
69
69
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR
|
70
|
+
recorded_at: Fri, 06 Nov 2015 14:26:41 GMT
|
71
|
+
recorded_with: VCR 3.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2008273186%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '3675'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>Flexible Rails</title>\n <subTitle>Flex 3 on
|
35
35
|
Rails 2</subTitle>\n </titleInfo>\n <name type=\"personal\" usage=\"primary\">\n
|
36
36
|
\ <namePart>Armstrong, Peter.</namePart>\n </name>\n <typeOfResource>text</typeOfResource>\n
|
@@ -62,8 +62,8 @@ http_interactions:
|
|
62
62
|
\ <recordContentSource authority=\"marcorg\">DLC</recordContentSource>\n
|
63
63
|
\ <recordCreationDate encoding=\"marc\">080415</recordCreationDate>\n <recordChangeDate
|
64
64
|
encoding=\"iso8601\">20090811090147.0</recordChangeDate>\n <recordIdentifier>15262217</recordIdentifier>\n
|
65
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
66
|
-
1.
|
65
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
66
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2008273186\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
67
67
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR
|
68
|
+
recorded_at: Fri, 06 Nov 2015 14:26:41 GMT
|
69
|
+
recorded_with: VCR 3.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2014381788%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '4688'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>Harry Potter and the sorcerer's stone</title>\n
|
35
35
|
\ </titleInfo>\n <titleInfo type=\"uniform\" nameTitleGroup=\"1\">\n <title>Harry
|
36
36
|
Potter and the philosopher's stone</title>\n </titleInfo>\n <name type=\"personal\"
|
@@ -77,8 +77,8 @@ http_interactions:
|
|
77
77
|
\ <recordContentSource authority=\"marcorg\">DLC</recordContentSource>\n
|
78
78
|
\ <recordCreationDate encoding=\"marc\">140603</recordCreationDate>\n <recordChangeDate
|
79
79
|
encoding=\"iso8601\">20140905142912.0</recordChangeDate>\n <recordIdentifier>18174426</recordIdentifier>\n
|
80
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
81
|
-
1.
|
80
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
81
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2014381788\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
82
82
|
http_version:
|
83
|
-
recorded_at:
|
84
|
-
recorded_with: VCR
|
83
|
+
recorded_at: Fri, 06 Nov 2015 14:26:52 GMT
|
84
|
+
recorded_with: VCR 3.0.0
|
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_another_serial.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E88651712%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '4889'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>Superconductor science & technology</title>\n
|
35
35
|
\ </titleInfo>\n <titleInfo type=\"abbreviated\">\n <title>Supercond.
|
36
36
|
sci. technol</title>\n </titleInfo>\n <titleInfo type=\"alternative\">\n
|
@@ -43,18 +43,18 @@ http_interactions:
|
|
43
43
|
\ <placeTerm type=\"text\">Bristol, UK]</placeTerm>\n </place>\n <publisher>IOP
|
44
44
|
Pub.</publisher>\n <dateIssued>[c1988]-</dateIssued>\n <dateIssued encoding=\"marc\"
|
45
45
|
point=\"start\">1988</dateIssued>\n <dateIssued encoding=\"marc\" point=\"end\">9999</dateIssued>\n
|
46
|
-
\ <issuance>serial</issuance>\n <frequency
|
47
|
-
\
|
48
|
-
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n
|
49
|
-
\ <physicalDescription>\n <form authority=\"marcform\">print</form>\n
|
50
|
-
: ill. ; 29 cm.</extent>\n </physicalDescription>\n <note
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
46
|
+
\ <issuance>serial</issuance>\n <frequency>Monthly</frequency>\n <frequency
|
47
|
+
authority=\"marcfrequency\">Monthly</frequency>\n </originInfo>\n <language>\n
|
48
|
+
\ <languageTerm authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n
|
49
|
+
\ </language>\n <physicalDescription>\n <form authority=\"marcform\">print</form>\n
|
50
|
+
\ <extent>v. : ill. ; 29 cm.</extent>\n </physicalDescription>\n <note
|
51
|
+
type=\"date/sequential designation\">Vol. 1, no. 1-</note>\n <note>Title
|
52
|
+
from cover.</note>\n <note type=\"numbering\">Issues for <v. 2, no. 3->
|
53
|
+
called also: <Sept. 1989-></note>\n <note type=\"additional physical
|
54
|
+
form\">Also issued on microfiche and online.</note>\n <note>Occasionally
|
55
|
+
supplemented by special issues.</note>\n <note>An Institute of Physics journal
|
56
|
+
published by IOP Publishing Ltd in association with the American Institute
|
57
|
+
of Physics.</note>\n <subject authority=\"lcsh\">\n <topic>Superconductivity</topic>\n
|
58
58
|
\ <genre>Periodicals</genre>\n </subject>\n <subject authority=\"lcsh\">\n
|
59
59
|
\ <topic>Superconductors</topic>\n <genre>Periodicals</genre>\n </subject>\n
|
60
60
|
\ <subject authority=\"lcsh\">\n <topic>Electronics</topic>\n <topic>Materials</topic>\n
|
@@ -78,10 +78,10 @@ http_interactions:
|
|
78
78
|
\ <recordContentSource authority=\"marcorg\">CoG</recordContentSource>\n
|
79
79
|
\ <recordCreationDate encoding=\"marc\">880623</recordCreationDate>\n <recordChangeDate
|
80
80
|
encoding=\"iso8601\">20130326080756.0</recordChangeDate>\n <recordIdentifier>11347004</recordIdentifier>\n
|
81
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
82
|
-
1.
|
81
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
82
|
+
1.106 2014/12/19)</recordOrigin>\n <languageOfCataloging>\n <languageTerm
|
83
83
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </languageOfCataloging>\n
|
84
|
-
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
84
|
+
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^88651712\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
85
85
|
http_version:
|
86
|
-
recorded_at:
|
87
|
-
recorded_with: VCR
|
86
|
+
recorded_at: Fri, 06 Nov 2015 14:26:52 GMT
|
87
|
+
recorded_with: VCR 3.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2007576782%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '5575'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>Harry Potter and the prisoner of Azkaban</title>\n
|
35
35
|
\ </titleInfo>\n <name type=\"personal\" usage=\"primary\">\n <namePart>Rowling,
|
36
36
|
J. K.</namePart>\n </name>\n <name type=\"personal\">\n <namePart>Dale,
|
@@ -88,8 +88,8 @@ http_interactions:
|
|
88
88
|
\ <recordContentSource authority=\"marcorg\">OCO</recordContentSource>\n
|
89
89
|
\ <recordCreationDate encoding=\"marc\">070531</recordCreationDate>\n <recordChangeDate
|
90
90
|
encoding=\"iso8601\">20140905142926.0</recordChangeDate>\n <recordIdentifier>14872104</recordIdentifier>\n
|
91
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
92
|
-
1.
|
91
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
92
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2007576782\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
93
93
|
http_version:
|
94
|
-
recorded_at:
|
95
|
-
recorded_with: VCR
|
94
|
+
recorded_at: Fri, 06 Nov 2015 14:26:50 GMT
|
95
|
+
recorded_with: VCR 3.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E2005568297%22&recordSchema=mods&version=1.1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '3971'
|
23
23
|
Server:
|
24
|
-
- Metaproxy/1.
|
24
|
+
- Metaproxy/1.9.3
|
25
25
|
Connection:
|
26
26
|
- Keep-Alive
|
27
27
|
Content-Type:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
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
|
32
32
|
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
33
|
-
version=\"3.
|
33
|
+
version=\"3.5\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd\">\n
|
34
34
|
\ <titleInfo>\n <title>ACM portal</title>\n <subTitle>the ACM Digital
|
35
35
|
Library</subTitle>\n </titleInfo>\n <titleInfo type=\"alternative\">\n <title>Association
|
36
36
|
for Computing Machinery portal</title>\n </titleInfo>\n <titleInfo type=\"alternative\"
|
@@ -52,9 +52,8 @@ http_interactions:
|
|
52
52
|
on access\">ACM members or full-level subscribers have access to full text
|
53
53
|
context, plus all searching functionality. Provides access for non-scribers
|
54
54
|
and the general public to search/browse options offered on the main home page
|
55
|
-
for ACM publications.</accessCondition>\n <note type=\"
|
56
|
-
|
57
|
-
1997?</note>\n <note>Title from home page (viewed on Jan. 12, 2005).</note>\n
|
55
|
+
for ACM publications.</accessCondition>\n <note type=\"date/sequential designation\">Began
|
56
|
+
in 1997?</note>\n <note>Title from home page (viewed on Jan. 12, 2005).</note>\n
|
58
57
|
\ <note type=\"system details\">Mode of access: World Wide Web.</note>\n <subject
|
59
58
|
authority=\"lcsh\">\n <topic>Computer science</topic>\n <genre>Bibliography</genre>\n
|
60
59
|
\ </subject>\n <subject authority=\"lcsh\">\n <topic>Information storage
|
@@ -66,10 +65,10 @@ http_interactions:
|
|
66
65
|
\ </location>\n <identifier type=\"lccn\">2005568297</identifier>\n <recordInfo>\n
|
67
66
|
\ <descriptionStandard>aacr</descriptionStandard>\n <recordContentSource
|
68
67
|
authority=\"marcorg\">DLC</recordContentSource>\n <recordCreationDate encoding=\"marc\">050113</recordCreationDate>\n
|
69
|
-
\ <recordChangeDate encoding=\"iso8601\">
|
68
|
+
\ <recordChangeDate encoding=\"iso8601\">20150915173637.0</recordChangeDate>\n
|
70
69
|
\ <recordIdentifier>13841460</recordIdentifier>\n <recordOrigin>Converted
|
71
|
-
from MARCXML to MODS version 3.
|
72
|
-
1.
|
70
|
+
from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
71
|
+
1.106 2014/12/19)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records><zs:echoedSearchRetrieveRequest><zs:version>1.1</zs:version><zs:query>bath.lccn=\"^2005568297\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
73
72
|
http_version:
|
74
|
-
recorded_at:
|
75
|
-
recorded_with: VCR
|
73
|
+
recorded_at: Fri, 06 Nov 2015 14:26:46 GMT
|
74
|
+
recorded_with: VCR 3.0.0
|