bento_search 1.5.0 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +27 -24
  3. data/Rakefile +30 -11
  4. data/app/assets/javascripts/bento_search/ajax_load.js +54 -22
  5. data/app/controllers/bento_search/search_controller.rb +31 -30
  6. data/app/helpers/bento_search_helper.rb +72 -74
  7. data/app/models/bento_search/concurrent_searcher.rb +136 -0
  8. data/app/models/bento_search/result_item.rb +15 -12
  9. data/app/models/bento_search/results/serialization.rb +22 -13
  10. data/app/models/bento_search/search_engine.rb +170 -140
  11. data/app/search_engines/bento_search/doaj_articles_engine.rb +20 -20
  12. data/app/search_engines/bento_search/ebsco_host_engine.rb +3 -3
  13. data/app/search_engines/bento_search/eds_engine.rb +326 -206
  14. data/app/search_engines/bento_search/google_books_engine.rb +2 -2
  15. data/app/search_engines/bento_search/scopus_engine.rb +87 -87
  16. data/app/search_engines/bento_search/summon_engine.rb +1 -1
  17. data/app/views/bento_search/_ajax_loading.html.erb +17 -0
  18. data/app/views/bento_search/_item_title.html.erb +2 -4
  19. data/app/views/bento_search/_link.html.erb +3 -3
  20. data/lib/bento_search.rb +24 -9
  21. data/lib/bento_search/engine.rb +2 -0
  22. data/lib/bento_search/version.rb +1 -1
  23. data/lib/generators/bento_search/install/ajax_load_js_generator.rb +15 -0
  24. data/test/decorator/standard_decorator_test.rb +30 -30
  25. data/test/dummy/app/assets/config/manifest.js +4 -0
  26. data/test/dummy/config/application.rb +7 -0
  27. data/test/dummy/config/boot.rb +4 -9
  28. data/test/dummy/config/environments/development.rb +2 -0
  29. data/test/dummy/config/environments/production.rb +7 -1
  30. data/test/dummy/config/environments/test.rb +10 -3
  31. data/test/functional/bento_search/search_controller_test.rb +68 -58
  32. data/test/helper/bento_search_helper_test.rb +103 -103
  33. data/test/search_engines/doaj_articles_engine_test.rb +9 -9
  34. data/test/search_engines/eds_engine_test.rb +91 -59
  35. data/test/search_engines/google_site_search_test.rb +48 -48
  36. data/test/search_engines/scopus_engine_test.rb +51 -51
  37. data/test/search_engines/search_engine_base_test.rb +108 -86
  38. data/test/search_engines/search_engine_test.rb +68 -56
  39. data/test/support/atom.xsd.xml +3 -3
  40. data/test/support/xml.xsd +117 -0
  41. data/test/test_helper.rb +23 -12
  42. data/test/unit/concurrent_searcher_test.rb +75 -0
  43. data/test/unit/pagination_test.rb +12 -12
  44. data/test/vcr_cassettes/eds/FullText_CustomLink.yml +198 -0
  45. data/test/vcr_cassettes/eds/basic_search_smoke_test.yml +1036 -1729
  46. data/test/vcr_cassettes/eds/catalog_ebook_query.yml +218 -0
  47. data/test/vcr_cassettes/eds/catalog_query.yml +255 -0
  48. data/test/vcr_cassettes/eds/get_auth_token.yml +11 -44
  49. data/test/vcr_cassettes/eds/get_auth_token_failure.yml +10 -7
  50. data/test/vcr_cassettes/eds/get_with_auth.yml +144 -153
  51. data/test/vcr_cassettes/eds/get_with_auth_recovers_from_bad_auth.yml +167 -223
  52. data/test/view/atom_results_test.rb +94 -94
  53. metadata +36 -46
  54. data/app/assets/javascripts/bento_search.js +0 -3
  55. data/app/item_decorators/bento_search/ebscohost/conditional_openurl_main_link.rb +0 -36
  56. data/app/item_decorators/bento_search/only_premade_openurl.rb +0 -20
  57. data/app/item_decorators/bento_search/openurl_add_other_link.rb +0 -39
  58. data/app/item_decorators/bento_search/openurl_main_link.rb +0 -34
  59. data/app/models/bento_search/multi_searcher.rb +0 -131
  60. data/test/dummy/config/initializers/secret_token.rb +0 -8
  61. data/test/unit/multi_searcher_test.rb +0 -49
@@ -0,0 +1,218 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://eds-api.ebscohost.com/authservice/rest/uidauth
6
+ body:
7
+ encoding: UTF-8
8
+ string: |2
9
+ {
10
+ "UserId":"DUMMY_USER_ID",
11
+ "Password":"DUMMY_PWD"
12
+ }
13
+ headers:
14
+ Accept:
15
+ - application/json
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Length:
26
+ - '128'
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Server:
30
+ - Microsoft-IIS/8.5
31
+ X-Aspnet-Version:
32
+ - 4.0.30319
33
+ X-Powered-By:
34
+ - ASP.NET
35
+ Date:
36
+ - Thu, 08 Dec 2016 20:21:41 GMT
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"AuthToken":"AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0","AuthTimeout":"1800"}'
40
+ http_version:
41
+ recorded_at: Thu, 08 Dec 2016 20:21:42 GMT
42
+ - request:
43
+ method: get
44
+ uri: http://eds-api.ebscohost.com/edsapi/rest/createsession?guest=n&profile=wsapi
45
+ body:
46
+ encoding: UTF-8
47
+ string: ''
48
+ headers:
49
+ X-Authenticationtoken:
50
+ - AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
51
+ Accept:
52
+ - application/xml
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Cache-Control:
59
+ - private
60
+ Content-Length:
61
+ - '279'
62
+ Content-Type:
63
+ - application/xml; charset=utf-8
64
+ Server:
65
+ - Microsoft-IIS/8.5
66
+ X-Sessiontoken:
67
+ - 76e036da-3e1a-473b-a88b-8312df018df3.tfSJGmfljb2oi0RBrWTTnCl4OcAEr9eSPH2kl+0lrxw=
68
+ X-Authenticationtoken:
69
+ - AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
70
+ X-Msg-Correlid:
71
+ - 4a895196-6917-4ea5-8377-c755cf6e9f20
72
+ X-Aspnet-Version:
73
+ - 4.0.30319
74
+ X-Powered-By:
75
+ - ASP.NET
76
+ Date:
77
+ - Thu, 08 Dec 2016 20:21:42 GMT
78
+ body:
79
+ encoding: UTF-8
80
+ string: <CreateSessionResponseMessage xmlns="http://epnet.com/webservices/EbscoApi/Contracts"
81
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><SessionToken>76e036da-3e1a-473b-a88b-8312df018df3.tfSJGmfljb2oi0RBrWTTnCl4OcAEr9eSPH2kl+0lrxw=</SessionToken></CreateSessionResponseMessage>
82
+ http_version:
83
+ recorded_at: Thu, 08 Dec 2016 20:21:42 GMT
84
+ - request:
85
+ method: get
86
+ uri: http://eds-api.ebscohost.com/edsapi/rest/search?highlight=y&query=AND,Stakeholder%20forum%20on%20federal%20wetlands%20mitigation%20environmental%20law%20institute&resultsperpage=10&searchmode=all&view=detailed
87
+ body:
88
+ encoding: UTF-8
89
+ string: ''
90
+ headers:
91
+ X-Authenticationtoken:
92
+ - AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
93
+ Accept:
94
+ - application/xml
95
+ X-Sessiontoken:
96
+ - 76e036da-3e1a-473b-a88b-8312df018df3.tfSJGmfljb2oi0RBrWTTnCl4OcAEr9eSPH2kl+0lrxw=
97
+ response:
98
+ status:
99
+ code: 200
100
+ message: OK
101
+ headers:
102
+ Cache-Control:
103
+ - private
104
+ Content-Length:
105
+ - '7825'
106
+ Content-Type:
107
+ - application/xml; charset=utf-8
108
+ Server:
109
+ - Microsoft-IIS/8.5
110
+ X-Sessiontoken:
111
+ - 76e036da-3e1a-473b-a88b-8312df018df3.tfSJGmfljb2oi0RBrWTTnCl4OcAEr9eSPH2kl+0lrxw=
112
+ X-Authenticationtoken:
113
+ - AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
114
+ X-Msg-Correlid:
115
+ - f426246d-c726-4b34-80da-1e1939cca310
116
+ X-Aspnet-Version:
117
+ - 4.0.30319
118
+ X-Powered-By:
119
+ - ASP.NET
120
+ Date:
121
+ - Thu, 08 Dec 2016 20:21:43 GMT
122
+ body:
123
+ encoding: UTF-8
124
+ string: '<SearchResponseMessageGet xmlns="http://epnet.com/webservices/EbscoApi/Contracts"
125
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><SearchRequestGet><QueryString>query-1=AND,Stakeholder+forum+on+federal+wetlands+mitigation+environmental+law+institute&amp;sort=relevance&amp;includefacets=y&amp;searchmode=all&amp;autosuggest=n&amp;view=detailed&amp;resultsperpage=10&amp;pagenumber=1&amp;highlight=y</QueryString><SearchCriteriaWithActions><QueriesWithAction><QueryWithAction><Query><BooleanOperator>AND</BooleanOperator><Term>Stakeholder
126
+ forum on federal wetlands mitigation environmental law institute</Term></Query><RemoveAction>removequery(1)</RemoveAction></QueryWithAction></QueriesWithAction></SearchCriteriaWithActions></SearchRequestGet><SearchResult><Statistics><TotalHits>1</TotalHits><TotalSearchTime>469</TotalSearchTime><Databases><Database><Id>bth</Id><Label>Business
127
+ Source Complete</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>a9h</Id><Label/><Status>0</Status><Hits>0</Hits></Database><Database><Id>lpr</Id><Label>Index
128
+ to Legal Periodicals Retrospective: 1908-1981 (H.W. Wilson)</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edshvr</Id><Label>Hoover''s
129
+ Company Profiles</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edslex</Id><Label>LexisNexis
130
+ Academic: Law Reviews</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edshol</Id><Label>HeinOnline</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>ir00629a</Id><Label>FLASH
131
+ (Institutional Repository)</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edsglt</Id><Label>InfoTrac
132
+ LegalTrac</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edsjsr</Id><Label>JSTOR
133
+ Journals</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edsgml</Id><Label>Making
134
+ of Modern Law</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edslmc</Id><Label>LLMC
135
+ Digital</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>cat05341a</Id><Label>The
136
+ Maloney Library</Label><Status>0</Status><Hits>1</Hits></Database></Databases></Statistics><Data><RecordFormat>EP
137
+ Display</RecordFormat><Records><Record><ResultId>1</ResultId><Header><DbId>cat05341a</DbId><DbLabel>The
138
+ Maloney Library</DbLabel><An>ford.b472115</An><RelevancyScore>1792</RelevancyScore><PubType>eBook</PubType><PubTypeId>ebook</PubTypeId></Header><PLink>http://0-search.ebscohost.com.lawpac.lawnet.fordham.edu/login.aspx?direct=true&amp;site=eds-live&amp;db=cat05341a&amp;AN=ford.b472115</PLink><FullText><Text><Availability>0</Availability></Text></FullText><Items><Item><Name>Title</Name><Label>Title</Label><Group>Ti</Group><Data>&lt;highlight&gt;Stakeholder&lt;/highlight&gt;
139
+ &lt;highlight&gt;forum&lt;/highlight&gt; &lt;highlight&gt;on&lt;/highlight&gt;
140
+ &lt;highlight&gt;federal&lt;/highlight&gt; &lt;highlight&gt;wetlands&lt;/highlight&gt;
141
+ &lt;highlight&gt;mitigation&lt;/highlight&gt; [electronic resource] : &lt;highlight&gt;forum&lt;/highlight&gt;
142
+ report / by the &lt;highlight&gt;Environmental&lt;/highlight&gt; &lt;highlight&gt;Law&lt;/highlight&gt;
143
+ &lt;highlight&gt;Institute&lt;/highlight&gt;.</Data></Item><Item><Name>TypePub</Name><Label>Publication
144
+ Type</Label><Group>TypPub</Group><Data>Book; Computer File; eBook</Data></Item><Item><Name>Subject</Name><Label>Subject
145
+ Terms</Label><Group>Su</Group><Data>&lt;searchLink fieldCode="DE" term="%22Wetlands+--+Law+and+legislation+--+United+States+--+Congresses%22"&gt;&lt;highlight&gt;Wetlands&lt;/highlight&gt;
146
+ -- &lt;highlight&gt;Law&lt;/highlight&gt; and legislation -- United States
147
+ -- Congresses&lt;/searchLink&gt;&lt;br /&gt;&lt;searchLink fieldCode="DE"
148
+ term="%22Wetland+management+--+Law+and+legislation+--+United+States+--+Congresses%22"&gt;&lt;highlight&gt;Wetland&lt;/highlight&gt;
149
+ management -- &lt;highlight&gt;Law&lt;/highlight&gt; and legislation -- United
150
+ States -- Congresses&lt;/searchLink&gt;</Data></Item><Item><Name>Author</Name><Label>Other
151
+ Authors</Label><Group>Au</Group><Data>&lt;searchLink fieldCode="AR" term="%22United+States%2E+Environmental+Protection+Agency%2E%22"&gt;United
152
+ States. &lt;highlight&gt;Environmental&lt;/highlight&gt; Protection Agency.&lt;/searchLink&gt;</Data></Item><Item><Name>Author</Name><Label>Other
153
+ Authors</Label><Group>Au</Group><Data>&lt;searchLink fieldCode="AR" term="%22Maryland%2E+Dept%2E+of+the+Environment%2E%22"&gt;Maryland.
154
+ Dept. of the Environment.&lt;/searchLink&gt;</Data></Item><Item><Name>Author</Name><Label>Other
155
+ Authors</Label><Group>Au</Group><Data>&lt;searchLink fieldCode="AR" term="%22Environmental+Law+Institute%2E%22"&gt;&lt;highlight&gt;Environmental&lt;/highlight&gt;
156
+ &lt;highlight&gt;Law&lt;/highlight&gt; &lt;highlight&gt;Institute&lt;/highlight&gt;.&lt;/searchLink&gt;</Data></Item><Item><Name>Author</Name><Label>Other
157
+ Authors</Label><Group>Au</Group><Data>&lt;searchLink fieldCode="AR" term="%22National+Aquarium+in+Baltimore%2E%22"&gt;National
158
+ Aquarium in Baltimore.&lt;/searchLink&gt;</Data></Item><Item><Name>Author</Name><Label>Other
159
+ Authors</Label><Group>Au</Group><Data>&lt;searchLink fieldCode="AR" term="%22ebrary%2C+Inc%2E%22"&gt;ebrary,
160
+ Inc.&lt;/searchLink&gt;</Data></Item><Item><Name>URL</Name><Label>Online Access</Label><Group>URL</Group><Data>&lt;link
161
+ linkTarget="URL" linkTerm="http://0-site.ebrary.com.lawpac.lawnet.fordham.edu/lib/fordhamlaw/Doc?id=10039981"
162
+ linkWindow="_blank"&gt;Online Resource via Ebrary (access: current Fordham
163
+ &lt;EPKWIC&gt;Law&lt;/EPKWIC&gt; community)&lt;/link&gt;</Data></Item></Items><RecordInfo><BibRecord><BibEntity><Languages><Language><Text>English</Text></Language></Languages><Subjects><Subject><SubjectFull>Wetlands
164
+ -- Law and legislation -- United States -- Congresses</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Wetland
165
+ management -- Law and legislation -- United States -- Congresses</SubjectFull><Type>general</Type></Subject></Subjects><Titles><Title><TitleFull>Stakeholder
166
+ forum on federal wetlands mitigation. [electronic resource] : forum report.</TitleFull><Type>main</Type></Title></Titles></BibEntity><BibRelationships><IsPartOfRelationships><IsPartOf><BibEntity><Dates><Date><D>01</D><M>01</M><Type>published</Type><Y>2002</Y></Date></Dates><Titles><Title><TitleFull>Stakeholder
167
+ forum on federal wetlands mitigation [electronic resource] : forum report
168
+ / by the Environmental Law Institute.</TitleFull><Type>main</Type></Title></Titles></BibEntity></IsPartOf></IsPartOfRelationships></BibRelationships></BibRecord></RecordInfo><Holdings><Holding><HoldingSimple><CopyInformationList><CopyInformation><Sublocation>Internet</Sublocation><ShelfLocator>KF5624
169
+ .S83 2002 (e-book)</ShelfLocator></CopyInformation></CopyInformationList></HoldingSimple></Holding></Holdings></Record></Records></Data><AvailableFacets><AvailableFacet><Id>SourceType</Id><Label>Source
170
+ Type</Label><AvailableFacetValues><AvailableFacetValue><Value>Books</Value><Count>1</Count><AddAction>addfacetfilter(SourceType:Books)</AddAction></AvailableFacetValue><AvailableFacetValue><Value>eBooks</Value><Count>1</Count><AddAction>addfacetfilter(SourceType:eBooks)</AddAction></AvailableFacetValue><AvailableFacetValue><Value>Electronic
171
+ Resources</Value><Count>1</Count><AddAction>addfacetfilter(SourceType:Electronic
172
+ Resources)</AddAction></AvailableFacetValue></AvailableFacetValues></AvailableFacet><AvailableFacet><Id>ContentProvider</Id><Label>Content
173
+ Provider</Label><AvailableFacetValues><AvailableFacetValue><Value>The Maloney
174
+ Library</Value><Count>1</Count><AddAction>addfacetfilter(ContentProvider:The
175
+ Maloney Library)</AddAction></AvailableFacetValue></AvailableFacetValues></AvailableFacet></AvailableFacets><AvailableCriteria><DateRange><MinDate>2002-01</MinDate><MaxDate>2002-01</MaxDate></DateRange></AvailableCriteria></SearchResult></SearchResponseMessageGet>'
176
+ http_version:
177
+ recorded_at: Thu, 08 Dec 2016 20:21:43 GMT
178
+ - request:
179
+ method: get
180
+ uri: http://eds-api.ebscohost.com/edsapi/rest/endsession?sessiontoken=76e036da-3e1a-473b-a88b-8312df018df3.tfSJGmfljb2oi0RBrWTTnCl4OcAEr9eSPH2kl%2B0lrxw=
181
+ body:
182
+ encoding: UTF-8
183
+ string: ''
184
+ headers:
185
+ X-Authenticationtoken:
186
+ - AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
187
+ Accept:
188
+ - application/xml
189
+ response:
190
+ status:
191
+ code: 200
192
+ message: OK
193
+ headers:
194
+ Cache-Control:
195
+ - private
196
+ Content-Length:
197
+ - '179'
198
+ Content-Type:
199
+ - application/xml; charset=utf-8
200
+ Server:
201
+ - Microsoft-IIS/8.5
202
+ X-Authenticationtoken:
203
+ - AB0ECKkoSn0X6hTuX8dkJM18AW_3WVhJx957IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
204
+ X-Msg-Correlid:
205
+ - e3f294dd-07fe-4b78-998b-4e97b2017d2b
206
+ X-Aspnet-Version:
207
+ - 4.0.30319
208
+ X-Powered-By:
209
+ - ASP.NET
210
+ Date:
211
+ - Thu, 08 Dec 2016 20:21:43 GMT
212
+ body:
213
+ encoding: UTF-8
214
+ string: <EndSessionResponse xmlns="http://epnet.com/webservices/EbscoApi/Contracts"
215
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><IsSuccessful>y</IsSuccessful></EndSessionResponse>
216
+ http_version:
217
+ recorded_at: Thu, 08 Dec 2016 20:21:43 GMT
218
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,255 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://eds-api.ebscohost.com/authservice/rest/uidauth
6
+ body:
7
+ encoding: UTF-8
8
+ string: |2
9
+ {
10
+ "UserId":"DUMMY_USER_ID",
11
+ "Password":"DUMMY_PWD"
12
+ }
13
+ headers:
14
+ Accept:
15
+ - application/json
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Length:
26
+ - '128'
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Server:
30
+ - Microsoft-IIS/8.5
31
+ X-Aspnet-Version:
32
+ - 4.0.30319
33
+ X-Powered-By:
34
+ - ASP.NET
35
+ Date:
36
+ - Thu, 08 Dec 2016 18:31:29 GMT
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"AuthToken":"AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0","AuthTimeout":"1800"}'
40
+ http_version:
41
+ recorded_at: Thu, 08 Dec 2016 18:31:29 GMT
42
+ - request:
43
+ method: get
44
+ uri: http://eds-api.ebscohost.com/edsapi/rest/createsession?guest=n&profile=wsapi
45
+ body:
46
+ encoding: UTF-8
47
+ string: ''
48
+ headers:
49
+ X-Authenticationtoken:
50
+ - AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
51
+ Accept:
52
+ - application/xml
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Cache-Control:
59
+ - private
60
+ Content-Length:
61
+ - '279'
62
+ Content-Type:
63
+ - application/xml; charset=utf-8
64
+ Server:
65
+ - Microsoft-IIS/8.5
66
+ X-Sessiontoken:
67
+ - c88b399d-ab46-49ea-8804-729b88d90b29.7ihrDv9DNEGoepQp99O/CpAgfE+DevS0jI0ZVYjGWP0=
68
+ X-Authenticationtoken:
69
+ - AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
70
+ X-Msg-Correlid:
71
+ - 387352fa-8364-4db3-ae6b-7b2dc7786db1
72
+ X-Aspnet-Version:
73
+ - 4.0.30319
74
+ X-Powered-By:
75
+ - ASP.NET
76
+ Date:
77
+ - Thu, 08 Dec 2016 18:31:28 GMT
78
+ body:
79
+ encoding: UTF-8
80
+ string: <CreateSessionResponseMessage xmlns="http://epnet.com/webservices/EbscoApi/Contracts"
81
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><SessionToken>c88b399d-ab46-49ea-8804-729b88d90b29.7ihrDv9DNEGoepQp99O/CpAgfE+DevS0jI0ZVYjGWP0=</SessionToken></CreateSessionResponseMessage>
82
+ http_version:
83
+ recorded_at: Thu, 08 Dec 2016 18:31:29 GMT
84
+ - request:
85
+ method: get
86
+ uri: http://eds-api.ebscohost.com/edsapi/rest/search?highlight=y&query=AND,New%20York%20exposed%20the%20gilded%20age%20police%20scandal%20that%20launched%20the%20progressive%20era%20Daniel%20Czitrom&resultsperpage=10&searchmode=all&view=detailed
87
+ body:
88
+ encoding: UTF-8
89
+ string: ''
90
+ headers:
91
+ X-Authenticationtoken:
92
+ - AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
93
+ Accept:
94
+ - application/xml
95
+ X-Sessiontoken:
96
+ - c88b399d-ab46-49ea-8804-729b88d90b29.7ihrDv9DNEGoepQp99O/CpAgfE+DevS0jI0ZVYjGWP0=
97
+ response:
98
+ status:
99
+ code: 200
100
+ message: OK
101
+ headers:
102
+ Cache-Control:
103
+ - private
104
+ Content-Length:
105
+ - '13330'
106
+ Content-Type:
107
+ - application/xml; charset=utf-8
108
+ Server:
109
+ - Microsoft-IIS/8.5
110
+ X-Sessiontoken:
111
+ - c88b399d-ab46-49ea-8804-729b88d90b29.7ihrDv9DNEGoepQp99O/CpAgfE+DevS0jI0ZVYjGWP0=
112
+ X-Authenticationtoken:
113
+ - AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
114
+ X-Msg-Correlid:
115
+ - 70854b2f-75b7-4ec8-8ff6-0928dd2d9e19
116
+ X-Aspnet-Version:
117
+ - 4.0.30319
118
+ X-Powered-By:
119
+ - ASP.NET
120
+ Date:
121
+ - Thu, 08 Dec 2016 18:31:29 GMT
122
+ body:
123
+ encoding: UTF-8
124
+ string: '<SearchResponseMessageGet xmlns="http://epnet.com/webservices/EbscoApi/Contracts"
125
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><SearchRequestGet><QueryString>query-1=AND,New+York+exposed+the+gilded+age+police+scandal+that+launched+the+progressive+era+Daniel+Czitrom&amp;sort=relevance&amp;includefacets=y&amp;searchmode=all&amp;autosuggest=n&amp;view=detailed&amp;resultsperpage=10&amp;pagenumber=1&amp;highlight=y</QueryString><SearchCriteriaWithActions><QueriesWithAction><QueryWithAction><Query><BooleanOperator>AND</BooleanOperator><Term>New
126
+ York exposed the gilded age police scandal that launched the progressive era
127
+ Daniel Czitrom</Term></Query><RemoveAction>removequery(1)</RemoveAction></QueryWithAction></QueriesWithAction></SearchCriteriaWithActions></SearchRequestGet><SearchResult><Statistics><TotalHits>2</TotalHits><TotalSearchTime>207</TotalSearchTime><Databases><Database><Id>bth</Id><Label>Business
128
+ Source Complete</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>a9h</Id><Label/><Status>0</Status><Hits>1</Hits></Database><Database><Id>lpr</Id><Label>Index
129
+ to Legal Periodicals Retrospective: 1908-1981 (H.W. Wilson)</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edshvr</Id><Label>Hoover''s
130
+ Company Profiles</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edslex</Id><Label>LexisNexis
131
+ Academic: Law Reviews</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edshol</Id><Label>HeinOnline</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>ir00629a</Id><Label>FLASH
132
+ (Institutional Repository)</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edsglt</Id><Label>InfoTrac
133
+ LegalTrac</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edsjsr</Id><Label>JSTOR
134
+ Journals</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edsgml</Id><Label>Making
135
+ of Modern Law</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>edslmc</Id><Label>LLMC
136
+ Digital</Label><Status>0</Status><Hits>0</Hits></Database><Database><Id>cat05341a</Id><Label>The
137
+ Maloney Library</Label><Status>0</Status><Hits>1</Hits></Database></Databases></Statistics><Data><RecordFormat>EP
138
+ Display</RecordFormat><Records><Record><ResultId>1</ResultId><Header><DbId>cat05341a</DbId><DbLabel>The
139
+ Maloney Library</DbLabel><An>ford.b625775</An><RelevancyScore>1956</RelevancyScore><PubType>Book</PubType><PubTypeId>book</PubTypeId></Header><PLink>http://0-search.ebscohost.com.lawpac.lawnet.fordham.edu/login.aspx?direct=true&amp;site=eds-live&amp;db=cat05341a&amp;AN=ford.b625775</PLink><ImageInfo><CoverArt><Size>thumb</Size><Target>http://contentcafe2.btol.com/ContentCafe/jacket.aspx?UserID=ebsco-test&amp;Password=ebsco-test&amp;Return=T&amp;Type=S&amp;Value=9780199837007</Target></CoverArt><CoverArt><Size>medium</Size><Target>http://contentcafe2.btol.com/ContentCafe/jacket.aspx?UserID=ebsco-test&amp;Password=ebsco-test&amp;Return=T&amp;Type=M&amp;Value=9780199837007</Target></CoverArt></ImageInfo><FullText><Text><Availability>0</Availability></Text></FullText><Items><Item><Name>Title</Name><Label>Title</Label><Group>Ti</Group><Data>&lt;highlight&gt;New&lt;/highlight&gt;
140
+ &lt;highlight&gt;York&lt;/highlight&gt; &lt;highlight&gt;exposed&lt;/highlight&gt;
141
+ : &lt;highlight&gt;the&lt;/highlight&gt; &lt;highlight&gt;gilded&lt;/highlight&gt;
142
+ &lt;highlight&gt;age&lt;/highlight&gt; &lt;highlight&gt;police&lt;/highlight&gt;
143
+ &lt;highlight&gt;scandal&lt;/highlight&gt; &lt;highlight&gt;that&lt;/highlight&gt;
144
+ &lt;highlight&gt;launched&lt;/highlight&gt; &lt;highlight&gt;the&lt;/highlight&gt;
145
+ &lt;highlight&gt;progressive&lt;/highlight&gt; &lt;highlight&gt;era&lt;/highlight&gt;
146
+ / &lt;highlight&gt;Daniel&lt;/highlight&gt; &lt;highlight&gt;Czitrom&lt;/highlight&gt;.</Data></Item><Item><Name>Author</Name><Label>Authors</Label><Group>Au</Group><Data>&lt;searchLink
147
+ fieldCode="AR" term="%22Czitrom%2C+Daniel+J%2E%22"&gt;&lt;highlight&gt;Czitrom&lt;/highlight&gt;,
148
+ &lt;highlight&gt;Daniel&lt;/highlight&gt; J.&lt;/searchLink&gt;, 1951-, author</Data></Item><Item><Name>TypePub</Name><Label>Publication
149
+ Type</Label><Group>TypPub</Group><Data>Book</Data></Item><Item><Name>Subject</Name><Label>Subject
150
+ Terms</Label><Group>Su</Group><Data>&lt;searchLink fieldCode="DE" term="%22Police+corruption+--+New+York+%28State%29+--+New+York+--+History+--+19th+century%22"&gt;&lt;highlight&gt;Police&lt;/highlight&gt;
151
+ corruption -- &lt;highlight&gt;New&lt;/highlight&gt; &lt;highlight&gt;York&lt;/highlight&gt;
152
+ (State) -- &lt;highlight&gt;New&lt;/highlight&gt; &lt;highlight&gt;York&lt;/highlight&gt;
153
+ -- History -- 19th century&lt;/searchLink&gt;&lt;br /&gt;&lt;searchLink fieldCode="DE"
154
+ term="%22Vice+control+--+New+York+%28State%29+--+New+York+--+History+--+19th+century%22"&gt;Vice
155
+ control -- &lt;highlight&gt;New&lt;/highlight&gt; &lt;highlight&gt;York&lt;/highlight&gt;
156
+ (State) -- &lt;highlight&gt;New&lt;/highlight&gt; &lt;highlight&gt;York&lt;/highlight&gt;
157
+ -- History -- 19th century&lt;/searchLink&gt;&lt;br /&gt;&lt;searchLink fieldCode="DE"
158
+ term="%22Political+corruption+--+New+York+%28State%29+--+New+York+--+History+--+19th+century%22"&gt;Political
159
+ corruption -- &lt;highlight&gt;New&lt;/highlight&gt; &lt;highlight&gt;York&lt;/highlight&gt;
160
+ (State) -- &lt;highlight&gt;New&lt;/highlight&gt; &lt;highlight&gt;York&lt;/highlight&gt;
161
+ -- History -- 19th century&lt;/searchLink&gt;&lt;br /&gt;&lt;searchLink fieldCode="DE"
162
+ term="%22Progressivism+%28United+States+politics%29+--+History+--+19th+century%22"&gt;Progressivism
163
+ (United States politics) -- History -- 19th century&lt;/searchLink&gt;</Data></Item><Item><Name>SubjectGeographic</Name><Label>Subject
164
+ Terms</Label><Group>Su</Group><Data>&lt;searchLink fieldCode="DE" term="%22New+York+%28N%2EY%2E%29+--+History+--+1865-1898%22"&gt;&lt;highlight&gt;New&lt;/highlight&gt;
165
+ &lt;highlight&gt;York&lt;/highlight&gt; (N.Y.) -- History -- 1865-1898&lt;/searchLink&gt;</Data></Item><Item><Name>SubjectPerson</Name><Label>Subject
166
+ Terms</Label><Group>Su</Group><Data>&lt;searchLink fieldCode="DE" term="%22Parkhurst%2C+C%2E+H%2E+1842-1933%22"&gt;Parkhurst,
167
+ C. H. 1842-1933&lt;/searchLink&gt;</Data></Item></Items><RecordInfo><BibRecord><BibEntity><Languages><Language><Text>English</Text></Language></Languages><Subjects><Subject><SubjectFull>Parkhurst,
168
+ C. H. 1842-1933</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Police
169
+ corruption -- New York (State) -- New York -- History -- 19th century</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Vice
170
+ control -- New York (State) -- New York -- History -- 19th century</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Political
171
+ corruption -- New York (State) -- New York -- History -- 19th century</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Progressivism
172
+ (United States politics) -- History -- 19th century</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>New
173
+ York (N.Y.) -- History -- 1865-1898</SubjectFull><Type>general</Type></Subject></Subjects><Titles><Title><TitleFull>New
174
+ York exposed : the gilded age police scandal that launched the progressive
175
+ era.</TitleFull><Type>main</Type></Title></Titles></BibEntity><BibRelationships><HasContributorRelationships><HasContributor><PersonEntity><Name><NameFull>Czitrom,
176
+ Daniel J.</NameFull></Name></PersonEntity></HasContributor></HasContributorRelationships><IsPartOfRelationships><IsPartOf><BibEntity><Dates><Date><D>01</D><M>01</M><Type>published</Type><Y>2016</Y></Date></Dates><Identifiers><Identifier><Type>isbn-print</Type><Value>9780199837007</Value></Identifier><Identifier><Type>isbn-print</Type><Value>0199837007</Value></Identifier></Identifiers><Titles><Title><TitleFull>New
177
+ York exposed : the gilded age police scandal that launched the progressive
178
+ era / Daniel Czitrom.</TitleFull><Type>main</Type></Title></Titles></BibEntity></IsPartOf></IsPartOfRelationships></BibRelationships></BibRecord></RecordInfo><Holdings><Holding><HoldingSimple><CopyInformationList><CopyInformation><Sublocation>Stacks</Sublocation><ShelfLocator>HV8148.N5
179
+ C95 2016</ShelfLocator></CopyInformation></CopyInformationList></HoldingSimple></Holding></Holdings></Record><Record><ResultId>2</ResultId><Header><DbId>a9h</DbId><DbLabel/><An>115358726</An><RelevancyScore>1631</RelevancyScore><PubType>Review</PubType><PubTypeId>review</PubTypeId></Header><PLink>http://0-search.ebscohost.com.lawpac.lawnet.fordham.edu/login.aspx?direct=true&amp;site=eds-live&amp;db=a9h&amp;AN=115358726</PLink><FullText><Text><Availability>0</Availability></Text></FullText><Items><Item><Name>Title</Name><Label>Title</Label><Group>Ti</Group><Data>Crusader’s
180
+ Fury, and Mark Twain in Debt.</Data></Item><Item><Name>Author</Name><Label>Authors</Label><Group>Au</Group><Data>&lt;searchLink
181
+ fieldCode="AR" term="%22ROBERTS%2C+SAM%22"&gt;ROBERTS, SAM&lt;/searchLink&gt;</Data></Item><Item><Name>TitleSource</Name><Label>Source</Label><Group>Src</Group><Data>&lt;searchLink
182
+ fieldCode="JN" term="%22New+York+Times%22"&gt;&lt;highlight&gt;New&lt;/highlight&gt;
183
+ &lt;highlight&gt;York&lt;/highlight&gt; Times&lt;/searchLink&gt;. 5/15/2016,
184
+ Vol. 165 Issue 57233, Metropolitan p3-3. 1/5p.</Data></Item><Item><Name>Subject</Name><Label>Subject
185
+ Terms</Label><Group>Su</Group><Data>*&lt;searchLink fieldCode="DE" term="%22Nonfiction%22"&gt;Nonfiction&lt;/searchLink&gt;</Data></Item><Item><Name>SubjectProduct</Name><Label>Reviews
186
+ &amp; Products</Label><Group>Su</Group><Data>&lt;searchLink fieldCode="PS"
187
+ term="%22New+York+Exposed%3A+The+Gilded+Age+Police+Scandal+That+Launched+the+Progressive+Era+%28Book%29%22"&gt;&lt;highlight&gt;New&lt;/highlight&gt;
188
+ &lt;highlight&gt;York&lt;/highlight&gt; &lt;highlight&gt;Exposed&lt;/highlight&gt;:
189
+ The &lt;highlight&gt;Gilded&lt;/highlight&gt; &lt;highlight&gt;Age&lt;/highlight&gt;
190
+ &lt;highlight&gt;Police&lt;/highlight&gt; &lt;highlight&gt;Scandal&lt;/highlight&gt;
191
+ That &lt;highlight&gt;Launched&lt;/highlight&gt; the &lt;highlight&gt;Progressive&lt;/highlight&gt;
192
+ &lt;highlight&gt;Era&lt;/highlight&gt; (Book)&lt;/searchLink&gt;&lt;br /&gt;&lt;searchLink
193
+ fieldCode="PS" term="%22Chasing+the+Last+Laugh%3A+Mark+Twain''s+Raucous+%26+Redemptive+Round-The-World+Comedy+Tour+%28Book%29%22"&gt;Chasing
194
+ the Last Laugh: Mark Twain''s Raucous &amp; Redemptive Round-The-World Comedy
195
+ Tour (Book)&lt;/searchLink&gt;</Data></Item><Item><Name>SubjectPerson</Name><Label>People</Label><Group>Su</Group><Data>&lt;searchLink
196
+ fieldCode="PE" term="%22Czitrom%2C+Daniel+J%2E%2C+1951-%22"&gt;&lt;highlight&gt;Czitrom&lt;/highlight&gt;,
197
+ &lt;highlight&gt;Daniel&lt;/highlight&gt; J., 1951-&lt;/searchLink&gt;&lt;br
198
+ /&gt;&lt;searchLink fieldCode="PE" term="%22Zacks%2C+Richard%22"&gt;Zacks,
199
+ Richard&lt;/searchLink&gt;</Data></Item></Items><RecordInfo><BibRecord><BibEntity><Languages><Language><Code>eng</Code><Text>English</Text></Language></Languages><PhysicalDescription><Pagination><PageCount>0</PageCount><StartPage>3</StartPage></Pagination></PhysicalDescription><Subjects><Subject><SubjectFull>New
200
+ York Exposed: The Gilded Age Police Scandal That Launched the Progressive
201
+ Era (Book)</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Chasing
202
+ the Last Laugh: Mark Twain''s Raucous &amp; Redemptive Round-The-World Comedy
203
+ Tour (Book)</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Czitrom,
204
+ Daniel J., 1951-</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Zacks,
205
+ Richard</SubjectFull><Type>general</Type></Subject><Subject><SubjectFull>Nonfiction</SubjectFull><Type>general</Type></Subject></Subjects><Titles><Title><TitleFull>Crusader’s
206
+ Fury, and Mark Twain in Debt.</TitleFull><Type>main</Type></Title></Titles></BibEntity><BibRelationships><HasContributorRelationships><HasContributor><PersonEntity><Name><NameFull>ROBERTS,
207
+ SAM</NameFull></Name></PersonEntity></HasContributor></HasContributorRelationships><IsPartOfRelationships><IsPartOf><BibEntity><Dates><Date><D>15</D><M>05</M><Text>5/15/2016</Text><Type>published</Type><Y>2016</Y></Date></Dates><Identifiers><Identifier><Type>issn-print</Type><Value>03624331</Value></Identifier></Identifiers><Numbering><Number><Type>volume</Type><Value>165</Value></Number><Number><Type>issue</Type><Value>57233</Value></Number></Numbering><Titles><Title><TitleFull>New
208
+ York Times</TitleFull><Type>main</Type></Title></Titles></BibEntity></IsPartOf></IsPartOfRelationships></BibRelationships></BibRecord></RecordInfo></Record></Records></Data><AvailableFacets><AvailableFacet><Id>SourceType</Id><Label>Source
209
+ Type</Label><AvailableFacetValues><AvailableFacetValue><Value>Reviews</Value><Count>1</Count><AddAction>addfacetfilter(SourceType:Reviews)</AddAction></AvailableFacetValue><AvailableFacetValue><Value>Books</Value><Count>1</Count><AddAction>addfacetfilter(SourceType:Books)</AddAction></AvailableFacetValue></AvailableFacetValues></AvailableFacet><AvailableFacet><Id>ContentProvider</Id><Label>Content
210
+ Provider</Label><AvailableFacetValues><AvailableFacetValue><Value>The Maloney
211
+ Library</Value><Count>1</Count><AddAction>addfacetfilter(ContentProvider:The
212
+ Maloney Library)</AddAction></AvailableFacetValue></AvailableFacetValues></AvailableFacet></AvailableFacets><AvailableCriteria><DateRange><MinDate>2016-01</MinDate><MaxDate>2016-05</MaxDate></DateRange></AvailableCriteria></SearchResult></SearchResponseMessageGet>'
213
+ http_version:
214
+ recorded_at: Thu, 08 Dec 2016 18:31:30 GMT
215
+ - request:
216
+ method: get
217
+ uri: http://eds-api.ebscohost.com/edsapi/rest/endsession?sessiontoken=c88b399d-ab46-49ea-8804-729b88d90b29.7ihrDv9DNEGoepQp99O/CpAgfE%2BDevS0jI0ZVYjGWP0=
218
+ body:
219
+ encoding: UTF-8
220
+ string: ''
221
+ headers:
222
+ X-Authenticationtoken:
223
+ - AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
224
+ Accept:
225
+ - application/xml
226
+ response:
227
+ status:
228
+ code: 200
229
+ message: OK
230
+ headers:
231
+ Cache-Control:
232
+ - private
233
+ Content-Length:
234
+ - '179'
235
+ Content-Type:
236
+ - application/xml; charset=utf-8
237
+ Server:
238
+ - Microsoft-IIS/8.5
239
+ X-Authenticationtoken:
240
+ - AB0djQtOJirfv7SIDlZ0QHowRCVRtVhJrgl7IkN1c3RvbWVySWQiOiJzODk0NDc0MCIsIkdyb3VwSWQiOiJtYWluIn0
241
+ X-Msg-Correlid:
242
+ - 979d10a8-7881-4a0e-a232-38553997ff53
243
+ X-Aspnet-Version:
244
+ - 4.0.30319
245
+ X-Powered-By:
246
+ - ASP.NET
247
+ Date:
248
+ - Thu, 08 Dec 2016 18:31:29 GMT
249
+ body:
250
+ encoding: UTF-8
251
+ string: <EndSessionResponse xmlns="http://epnet.com/webservices/EbscoApi/Contracts"
252
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><IsSuccessful>y</IsSuccessful></EndSessionResponse>
253
+ http_version:
254
+ recorded_at: Thu, 08 Dec 2016 18:31:30 GMT
255
+ recorded_with: VCR 2.9.3