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
@@ -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%5E2006575029%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
|
+
- '3870'
|
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>Microsoft Encarta 2006 premium</title>\n </titleInfo>\n
|
35
35
|
\ <titleInfo type=\"alternative\">\n <title>Encarta 2006</title>\n </titleInfo>\n
|
36
36
|
\ <titleInfo type=\"alternative\">\n <title>Encarta premium 2006</title>\n
|
@@ -50,24 +50,24 @@ http_interactions:
|
|
50
50
|
literature guides, videos from Discovery Channel, Encarta Kids and interactive
|
51
51
|
world atlas. Features photos and illustration, videos and animations, virtual
|
52
52
|
flights, links to preselected web sites, graphing calculator software, and
|
53
|
-
games.</abstract>\n <note
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
\ </subject>\n <subject authority=\"lcsh\">\n
|
62
|
-
\
|
63
|
-
\
|
64
|
-
|
65
|
-
\ <
|
66
|
-
|
67
|
-
\ <
|
68
|
-
|
69
|
-
|
70
|
-
1.
|
53
|
+
games.</abstract>\n <note>Title from disc label.</note>\n <note>\"Complete
|
54
|
+
companion to research and the internet\"--Container.</note>\n <note type=\"system
|
55
|
+
details\">System requirements for Windows: 500MHz Pentium; 256MB RAM; Windows
|
56
|
+
2000 Professional with Service Pack 4, or Windows XP; 950MB available hard-disk
|
57
|
+
space; SVGA or higher monitor (4MB VRAM, 800 x 600 resolution, 16-bit color);
|
58
|
+
DVD-ROM drive or 4X or faster CD-ROM drive; 16-bit sound card with speakers
|
59
|
+
or headphones.</note>\n <subject authority=\"lcsh\">\n <topic>Electronic
|
60
|
+
reference sources</topic>\n </subject>\n <subject authority=\"lcsh\">\n
|
61
|
+
\ <topic>Electronic dictionaries</topic>\n </subject>\n <subject authority=\"lcsh\">\n
|
62
|
+
\ <topic>Atlases</topic>\n </subject>\n <classification authority=\"lcc\">AG2</classification>\n
|
63
|
+
\ <classification authority=\"ddc\" edition=\"14\">031</classification>\n
|
64
|
+
\ <identifier type=\"lccn\">2006575029</identifier>\n <identifier type=\"oclc\">ocm62076740</identifier>\n
|
65
|
+
\ <recordInfo>\n <descriptionStandard>aacr</descriptionStandard>\n <recordContentSource
|
66
|
+
authority=\"marcorg\">DLC</recordContentSource>\n <recordCreationDate encoding=\"marc\">060526</recordCreationDate>\n
|
67
|
+
\ <recordChangeDate encoding=\"iso8601\">20060526145728.0</recordChangeDate>\n
|
68
|
+
\ <recordIdentifier>14391706</recordIdentifier>\n <recordOrigin>Converted
|
69
|
+
from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
70
|
+
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=\"^2006575029\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
71
71
|
http_version:
|
72
|
-
recorded_at:
|
73
|
-
recorded_with: VCR
|
72
|
+
recorded_at: Fri, 06 Nov 2015 14:26:47 GMT
|
73
|
+
recorded_with: VCR 3.0.0
|
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_lccn_exact_math.yml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&operation=searchRetrieve&query=bath.lccn=%22%5E93028401%22&recordSchema=mods&version=1.1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Length:
|
22
|
+
- '2513'
|
23
|
+
Server:
|
24
|
+
- Metaproxy/1.9.3
|
25
|
+
Connection:
|
26
|
+
- Keep-Alive
|
27
|
+
Content-Type:
|
28
|
+
- text/xml
|
29
|
+
body:
|
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
|
32
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
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
|
+
\ <titleInfo>\n <title>How to lie with statistics</title>\n </titleInfo>\n
|
35
|
+
\ <name type=\"personal\" usage=\"primary\">\n <namePart>Huff, Darrell.</namePart>\n
|
36
|
+
\ </name>\n <typeOfResource>text</typeOfResource>\n <originInfo>\n <place>\n
|
37
|
+
\ <placeTerm type=\"code\" authority=\"marccountry\">nyu</placeTerm>\n
|
38
|
+
\ </place>\n <place>\n <placeTerm type=\"text\">New York</placeTerm>\n
|
39
|
+
\ </place>\n <publisher>Norton</publisher>\n <dateIssued>1993</dateIssued>\n
|
40
|
+
\ <issuance>monographic</issuance>\n </originInfo>\n <language>\n <languageTerm
|
41
|
+
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </language>\n
|
42
|
+
\ <physicalDescription>\n <form authority=\"marcform\">print</form>\n <extent>144
|
43
|
+
p. : ill., maps ; 21 cm.</extent>\n </physicalDescription>\n <note type=\"statement
|
44
|
+
of responsibility\" altRepGroup=\"00\">by Darrell Huff ; illustrated by Irving
|
45
|
+
Geis.</note>\n <subject authority=\"lcsh\">\n <topic>Statistics</topic>\n
|
46
|
+
\ </subject>\n <classification authority=\"lcc\">HA29 .H82 1993</classification>\n
|
47
|
+
\ <classification authority=\"ddc\" edition=\"20\">519.5</classification>\n
|
48
|
+
\ <identifier type=\"isbn\">0393310728</identifier>\n <identifier type=\"lccn\">93028401</identifier>\n
|
49
|
+
\ <recordInfo>\n <descriptionStandard>aacr</descriptionStandard>\n <recordContentSource
|
50
|
+
authority=\"marcorg\">DLC</recordContentSource>\n <recordCreationDate encoding=\"marc\">930702</recordCreationDate>\n
|
51
|
+
\ <recordChangeDate encoding=\"iso8601\">20150622093215.0</recordChangeDate>\n
|
52
|
+
\ <recordIdentifier>2524120</recordIdentifier>\n <recordOrigin>Converted
|
53
|
+
from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
54
|
+
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=\"^93028401\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
55
|
+
http_version:
|
56
|
+
recorded_at: Fri, 06 Nov 2015 14:26:53 GMT
|
57
|
+
recorded_with: VCR 3.0.0
|
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_notated_music.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%5E2014563060%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
|
+
- '6736'
|
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>Music of the baroque</title>\n <subTitle>an anthology
|
35
35
|
of scores</subTitle>\n </titleInfo>\n <name type=\"personal\">\n <namePart>Schulenberg,
|
36
36
|
David.</namePart>\n </name>\n <typeOfResource>notated music</typeOfResource>\n
|
@@ -38,52 +38,51 @@ http_interactions:
|
|
38
38
|
\ <placeTerm type=\"code\" authority=\"marccountry\">nyu</placeTerm>\n
|
39
39
|
\ </place>\n <dateIssued encoding=\"marc\">2014</dateIssued>\n <edition>Third
|
40
40
|
edition.</edition>\n <issuance>monographic</issuance>\n </originInfo>\n
|
41
|
-
\ <originInfo
|
42
|
-
York
|
43
|
-
|
44
|
-
|
45
|
-
\
|
46
|
-
|
47
|
-
|
48
|
-
\
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
\ <subject authority=\"lcsh\">\n
|
83
|
-
century</temporal>\n </subject>\n
|
84
|
-
\
|
85
|
-
|
86
|
-
biographical information\">http://www.loc.gov/catdir/enhancements/fy1410/2014563060-b.html</url>\n
|
41
|
+
\ <originInfo eventType=\"publication\">\n <place>\n <placeTerm type=\"text\">New
|
42
|
+
York :</placeTerm>\n </place>\n <publisher>Oxford University Press,</publisher>\n
|
43
|
+
\ <dateIssued>[2014]</dateIssued>\n </originInfo>\n <language>\n <languageTerm
|
44
|
+
authority=\"iso639-2b\" type=\"code\">zxx</languageTerm>\n </language>\n
|
45
|
+
\ <physicalDescription>\n <form authority=\"marcform\">print</form>\n <extent>1
|
46
|
+
score (x, 303 pages) ; 28 cm</extent>\n <form type=\"media\" authority=\"rdamedia\">unmediated</form>\n
|
47
|
+
\ <form type=\"carrier\" authority=\"rdacarrier\">volume</form>\n </physicalDescription>\n
|
48
|
+
\ <tableOfContents>Dum complerentur / G.P. da Palestrina -- Timor et tremor
|
49
|
+
/ Orlande de Lassus -- Luci serene / Claudio Monteverdi -- Sfogava con le
|
50
|
+
stelle / Giulio Caccini -- Orfeo, act 2. Selections / Claudio Monteverdi --
|
51
|
+
Calisto. Selections / P.F. Cavalli -- Ardo in tacito foco / Barbara Strozzi
|
52
|
+
-- Correa nel seno amato. Selections / Alessandro Scarlatti -- From rosy bowers
|
53
|
+
/ Henry Purcell -- Armide. Selections / J.-B. Lully -- In ecclesiis / Giovanni
|
54
|
+
Gabrieli -- Saul, Saul, was verfolgst du mich, SWV 415 / Heinrich Schütz
|
55
|
+
-- Jephte. Selections ; Giacomo Carissimi -- Orlando. Selections / G.F. Handel
|
56
|
+
-- Les indes galantes. Selections / J.-P. Rameau -- Herr Jesu Christ, wahr'r
|
57
|
+
Mensch und Gott, BWV 127 / J.S. Bach -- Jephtha. Selections / G.F. Handel
|
58
|
+
-- Courante L'immortelle ; Allemande (Tombeau de Mesangeau) ; Gigue \"La poste\"
|
59
|
+
/ Ennemond Gaultier -- Toccata 7 (from Libro II) / Girolamo Frescobaldi --
|
60
|
+
Prélude from Suite 3 in A minor. Selections / E.-C. Jacquet de la Guerre
|
61
|
+
-- Praeludium in A minor, BuxWV 153 / Dieterich Buxtehude -- Prelude and fugue
|
62
|
+
in G, BWV 860, from The well-tempered clavier part 1 / J.S. Bach -- Extracts
|
63
|
+
from ornament tables / J.H. d'Anglebert, François Couperin, J.-P. Rameau
|
64
|
+
-- 21e. ordre. La reine des coeurs ; La Couperin / François Couperin
|
65
|
+
-- Sonata sopra La Bergamasca / Salamone Rossi -- Sonata variata for violin
|
66
|
+
and continuo / Biagio Marini -- Sonata 5 in E minor for violin and continuo
|
67
|
+
(1681) / H.I.F. Biber -- Sonta in C for violin and continuo, op. 5 no. 3 /
|
68
|
+
Arcangelo Corelli -- Sinfonia in D for trumpet, strings, and continuo, G.
|
69
|
+
8 / Giuseppe Torelli -- Concerto grosso in G minor, op. 6, no. 8, \"Christmas\"
|
70
|
+
/ Arcangelo Corelli -- Concerto in E for violin, strings, and continuo, op.
|
71
|
+
3, no. 12 (R. 265) / Antonio Vivaldi -- Brandenburg concerto no. 2, in F,
|
72
|
+
BWV 1047 / J.S. Bach.</tableOfContents>\n <note type=\"statement of responsibility\"
|
73
|
+
altRepGroup=\"00\">[compiled and edited by] David Schulenberg.</note>\n <note>May
|
74
|
+
be used independently or in conjunction with the editor's book of the same
|
75
|
+
title.</note>\n <note>Includes notes on the edition and performance issues
|
76
|
+
for each selection. Texts in original language and with English translation
|
77
|
+
appear after each vocal selection.</note>\n <note type=\"bibliography\">Includes
|
78
|
+
bibliographical references.</note>\n <subject authority=\"lcsh\">\n <topic>Musical
|
79
|
+
analysis</topic>\n <genre>Music collections</genre>\n </subject>\n <subject
|
80
|
+
authority=\"lcsh\">\n <topic>Music appreciation</topic>\n <genre>Music
|
81
|
+
collections</genre>\n </subject>\n <subject authority=\"lcsh\">\n <topic>Music</topic>\n
|
82
|
+
\ <temporal>17th century</temporal>\n </subject>\n <subject authority=\"lcsh\">\n
|
83
|
+
\ <topic>Music</topic>\n <temporal>18th century</temporal>\n </subject>\n
|
84
|
+
\ <classification authority=\"lcc\">ML193 .S382 2014</classification>\n <location>\n
|
85
|
+
\ <url displayLabel=\"Contributor biographical information\">http://www.loc.gov/catdir/enhancements/fy1410/2014563060-b.html</url>\n
|
87
86
|
\ </location>\n <location>\n <url displayLabel=\"Publisher description\">http://www.loc.gov/catdir/enhancements/fy1410/2014563060-d.html</url>\n
|
88
87
|
\ </location>\n <location>\n <url displayLabel=\"Table of contents only\"
|
89
88
|
usage=\"primary display\">http://www.loc.gov/catdir/enhancements/fy1410/2014563060-t.html</url>\n
|
@@ -99,10 +98,10 @@ http_interactions:
|
|
99
98
|
\ <recordContentSource authority=\"marcorg\">CtY-Mus</recordContentSource>\n
|
100
99
|
\ <recordCreationDate encoding=\"marc\">130207</recordCreationDate>\n <recordChangeDate
|
101
100
|
encoding=\"iso8601\">20140716094602.0</recordChangeDate>\n <recordIdentifier>18059365</recordIdentifier>\n
|
102
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
103
|
-
1.
|
101
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
102
|
+
1.106 2014/12/19)</recordOrigin>\n <languageOfCataloging>\n <languageTerm
|
104
103
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </languageOfCataloging>\n
|
105
|
-
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
104
|
+
\ </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=\"^2014563060\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
106
105
|
http_version:
|
107
|
-
recorded_at:
|
108
|
-
recorded_with: VCR
|
106
|
+
recorded_at: Fri, 06 Nov 2015 14:26:53 GMT
|
107
|
+
recorded_with: VCR 3.0.0
|
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_note_fields.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%5E2010526151%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
|
+
- '3977'
|
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>Search patterns</title>\n </titleInfo>\n <titleInfo
|
35
35
|
type=\"alternative\" displayLabel=\"On cover:\">\n <title>Design for discovery</title>\n
|
36
36
|
\ </titleInfo>\n <name type=\"personal\" usage=\"primary\">\n <namePart>Morville,
|
@@ -67,8 +67,8 @@ http_interactions:
|
|
67
67
|
\ <recordContentSource authority=\"marcorg\">UKM</recordContentSource>\n
|
68
68
|
\ <recordCreationDate encoding=\"marc\">110609</recordCreationDate>\n <recordChangeDate
|
69
69
|
encoding=\"iso8601\">20111028110535.0</recordChangeDate>\n <recordIdentifier>16819621</recordIdentifier>\n
|
70
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
71
|
-
1.
|
70
|
+
\ <recordOrigin>Converted 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=\"^2010526151\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
72
72
|
http_version:
|
73
|
-
recorded_at:
|
74
|
-
recorded_with: VCR
|
73
|
+
recorded_at: Fri, 06 Nov 2015 14:26:45 GMT
|
74
|
+
recorded_with: VCR 3.0.0
|
data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_publication_year.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%5E2001315134%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
|
+
- '4559'
|
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>Oversight hearings to examine the laws, policies,
|
35
35
|
practices, and operations of the DOI, DOE, and other agencies pertaining to
|
36
36
|
payments to their employees, including payments relative to mineral royalty
|
@@ -42,7 +42,8 @@ http_interactions:
|
|
42
42
|
\ <namePart>House.</namePart>\n <namePart>Committee on Resources.</namePart>\n
|
43
43
|
\ <namePart>Subcommittee on Energy and Mineral Resources.</namePart>\n </name>\n
|
44
44
|
\ <typeOfResource>text</typeOfResource>\n <genre authority=\"marcgt\">bibliography</genre>\n
|
45
|
-
\ <
|
45
|
+
\ <genre authority=\"marcgt\">government publication</genre>\n <originInfo>\n
|
46
|
+
\ <place>\n <placeTerm type=\"code\" authority=\"marccountry\">dcu</placeTerm>\n
|
46
47
|
\ </place>\n <place>\n <placeTerm type=\"text\">Washington</placeTerm>\n
|
47
48
|
\ </place>\n <publisher>U.S. G.P.O.</publisher>\n <publisher>[U.S.
|
48
49
|
G.P.O., Supt. of Docs., Congressional Sales Office, distributor]</publisher>\n
|
@@ -50,10 +51,9 @@ http_interactions:
|
|
50
51
|
\ <issuance>monographic</issuance>\n </originInfo>\n <language>\n <languageTerm
|
51
52
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </language>\n
|
52
53
|
\ <physicalDescription>\n <form authority=\"marcform\">print</form>\n <extent>iii,
|
53
|
-
333 p. ; 24 cm.</extent>\n </physicalDescription>\n <note
|
54
|
-
|
55
|
-
|
56
|
-
\ <note>\"Serial no. 106-73.\"</note>\n <note type=\"bibliography\">Includes
|
54
|
+
333 p. ; 24 cm.</extent>\n </physicalDescription>\n <note>Distributed to
|
55
|
+
some depository libraries in microfiche.</note>\n <note>Shipping list no.:
|
56
|
+
2001-0059-P.</note>\n <note>\"Serial no. 106-73.\"</note>\n <note type=\"bibliography\">Includes
|
57
57
|
bibliographical references.</note>\n <subject>\n <geographicCode authority=\"marcgac\">n-us---</geographicCode>\n
|
58
58
|
\ </subject>\n <subject authority=\"lcsh\">\n <topic>Oil and gas leases</topic>\n
|
59
59
|
\ <geographic>United States</geographic>\n </subject>\n <subject authority=\"lcsh\">\n
|
@@ -73,8 +73,8 @@ http_interactions:
|
|
73
73
|
\ <recordContentSource authority=\"marcorg\">DGPO/DLC</recordContentSource>\n
|
74
74
|
\ <recordCreationDate encoding=\"marc\">010112</recordCreationDate>\n <recordChangeDate
|
75
75
|
encoding=\"iso8601\">20030430134501.0</recordChangeDate>\n <recordIdentifier>12277596</recordIdentifier>\n
|
76
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
77
|
-
1.
|
76
|
+
\ <recordOrigin>Converted from MARCXML to MODS version 3.5 using MARC21slim2MODS3-5.xsl\n\t\t\t\t(Revision
|
77
|
+
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=\"^2001315134\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
78
78
|
http_version:
|
79
|
-
recorded_at:
|
80
|
-
recorded_with: VCR
|
79
|
+
recorded_at: Fri, 06 Nov 2015 14:26:46 GMT
|
80
|
+
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%5E00200486%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
|
+
- '3736'
|
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>Science and technology of advanced materials</title>\n
|
35
35
|
\ </titleInfo>\n <titleInfo type=\"alternative\">\n <title>STAM</title>\n
|
36
36
|
\ </titleInfo>\n <typeOfResource>text</typeOfResource>\n <genre authority=\"marcgt\">periodical</genre>\n
|
@@ -39,19 +39,18 @@ http_interactions:
|
|
39
39
|
\ </place>\n <publisher>Elsevier</publisher>\n <dateIssued>c2000-</dateIssued>\n
|
40
40
|
\ <dateIssued encoding=\"marc\" point=\"start\">2000</dateIssued>\n <dateIssued
|
41
41
|
encoding=\"marc\" point=\"end\">9999</dateIssued>\n <issuance>serial</issuance>\n
|
42
|
-
\ <frequency
|
43
|
-
|
44
|
-
|
45
|
-
\
|
46
|
-
|
47
|
-
\
|
48
|
-
authority=\"
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
\
|
54
|
-
. S43</classification>\n <classification authority=\"ddc\" edition=\"21\">620.11</classification>\n
|
42
|
+
\ <frequency>Eight times a year, <Oct. 2006-></frequency>\n <frequency>Bimonthly,
|
43
|
+
Jan. 2003-Nov. 2004</frequency>\n <frequency>Quarterly, Mar. 2000-Dec.
|
44
|
+
2002</frequency>\n <frequency authority=\"marcfrequency\">Bimonthly</frequency>\n
|
45
|
+
\ </originInfo>\n <language>\n <languageTerm authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n
|
46
|
+
\ </language>\n <physicalDescription>\n <form authority=\"marcform\">print</form>\n
|
47
|
+
\ <form authority=\"marccategory\">electronic resource</form>\n <form
|
48
|
+
authority=\"marcsmd\">remote</form>\n <extent>v. : ill. (some col.) ; 28
|
49
|
+
cm.</extent>\n </physicalDescription>\n <note type=\"date/sequential designation\">Vol.
|
50
|
+
1, no. 1 (Mar. 2000)-</note>\n <note>Title from cover.</note>\n <subject
|
51
|
+
authority=\"lcsh\">\n <topic>Materials</topic>\n <genre>Periodicals</genre>\n
|
52
|
+
\ </subject>\n <classification authority=\"lcc\">TA401 . S43</classification>\n
|
53
|
+
\ <classification authority=\"ddc\" edition=\"21\">620.11</classification>\n
|
55
54
|
\ <relatedItem type=\"otherFormat\" displayLabel=\"Online version:\">\n <titleInfo>\n
|
56
55
|
\ <title>Science and technology of advanced materials (Online)</title>\n
|
57
56
|
\ </titleInfo>\n <identifier type=\"local\">(DLC) 2006252072</identifier>\n
|
@@ -63,10 +62,10 @@ http_interactions:
|
|
63
62
|
\ <recordContentSource authority=\"marcorg\">DLC</recordContentSource>\n
|
64
63
|
\ <recordCreationDate encoding=\"marc\">000629</recordCreationDate>\n <recordChangeDate
|
65
64
|
encoding=\"iso8601\">20130411075335.0</recordChangeDate>\n <recordIdentifier>12085315</recordIdentifier>\n
|
66
|
-
\ <recordOrigin>Converted from MARCXML to MODS version 3.
|
67
|
-
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 <languageOfCataloging>\n <languageTerm
|
68
67
|
authority=\"iso639-2b\" type=\"code\">eng</languageTerm>\n </languageOfCataloging>\n
|
69
|
-
\ </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
68
|
+
\ </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=\"^00200486\"</zs:query><zs:maximumRecords>10</zs:maximumRecords><zs:recordPacking>xml</zs:recordPacking><zs:recordSchema>mods</zs:recordSchema></zs:echoedSearchRetrieveRequest></zs:searchRetrieveResponse>\n"
|
70
69
|
http_version:
|
71
|
-
recorded_at:
|
72
|
-
recorded_with: VCR
|
70
|
+
recorded_at: Fri, 06 Nov 2015 14:26:52 GMT
|
71
|
+
recorded_with: VCR 3.0.0
|