bento_search 1.0.2 → 1.0.3

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 (32) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +92 -90
  3. data/app/item_decorators/bento_search/decorator_base.rb +9 -6
  4. data/app/item_decorators/bento_search/standard_decorator.rb +24 -0
  5. data/app/search_engines/bento_search/ebsco_host_engine.rb +180 -179
  6. data/app/search_engines/bento_search/journal_tocs_for_journal.rb +179 -0
  7. data/app/views/bento_search/_std_item.html.erb +4 -4
  8. data/lib/bento_search/version.rb +1 -1
  9. data/test/decorator/decorator_base_test.rb +11 -1
  10. data/test/decorator/standard_decorator_test.rb +21 -0
  11. data/test/dummy/log/development.log +2 -0
  12. data/test/dummy/log/test.log +22324 -0
  13. data/test/{unit → search_engines}/ebsco_host_engine_test.rb +148 -130
  14. data/test/{unit → search_engines}/eds_engine_test.rb +0 -0
  15. data/test/{unit → search_engines}/google_books_engine_test.rb +0 -0
  16. data/test/{unit → search_engines}/google_site_search_test.rb +0 -0
  17. data/test/search_engines/journal_tocs_for_journal_test.rb +93 -0
  18. data/test/{unit → search_engines}/primo_engine_test.rb +0 -0
  19. data/test/{unit → search_engines}/scopus_engine_test.rb +0 -0
  20. data/test/{unit → search_engines}/search_engine_base_test.rb +0 -0
  21. data/test/{unit → search_engines}/search_engine_test.rb +0 -0
  22. data/test/{unit → search_engines}/summon_engine_test.rb +0 -0
  23. data/test/{unit → search_engines}/worldcat_sru_dc_engine_test.rb +0 -0
  24. data/test/{unit → search_engines}/xerxes_engine_test.rb +0 -0
  25. data/test/vcr_cassettes/ebscohost/RILM_record_with_ISSN_in__jid__element.yml +210 -0
  26. data/test/vcr_cassettes/journal_tocs/empty_results_on_bad_ISSN.yml +49 -0
  27. data/test/vcr_cassettes/journal_tocs/error_on_bad_registered_email.yml +41 -0
  28. data/test/vcr_cassettes/journal_tocs/error_on_error_response.yml +51 -0
  29. data/test/vcr_cassettes/journal_tocs/fetch_xml_with_hits.yml +328 -0
  30. data/test/vcr_cassettes/journal_tocs/fills_out_metadata.yml +396 -0
  31. data/test/vcr_cassettes/journal_tocs/smoke_test.yml +328 -0
  32. metadata +62 -61
File without changes
@@ -0,0 +1,93 @@
1
+ require 'test_helper'
2
+
3
+ class JournalTocsForJournalTest < ActiveSupport::TestCase
4
+ extend TestWithCassette
5
+
6
+ JournalTocsForJournal = BentoSearch::JournalTocsForJournal
7
+
8
+ @@registered_email = (ENV['JOURNAL_TOCS_REGISTERED_EMAIL'] || 'nobody@example.com')
9
+
10
+
11
+ VCR.configure do |c|
12
+ c.filter_sensitive_data("nobody@example.com", :journal_tocs) { @@registered_email }
13
+ end
14
+
15
+ def setup
16
+ @engine = JournalTocsForJournal.new(:registered_email => @@registered_email)
17
+ end
18
+
19
+
20
+ test_with_cassette("fetch_xml with hits", :journal_tocs) do
21
+ xml = @engine.fetch_xml("1533290X")
22
+
23
+ assert_not_nil xml
24
+ assert_kind_of Nokogiri::XML::Document, xml
25
+ end
26
+
27
+ test_with_cassette("error on bad base url", :journal_tocs) do
28
+ engine = JournalTocsForJournal.new(:base_url => "http://doesnotexist.jhu.edu/", :registered_email => @@registered_email)
29
+
30
+ assert_raise JournalTocsForJournal::FetchError do
31
+ xml = engine.fetch_xml("1533290X")
32
+ end
33
+ end
34
+
35
+ test_with_cassette("error on error response", :journal_tocs) do
36
+ engine = JournalTocsForJournal.new(:base_url => "http://www.journaltocs.ac.uk/bad_url", :registered_email => @@registered_email)
37
+
38
+ assert_raise JournalTocsForJournal::FetchError do
39
+ xml = engine.fetch_xml("1533290X")
40
+ end
41
+ end
42
+
43
+ test_with_cassette("error on bad registered email", :journal_tocs) do
44
+ engine = JournalTocsForJournal.new(:registered_email => "unregistered@nowhere.com")
45
+
46
+ assert_raise JournalTocsForJournal::FetchError do
47
+ xml = engine.fetch_xml("1533290X")
48
+ end
49
+ end
50
+
51
+ test_with_cassette("smoke test", :journal_tocs) do
52
+ items = @engine.fetch_by_issn("1533290X")
53
+
54
+ assert_present items
55
+ assert_kind_of Array, items
56
+ assert_kind_of BentoSearch::Results, items
57
+ items.each do |item|
58
+ assert_kind_of BentoSearch::ResultItem, item
59
+ end
60
+ end
61
+
62
+ test_with_cassette("fills out metadata", :journal_tocs) do
63
+ # this ISSN has reasonably complete data in RSS feed
64
+ items = @engine.fetch_by_issn("1600-5740")
65
+
66
+ assert_present items.first
67
+
68
+ first = items.first
69
+
70
+ assert_present first.title
71
+ assert_present first.authors
72
+ assert_present first.authors.first.display
73
+ assert_present first.abstract
74
+ assert_present first.link
75
+ assert_present first.doi
76
+ assert_present first.publisher
77
+ assert_present first.source_title
78
+ assert_present first.volume
79
+ assert_present first.issue
80
+ assert_present first.start_page
81
+ assert_present first.end_page
82
+ assert_present first.publication_date
83
+
84
+ end
85
+
86
+ test_with_cassette("empty results on bad ISSN", :journal_tocs) do
87
+ items = @engine.fetch_by_issn("badissn")
88
+
89
+ assert items.empty?
90
+ end
91
+
92
+ end
93
+
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,210 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://eit.ebscohost.com/Services/SearchService.asmx/Search?db=rih&numrec=10&prof=DUMMY_PROFILE&pwd=DUMMY_PWD&query=%22Schumann's%20Dichterliebe%20and%20early%20Romantic%20poetics:%20Fragmentation%20of%20desire%22&sort=relevance
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "Q2FjaGUtQ29udHJvbA==":
17
+ - !binary |-
18
+ cHJpdmF0ZQ==
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ dGV4dC94bWw=
22
+ !binary "U2VydmVy":
23
+ - !binary |-
24
+ TWljcm9zb2Z0LUlJUy83LjU=
25
+ !binary "WC1Bc3BuZXQtVmVyc2lvbg==":
26
+ - !binary |-
27
+ NC4wLjMwMzE5
28
+ !binary "WC1Qb3dlcmVkLUJ5":
29
+ - !binary |-
30
+ QVNQLk5FVA==
31
+ !binary "RGF0ZQ==":
32
+ - !binary |-
33
+ TW9uLCAyMiBBcHIgMjAxMyAxNzoxMTowMCBHTVQ=
34
+ !binary "Q29udGVudC1MZW5ndGg=":
35
+ - !binary |-
36
+ MTM2Nzc=
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "<?xml version=\"1.0\"?>\r\n<searchResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
40
+ xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <Hits xmlns=\"http://epnet.com/webservices/SearchService/Response/2007/07/\">4</Hits>\r\n
41
+ \ <Statistics xmlns=\"http://epnet.com/webservices/SearchService/Response/2007/07/\">\r\n
42
+ \ <Statistic>\r\n <Database>rih</Database>\r\n <Hits>4</Hits>\r\n
43
+ \ </Statistic>\r\n </Statistics>\r\n <SearchResults xmlns=\"http://epnet.com/webservices/SearchService/Response/2007/07/\">\r\n
44
+ \ <records xmlns=\"\">\r\n <rec recordID=\"1\">\r\n <pdfLink
45
+ />\r\n <plink>http://search.ebscohost.com/login.aspx?direct=true&amp;db=rih&amp;AN=2002-08630-3&amp;site=ehost-live&amp;scope=site</plink>\r\n
46
+ \ <header shortDbName=\"rih\" uiTerm=\"2002-08630-3\" longDbName=\"RILM
47
+ \ Abstracts of Music Literature\" uiTag=\"AN\">\r\n <controlInfo>\r\n
48
+ \ <bkinfo>\r\n <aug />\r\n </bkinfo>\r\n
49
+ \ <revinfo>\r\n <rtl>Schumann's <i>Dichterliebe</i>
50
+ and early Romantic poetics: Fragmentation of desire</rtl>\r\n <aug>\r\n
51
+ \ <au type=\"reviewer\">Malin, Yonatan</au>\r\n </aug>\r\n
52
+ \ </revinfo>\r\n <dissinfo />\r\n <jinfo>\r\n
53
+ \ <jid type=\"issn\">01956167</jid>\r\n <jtl>Music
54
+ theory spectrum: The journal of the Society for Music Theory</jtl>\r\n <isbn
55
+ type=\"print\">01956167</isbn>\r\n </jinfo>\r\n <pubinfo>\r\n
56
+ \ <dt year=\"2006\" month=\"09\" day=\"01\" />\r\n <vid>28</vid>\r\n
57
+ \ <iid>2</iid>\r\n <place>United States</place>\r\n
58
+ \ </pubinfo>\r\n <artinfo>\r\n <ui>2002-08630-3</ui>\r\n
59
+ \ <ppf>299</ppf>\r\n <extent>299-310</extent>\r\n
60
+ \ <tig>\r\n <atl>Schumann's <i>Dichterliebe</i>
61
+ and early Romantic poetics: Fragmentation of desire</atl>\r\n </tig>\r\n
62
+ \ <aug>\r\n <au>Malin, Yonatan</au>\r\n </aug>\r\n
63
+ \ <sug>\r\n <subj type=\"unclass\">Romantic era
64
+ -- aesthetics -- lied -- fragmentation</subj>\r\n <subj type=\"unclass\">lied
65
+ -- Romantic era -- aesthetics -- fragmentation</subj>\r\n <subj
66
+ type=\"unclass\">poetry -- Romantic era -- fragmentation</subj>\r\n <subj
67
+ type=\"unclass\">aesthetics -- Romantic era -- lied -- fragmentation</subj>\r\n
68
+ \ <subj type=\"unclass\">Schumann, Robert -- works -- Dichterliebe,
69
+ op. 48 -- fragmentation</subj>\r\n <subj type=\"unclass\">text
70
+ setting -- Schumann, Robert -- Dichterliebe, op. 48 -- fragmentation</subj>\r\n
71
+ \ <subj type=\"unclass\">Heine, Heinrich -- writings -- Lyrisches
72
+ Intermezzo -- set by Schumann</subj>\r\n <subj type=\"unclass\">poetry
73
+ -- Heine, H. -- Lyrisches Intermezzo -- set by Schumann</subj>\r\n <subj
74
+ type=\"unclass\">accompaniment -- Schumann, Robert -- Dichterliebe, op. 48
75
+ -- relation to voice</subj>\r\n <subj type=\"major\">Music
76
+ and other arts</subj>\r\n <subj type=\"major\">Western art
77
+ music</subj>\r\n </sug>\r\n <su>Romantic era</su>\r\n
78
+ \ <su>lied</su>\r\n <su>poetry</su>\r\n <su>aesthetics</su>\r\n
79
+ \ <su>Schumann, Robert</su>\r\n <su>text setting</su>\r\n
80
+ \ <su>Heine, Heinrich</su>\r\n <su>poetry</su>\r\n
81
+ \ <su>accompaniment</su>\r\n <ab />\r\n <doctype>Review
82
+ of book</doctype>\r\n </artinfo>\r\n <language>English</language>\r\n
83
+ \ <copyright />\r\n <holdings islocal=\"N\" />\r\n </controlInfo>\r\n
84
+ \ </header>\r\n </rec>\r\n <rec recordID=\"2\">\r\n <pdfLink
85
+ />\r\n <plink>http://search.ebscohost.com/login.aspx?direct=true&amp;db=rih&amp;AN=2002-08630-1&amp;site=ehost-live&amp;scope=site</plink>\r\n
86
+ \ <header shortDbName=\"rih\" uiTerm=\"2002-08630-1\" longDbName=\"RILM
87
+ \ Abstracts of Music Literature\" uiTag=\"AN\">\r\n <controlInfo>\r\n
88
+ \ <bkinfo>\r\n <aug />\r\n </bkinfo>\r\n
89
+ \ <revinfo>\r\n <rtl>Schumann's <i>Dichterliebe</i>
90
+ and early Romantic poetics: Fragmentation of desire</rtl>\r\n <aug>\r\n
91
+ \ <au type=\"reviewer\">Brown, Julie Hedges</au>\r\n </aug>\r\n
92
+ \ </revinfo>\r\n <dissinfo />\r\n <jinfo>\r\n
93
+ \ <jid type=\"issn\">01482076</jid>\r\n <jtl>19th-century
94
+ music</jtl>\r\n <isbn type=\"print\">01482076</isbn>\r\n </jinfo>\r\n
95
+ \ <pubinfo>\r\n <dt year=\"2005\" month=\"03\" day=\"01\"
96
+ />\r\n <vid>28</vid>\r\n <iid>3</iid>\r\n <place>United
97
+ States</place>\r\n </pubinfo>\r\n <artinfo>\r\n <ui>2002-08630-1</ui>\r\n
98
+ \ <ppf>276</ppf>\r\n <extent>276-295</extent>\r\n
99
+ \ <tig>\r\n <atl>Schumann's <i>Dichterliebe</i>
100
+ and early Romantic poetics: Fragmentation of desire</atl>\r\n </tig>\r\n
101
+ \ <aug>\r\n <au>Brown, Julie Hedges</au>\r\n </aug>\r\n
102
+ \ <sug>\r\n <subj type=\"unclass\">Romantic era
103
+ -- aesthetics -- lied -- fragmentation</subj>\r\n <subj type=\"unclass\">lied
104
+ -- Romantic era -- aesthetics -- fragmentation</subj>\r\n <subj
105
+ type=\"unclass\">poetry -- Romantic era -- fragmentation</subj>\r\n <subj
106
+ type=\"unclass\">aesthetics -- Romantic era -- lied -- fragmentation</subj>\r\n
107
+ \ <subj type=\"unclass\">Schumann, Robert -- works -- Dichterliebe,
108
+ op. 48 -- fragmentation</subj>\r\n <subj type=\"unclass\">text
109
+ setting -- Schumann, Robert -- Dichterliebe, op. 48 -- fragmentation</subj>\r\n
110
+ \ <subj type=\"unclass\">Heine, Heinrich -- writings -- Lyrisches
111
+ Intermezzo -- set by Schumann</subj>\r\n <subj type=\"unclass\">poetry
112
+ -- Heine, H. -- Lyrisches Intermezzo -- set by Schumann</subj>\r\n <subj
113
+ type=\"unclass\">accompaniment -- Schumann, Robert -- Dichterliebe, op. 48
114
+ -- relation to voice</subj>\r\n <subj type=\"major\">Music
115
+ and other arts</subj>\r\n <subj type=\"major\">Western art
116
+ music</subj>\r\n </sug>\r\n <su>Romantic era</su>\r\n
117
+ \ <su>lied</su>\r\n <su>poetry</su>\r\n <su>aesthetics</su>\r\n
118
+ \ <su>Schumann, Robert</su>\r\n <su>text setting</su>\r\n
119
+ \ <su>Heine, Heinrich</su>\r\n <su>poetry</su>\r\n
120
+ \ <su>accompaniment</su>\r\n <ab />\r\n <doctype>Review
121
+ of book</doctype>\r\n </artinfo>\r\n <language>English</language>\r\n
122
+ \ <copyright />\r\n <holdings islocal=\"N\" />\r\n </controlInfo>\r\n
123
+ \ </header>\r\n </rec>\r\n <rec recordID=\"3\">\r\n <pdfLink
124
+ />\r\n <plink>http://search.ebscohost.com/login.aspx?direct=true&amp;db=rih&amp;AN=2002-08630-2&amp;site=ehost-live&amp;scope=site</plink>\r\n
125
+ \ <header shortDbName=\"rih\" uiTerm=\"2002-08630-2\" longDbName=\"RILM
126
+ \ Abstracts of Music Literature\" uiTag=\"AN\">\r\n <controlInfo>\r\n
127
+ \ <bkinfo>\r\n <aug />\r\n </bkinfo>\r\n
128
+ \ <revinfo>\r\n <rtl>Schumann's <i>Dichterliebe</i>
129
+ and early Romantic poetics: Fragmentation of desire</rtl>\r\n <aug>\r\n
130
+ \ <au type=\"reviewer\">Fodale, Angela</au>\r\n </aug>\r\n
131
+ \ </revinfo>\r\n <dissinfo />\r\n <jinfo>\r\n
132
+ \ <jtl>Drammaturgia musicale e altri studi</jtl>\r\n </jinfo>\r\n
133
+ \ <pubinfo>\r\n <dt year=\"2004\" month=\"01\" day=\"01\"
134
+ />\r\n <iid>2</iid>\r\n <place>Italy</place>\r\n
135
+ \ </pubinfo>\r\n <artinfo>\r\n <ui>2002-08630-2</ui>\r\n
136
+ \ <ppf>133</ppf>\r\n <extent>133-136</extent>\r\n
137
+ \ <tig>\r\n <atl>Schumann's <i>Dichterliebe</i>
138
+ and early Romantic poetics: Fragmentation of desire</atl>\r\n </tig>\r\n
139
+ \ <aug>\r\n <au>Fodale, Angela</au>\r\n </aug>\r\n
140
+ \ <sug>\r\n <subj type=\"unclass\">Romantic era
141
+ -- aesthetics -- lied -- fragmentation</subj>\r\n <subj type=\"unclass\">lied
142
+ -- Romantic era -- aesthetics -- fragmentation</subj>\r\n <subj
143
+ type=\"unclass\">poetry -- Romantic era -- fragmentation</subj>\r\n <subj
144
+ type=\"unclass\">aesthetics -- Romantic era -- lied -- fragmentation</subj>\r\n
145
+ \ <subj type=\"unclass\">Schumann, Robert -- works -- Dichterliebe,
146
+ op. 48 -- fragmentation</subj>\r\n <subj type=\"unclass\">text
147
+ setting -- Schumann, Robert -- Dichterliebe, op. 48 -- fragmentation</subj>\r\n
148
+ \ <subj type=\"unclass\">Heine, Heinrich -- writings -- Lyrisches
149
+ Intermezzo -- set by Schumann</subj>\r\n <subj type=\"unclass\">poetry
150
+ -- Heine, H. -- Lyrisches Intermezzo -- set by Schumann</subj>\r\n <subj
151
+ type=\"unclass\">accompaniment -- Schumann, Robert -- Dichterliebe, op. 48
152
+ -- relation to voice</subj>\r\n <subj type=\"major\">Music
153
+ and other arts</subj>\r\n <subj type=\"major\">Western art
154
+ music</subj>\r\n </sug>\r\n <su>Romantic era</su>\r\n
155
+ \ <su>lied</su>\r\n <su>poetry</su>\r\n <su>aesthetics</su>\r\n
156
+ \ <su>Schumann, Robert</su>\r\n <su>text setting</su>\r\n
157
+ \ <su>Heine, Heinrich</su>\r\n <su>poetry</su>\r\n
158
+ \ <su>accompaniment</su>\r\n <ab />\r\n <doctype>Review
159
+ of book</doctype>\r\n </artinfo>\r\n <language>English</language>\r\n
160
+ \ <copyright />\r\n <holdings islocal=\"N\" />\r\n </controlInfo>\r\n
161
+ \ </header>\r\n </rec>\r\n <rec recordID=\"4\">\r\n <pdfLink
162
+ />\r\n <plink>http://search.ebscohost.com/login.aspx?direct=true&amp;db=rih&amp;AN=2002-08630&amp;site=ehost-live&amp;scope=site</plink>\r\n
163
+ \ <header shortDbName=\"rih\" uiTerm=\"2002-08630\" longDbName=\"RILM
164
+ \ Abstracts of Music Literature\" uiTag=\"AN\">\r\n <controlInfo>\r\n
165
+ \ <bkinfo>\r\n <btl>Schumann's <i>Dichterliebe</i>
166
+ and early Romantic poetics: Fragmentation of desire</btl>\r\n <aug>\r\n
167
+ \ <au>Perrey, Beate</au>\r\n </aug>\r\n <sertl>Cambridge
168
+ studies in music theory and analysis</sertl>\r\n <isbn type=\"print\">0521814790</isbn>\r\n
169
+ \ </bkinfo>\r\n <revinfo />\r\n <dissinfo
170
+ />\r\n <jinfo />\r\n <pubinfo>\r\n <dt
171
+ year=\"2002\" month=\"01\" day=\"01\" />\r\n <pub>Cambridge University
172
+ Press</pub>\r\n <place>Cambridge</place>\r\n <place>England</place>\r\n
173
+ \ <place>United States</place>\r\n </pubinfo>\r\n <artinfo>\r\n
174
+ \ <ui>2002-08630</ui>\r\n <tig>\r\n <atl>Schumann's
175
+ <i>Dichterliebe</i> and early Romantic poetics: Fragmentation of desire</atl>\r\n
176
+ \ </tig>\r\n <aug>\r\n <au>Perrey,
177
+ Beate</au>\r\n </aug>\r\n <sug>\r\n <subj
178
+ type=\"unclass\">Romantic era -- aesthetics -- lied -- fragmentation</subj>\r\n
179
+ \ <subj type=\"unclass\">lied -- Romantic era -- aesthetics
180
+ -- fragmentation</subj>\r\n <subj type=\"unclass\">poetry --
181
+ Romantic era -- fragmentation</subj>\r\n <subj type=\"unclass\">aesthetics
182
+ -- Romantic era -- lied -- fragmentation</subj>\r\n <subj type=\"unclass\">Schumann,
183
+ Robert -- works -- Dichterliebe, op. 48 -- fragmentation</subj>\r\n <subj
184
+ type=\"unclass\">text setting -- Schumann, Robert -- Dichterliebe, op. 48
185
+ -- fragmentation</subj>\r\n <subj type=\"unclass\">Heine, Heinrich
186
+ -- writings -- Lyrisches Intermezzo -- set by Schumann</subj>\r\n <subj
187
+ type=\"unclass\">poetry -- Heine, H. -- Lyrisches Intermezzo -- set by Schumann</subj>\r\n
188
+ \ <subj type=\"unclass\">accompaniment -- Schumann, Robert --
189
+ Dichterliebe, op. 48 -- relation to voice</subj>\r\n <subj
190
+ type=\"major\">Music and other arts</subj>\r\n <subj type=\"major\">Western
191
+ art music</subj>\r\n </sug>\r\n <su>Romantic era</su>\r\n
192
+ \ <su>lied</su>\r\n <su>poetry</su>\r\n <su>aesthetics</su>\r\n
193
+ \ <su>Schumann, Robert</su>\r\n <su>text setting</su>\r\n
194
+ \ <su>Heine, Heinrich</su>\r\n <su>poetry</su>\r\n
195
+ \ <su>accompaniment</su>\r\n <ab>Offers a theory
196
+ of the Romantic lied by reevaluating Schumann's <i>Dichterliebe</i> of 1840
197
+ and investigating the poetics of early Romanticism in order to understand
198
+ the mysterious magnetism and singular imaginative energy that imbues Schumann's
199
+ musical language. The Romantics rejected the ideal of a coherent and organic
200
+ whole, realizing an aesthetic of fragmentation. Close readings of many songs
201
+ from <i>Dichterliebe</i> show the singer's intense involvement with the piano's
202
+ voice, suggesting a split self and the presence of the Other. Schumann becomes
203
+ the second poet of the poem in this musical rendition of Heine's <i>Lyrisches
204
+ Intermezzo</i>.</ab>\r\n <pubtype>Book</pubtype>\r\n <doctype>Book:
205
+ monograph</doctype>\r\n </artinfo>\r\n <language>English</language>\r\n
206
+ \ <copyright />\r\n <holdings islocal=\"N\" />\r\n </controlInfo>\r\n
207
+ \ </header>\r\n </rec>\r\n </records>\r\n </SearchResults>\r\n</searchResponse>"
208
+ http_version:
209
+ recorded_at: Mon, 22 Apr 2013 17:10:59 GMT
210
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.journaltocs.ac.uk/api/journals/badissn?output=articles&user=nobody@example.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "RGF0ZQ==":
17
+ - !binary |-
18
+ TW9uLCAxMSBNYXIgMjAxMyAyMDoxMjozOCBHTVQ=
19
+ !binary "U2VydmVy":
20
+ - !binary |-
21
+ QXBhY2hlLzIuMi4xNSAoQ2VudE9TKQ==
22
+ !binary "WC1Qb3dlcmVkLUJ5":
23
+ - !binary |-
24
+ UEhQLzUuMy4z
25
+ !binary "Q29udGVudC1MZW5ndGg=":
26
+ - !binary |-
27
+ MTIwMQ==
28
+ !binary "Q29udGVudC1UeXBl":
29
+ - !binary |-
30
+ YXBwbGljYXRpb24veG1sOyBjaGFyc2V0PXV0Zi04
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\n
34
+ \ xmlns=\"http://purl.org/rss/1.0/\"\r\n xmlns:mn=\"http://usefulinc.com/rss/manifest/\"\r\n
35
+ \ xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n\n <channel rdf:about=\"http://www.journaltocs.hw.ac.uk/api/journals\">\r\n
36
+ \ <title>JournalTOCs API - Found 0 journals for: badissn (0 articles)</title>\r\n
37
+ \ <link>http://www.journaltocs.ac.uk/api/journals/badissn</link>\r\n <description><![CDATA[Your
38
+ query: badissn has returned 0 articles. Table of contents is currently unavailable
39
+ for this journal. Please report to S.Chumbe@hw.ac.uk]]></description>\r\n
40
+ \ <dc:publisher>JournalTOCs API</dc:publisher>\r\n <dc:creator>JOURNALTOCS
41
+ API PROJECT</dc:creator>\r\n\t\t<dc:coverage>1</dc:coverage>\r\n <image
42
+ rdf:resource=\"http://www.journaltocs.hw.ac.uk/images/xtralogo.gif\" />\r\n
43
+ \ <items>\r\n <rdf:Seq>\r\n \r\n </rdf:Seq>\r\n </items>\r\n
44
+ \ </channel>\r\n \r\n\t\r\n <rdf:Description rdf:ID=\"manifest\">\r\n <mn:channels>\r\n
45
+ \ <rdf:Seq>\r\n <rdf:li rdf:resource=\"http://www.journaltocs.hw.ac.uk/api/journals\"
46
+ />\r\n </rdf:Seq>\r\n </mn:channels>\r\n </rdf:Description>\r\n\r\n</rdf:RDF>"
47
+ http_version:
48
+ recorded_at: Mon, 11 Mar 2013 20:12:38 GMT
49
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.journaltocs.ac.uk/api/journals/1533290X?output=articles&user=unregistered@nowhere.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 401
13
+ message: !binary |-
14
+ VW5hdXRob3JpemVk
15
+ headers:
16
+ !binary "RGF0ZQ==":
17
+ - !binary |-
18
+ TW9uLCAxMSBNYXIgMjAxMyAyMDoxMjozOCBHTVQ=
19
+ !binary "U2VydmVy":
20
+ - !binary |-
21
+ QXBhY2hlLzIuMi4xNSAoQ2VudE9TKQ==
22
+ !binary "WC1Qb3dlcmVkLUJ5":
23
+ - !binary |-
24
+ UEhQLzUuMy4z
25
+ !binary "Q29udGVudC1MZW5ndGg=":
26
+ - !binary |-
27
+ MjQx
28
+ !binary "Q29ubmVjdGlvbg==":
29
+ - !binary |-
30
+ Y2xvc2U=
31
+ !binary "Q29udGVudC1UeXBl":
32
+ - !binary |-
33
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<notice>\r\n\t<noticeCode>1</noticeCode>\r\n\t<noticeDescription>:-(
37
+ Sorry, your account is invalid. If you think it is my fault, pl let know by
38
+ email to: journaltocs@hw.ac.uk</noticeDescription>\r\n</notice> "
39
+ http_version:
40
+ recorded_at: Mon, 11 Mar 2013 20:12:38 GMT
41
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.journaltocs.ac.uk/bad_url/journals/1533290X?output=articles&user=nobody@example.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 404
13
+ message: !binary |-
14
+ Tm90IEZvdW5k
15
+ headers:
16
+ !binary "RGF0ZQ==":
17
+ - !binary |-
18
+ TW9uLCAxMSBNYXIgMjAxMyAyMDoxMjozOCBHTVQ=
19
+ !binary "U2VydmVy":
20
+ - !binary |-
21
+ QXBhY2hlLzIuMi4xNSAoQ2VudE9TKQ==
22
+ !binary "Q29udGVudC1MZW5ndGg=":
23
+ - !binary |-
24
+ MzEz
25
+ !binary "Q29udGVudC1UeXBl":
26
+ - !binary |-
27
+ dGV4dC9odG1sOyBjaGFyc2V0PWlzby04ODU5LTE=
28
+ body:
29
+ encoding: US-ASCII
30
+ string: ! '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
31
+
32
+ <html><head>
33
+
34
+ <title>404 Not Found</title>
35
+
36
+ </head><body>
37
+
38
+ <h1>Not Found</h1>
39
+
40
+ <p>The requested URL /bad_url/journals/1533290X was not found on this server.</p>
41
+
42
+ <hr>
43
+
44
+ <address>Apache/2.2.15 (CentOS) Server at www.journaltocs.hw.ac.uk Port 80</address>
45
+
46
+ </body></html>
47
+
48
+ '
49
+ http_version:
50
+ recorded_at: Mon, 11 Mar 2013 20:12:39 GMT
51
+ recorded_with: VCR 2.3.0