Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add search and resolve controller tests. Cleanup HTML based on those …

…tests.
  • Loading branch information...
commit 4be4b0b10041296ef898dac24a7172a0a2c6fb3b 1 parent 6615136
@scotdalton scotdalton authored
View
17 app/helpers/search_helper.rb
@@ -42,4 +42,21 @@ def referent_labels(context_obj = @current_context_object)
def group_list
group_list ||= ('A'..'Z').to_a.push('0-9').push('Other')
end
+
+ # Date dropdowns in search page
+ def date
+ years + months + days
+ end
+
+ def years
+ select_year(nil, {:prompt => true, :start_year => Date.today.year, :end_year => 1950}, {:name => "__year", :class=>"year input-small"})
+ end
+
+ def months
+ select_month(nil, {:prompt => true, :use_short_month => true}, {:name => "__month", :class=>"month input-small"})
+ end
+
+ def days
+ select_day(nil, {:prompt => true}, {:name => "__day", :class=>"day input-small"})
+ end
end
View
174 app/views/resolve/_citation.html.erb
@@ -1,87 +1,87 @@
-
-
-
-<table id="citation" width="100%" cellpadding="3" cellspacing="0">
-<%
-cite = @user_request.referent.to_citation
-#rft_metadata = @user_request.referent.metadata
-%>
-
- <tr>
- <td class="largeTextb" width="90" valign="TOP"><div align="right"><%= cite[:title_label] %>:</div></td>
-
- <td class="largeText"><%= cite[:title] %></td>
- </tr>
-<% # Try to warn if this could be a typo. If we have an rft.object_id, then
- # SFX recognized it as an actually existing journal. If not, then it
- # might be a typo. If it came from a manually entered citation, warn them.
-
- if display_not_found_warning?(@user_request)
-%>
- <tr><td class="largeTextb notice"><div align="right">(!) Warning:</div></td><td class="largeText notice"><%= umlaut_config.app_name %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.</td></tr>
-
-<% end %>
-
-
-<%
-@page_title = cite[:title]
-if cite[:author]
-%>
-<tr>
- <td width="90" class="largeTextb"><div align="right">Author:</div></td>
- <td class="largeText"><%= cite[:author] %></td>
- </tr>
-<%
-end
-if cite[:subtitle] %>
- <tr>
- <td width="90"><div align="right" class="smallTextb"><strong><%= cite[:subtitle_label] %>:</strong></div></td>
- <td><span class="smallText"><%= cite[:subtitle] %></span></td>
- </tr>
-<%
-end
-
-if (cite[:issn] && ! cite[:issn].empty?) %>
-<tr>
- <td><div align="right" class="smallTextb"><strong>ISSN:</strong></div></td>
- <td><span class="smallText"><%= cite[:issn] %></span></td>
-</tr>
-<%
-end
-
-if (cite[:isbn] && ! cite[:isbn].empty? ) %>
-<tr>
- <td><div align="right" class="smallTextb">ISBN:</strong></div></td>
- <td><span class="smallText"><%= cite[:isbn] %></span></td>
-</tr>
-<%
-end %>
-
-<% unless cite[:pub].blank? %>
-<tr>
- <td><div align="right" class="smallTextb">Publisher:</div></td>
- <td><span class="smallText"><%= cite[:pub] %> <td></tr>
-<% end %>
-
-<% unless cite[:date].blank? && cite[:volume].blank? && cite[:issue].blank? && cite[:page].blank? %>
- <tr>
- <td><div align="right" class="smallTextb">Published:</div></td>
- <td><span class="smallText">
- <%= date_format(cite[:date]) %>&nbsp;&nbsp;
-
- <% unless cite[:volume].blank? %>
- Volume:&nbsp;&nbsp;<%= cite[:volume] %>&nbsp;&nbsp;
- <% end %>
- <% unless cite[:issue].blank? %>
- Issue:&nbsp;&nbsp;<%= cite[:issue] %>&nbsp;&nbsp;
- <% end %>
- <% unless cite[:page].blank? %>
- Page:&nbsp;&nbsp;<%= cite[:page] %>&nbsp;&nbsp;
- <% end %>
- </span></td>
- </tr>
-<% end %>
-</table>
-
-
-
+
+
+
+<table id="citation" width="100%" cellpadding="3" cellspacing="0">
+<%
+cite = @user_request.referent.to_citation
+#rft_metadata = @user_request.referent.metadata
+%>
+
+ <tr>
+ <td class="largeTextb" width="90" valign="TOP"><div align="right"><%= cite[:title_label] %>:</div></td>
+
+ <td class="largeText"><%= cite[:title] %></td>
+ </tr>
+<% # Try to warn if this could be a typo. If we have an rft.object_id, then
+ # SFX recognized it as an actually existing journal. If not, then it
+ # might be a typo. If it came from a manually entered citation, warn them.
+
+ if display_not_found_warning?(@user_request)
+%>
+ <tr><td class="largeTextb notice"><div align="right">(!) Warning:</div></td><td class="largeText notice"><%= umlaut_config.app_name %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.</td></tr>
+
+<% end %>
+
+
+<%
+@page_title = cite[:title]
+if cite[:author]
+%>
+<tr>
+ <td width="90" class="largeTextb"><div align="right">Author:</div></td>
+ <td class="largeText"><%= cite[:author] %></td>
+ </tr>
+<%
+end
+if cite[:subtitle] %>
+ <tr>
+ <td width="90"><div align="right" class="smallTextb"><strong><%= cite[:subtitle_label] %>:</strong></div></td>
+ <td><span class="smallText"><%= cite[:subtitle] %></span></td>
+ </tr>
+<%
+end
+
+if (cite[:issn] && ! cite[:issn].empty?) %>
+<tr>
+ <td><div align="right" class="smallTextb"><strong>ISSN:</strong></div></td>
+ <td><span class="smallText"><%= cite[:issn] %></span></td>
+</tr>
+<%
+end
+
+if (cite[:isbn] && ! cite[:isbn].empty? ) %>
+<tr>
+ <td><div align="right" class="smallTextb"><strong>ISBN:</strong></div></td>
+ <td><span class="smallText"><%= cite[:isbn] %></span></td>
+</tr>
+<%
+end %>
+
+<% unless cite[:pub].blank? %>
+<tr>
+ <td><div align="right" class="smallTextb">Publisher:</div></td>
+ <td><span class="smallText"><%= cite[:pub] %></span></td></tr>
+<% end %>
+
+<% unless cite[:date].blank? && cite[:volume].blank? && cite[:issue].blank? && cite[:page].blank? %>
+ <tr>
+ <td><div align="right" class="smallTextb">Published:</div></td>
+ <td><span class="smallText">
+ <%= date_format(cite[:date]) %>&nbsp;&nbsp;
+
+ <% unless cite[:volume].blank? %>
+ Volume:&nbsp;&nbsp;<%= cite[:volume] %>&nbsp;&nbsp;
+ <% end %>
+ <% unless cite[:issue].blank? %>
+ Issue:&nbsp;&nbsp;<%= cite[:issue] %>&nbsp;&nbsp;
+ <% end %>
+ <% unless cite[:page].blank? %>
+ Page:&nbsp;&nbsp;<%= cite[:page] %>&nbsp;&nbsp;
+ <% end %>
+ </span></td>
+ </tr>
+<% end %>
+</table>
+
+
+
View
2  app/views/resolve/_holding.html.erb
@@ -42,7 +42,7 @@
<% else %>
<em class="note label">May be alternate edition.</em>
<% end %>
- <div>
+ </div>
</td>
</tr>
<% end %>
View
276 app/views/search/journals.html.erb
@@ -1,167 +1,109 @@
-
-
- <div class="oneColumn">
- <h1>Journals</h1>
-
-<%= render :partial=>"a_to_z" %>
-
- <% if flash[:error] %>
- <div id="error" class="notice citationLinker"><strong>(!) Problems:</strong> <%= flash[:error] %></div>
- <% end %>
-
- <h2 class="cl_header">Looking for a specific journal or article</h2>
-
-
-
- <%= form_tag(@submit_hash, {:method=>'get', :class=>"OpenURL", :name=>'OpenURL', :id=>'OpenURL'}) %>
- <div class="citationLinker">
-
- <input type=hidden name="rfr_id" value="info:sid/sfxit.com:citation">
- <!-- <input type=hidden name="rfr_id" value="info:sid/umlaut"> -->
-
- <table width="100%" border="0" cellspacing="0" cellpadding="5">
- <tr>
- <td colspan="3" valign="bottom"><strong>Enter
- the journal title or the ISSN.
- If you have both the journal
- title
- and ISSN, use the ISSN.</strong></td>
- <input type="hidden" class="rft_title" name="rft.title">
- <input type="hidden" class="rft_object_id" name="rft.object_id">
- <input type="hidden" id="date" name="rft.date">
- </tr>
- <tr>
-
-
- <td width="89%">Journal Title:
-
- <%= text_field :journal, :title, {:name=>'rft.jtitle', :autocomplete=>'off', :size=>'40', :class=>"title_search"} %>
-
-
- <select name="umlaut.title_search_type" class="sfx_title_search">
- <option value="contains">contains</option>
- <option value="begins">begins
- with</option>
- <option value="exact">exact match</option>
- </select>
- &nbsp;&nbsp;&nbsp;&nbsp;ISSN:
- <input type=text name="rft.issn" size="10" maxlength="9">
-
-
- </td>
-
- </tr>
-
- </table>
- </div>
- <div class="citationLinker">
- <table width="100%" border="0" cellspacing="0" cellpadding="5">
- <tr>
- <td><strong>Optional information - Enter as much as you know of the following: </strong></td>
- </tr>
- <tr>
-
- <td width="46%">Date:
- <select name="__year">
-
- <option value="" selected>Year</option>
- <% (-1*Time.now.year..-1*1950).each do |year| %>
- <option value="<%= year.abs.to_s %>"><%= year.abs.to_s %></option>
- <% end %>
- </select>
-
- <select name="__month">
- <option value="" selected>Month
- <option value="01">Jan
- <option value="02">Feb
- <option value="03">Mar
- <option value="04">Apr
- <option value="05">May
- <option value="06">Jun
- <option value="07">Jul
- <option value="08">Aug
- <option value="09">Sep
- <option value="10">Oct
- <option value="11">Nov
- <option value="12">Dec
- </select>
-
- <select name="__day">
- <option value="" selected>Day
- <option value="01">01
- <option value="02">02
- <option value="03">03
- <option value="04">04
- <option value="05">05
- <option value="06">06
- <option value="07">07
- <option value="08">08
- <option value="09">09
- <option value="10">10
- <option value="11">11
- <option value="12">12
- <option value="13">13
- <option value="14">14
- <option value="15">15
- <option value="16">16
- <option value="17">17
- <option value="18">18
- <option value="19">19
- <option value="20">20
- <option value="21">21
- <option value="22">22
- <option value="23">23
- <option value="24">24
- <option value="25">25
- <option value="26">26
- <option value="27">27
- <option value="28">28
- <option value="29">29
- <option value="30">30
- </select>
-
- &nbsp;&nbsp;&nbsp;Volume:
- <input type=text name="rft.volume" size="5" maxlength="5" value="" class='volume'>&nbsp;&nbsp;&nbsp;Issue:
- <input type=text name="rft.issue" size="5" value="" class="issue">
- &nbsp;&nbsp;&nbsp;Start page:
- <input type=text name="rft.spage" size="5" value="" class='spage'>
-</td>
-
- </tr>
- <tr>
- <td><strong>DOI or Pubmed Identifier: </strong></td>
- </tr>
- <tr>
- <td>
-
- <select name='rft_id_type'>
- <option value='doi'>DOI:</option>
- <option value='pmid'>PMID:</option>
- </select>&nbsp;&nbsp;&nbsp;
- <input name="rft_id_value" type=text value="" size=25>
- </td>
- </tr>
- <tr>
- </table>
- </div>
- <p class="cl_submit">
-
- <input type="submit" name="Generate_OpenURL2" value="Search">
- </p>
- </form>
-<div class="line2"></div>
-<p><strong><span id="helpicon">?</span> Having
- Trouble?</strong></p>
-<p>&nbsp;</p>
-<ul class="bullets">
- <li>Try entering less information
- about your article. If one piece of information is wrong, it could be causing
- the problem.</li>
- <% if umlaut_config.help_url %>
- <li>For technical support, including access problems, please <a href="<%= umlaut_config.help_url %>">contact us</a>.</li>
- <% end %>
- </ul>
-
-<p>&nbsp;</p>
-<!--close oneColumn-->
- </div>
+
+
+ <div class="oneColumn">
+ <h1>Journals</h1>
+
+<%= render :partial=>"a_to_z" %>
+
+ <% if flash[:error] %>
+ <div id="error" class="notice citationLinker"><strong>(!) Problems:</strong> <%= flash[:error] %></div>
+ <% end %>
+
+ <h2 class="cl_header">Looking for a specific journal or article</h2>
+
+
+
+ <%= form_tag(@submit_hash, {:method=>'get', :class=>"OpenURL", :name=>'OpenURL', :id=>'OpenURL'}) %>
+ <div class="citationLinker">
+
+ <input type=hidden name="rfr_id" value="info:sid/sfxit.com:citation">
+ <!-- <input type=hidden name="rfr_id" value="info:sid/umlaut"> -->
+
+ <table width="100%" border="0" cellspacing="0" cellpadding="5">
+ <tr>
+ <td colspan="3" valign="bottom"><strong>Enter
+ the journal title or the ISSN.
+ If you have both the journal
+ title
+ and ISSN, use the ISSN.</strong></td>
+ <input type="hidden" class="rft_title" name="rft.title">
+ <input type="hidden" class="rft_object_id" name="rft.object_id">
+ <input type="hidden" id="date" name="rft.date">
+ </tr>
+ <tr>
+
+
+ <td width="89%">Journal Title:
+
+ <%= text_field :journal, :title, {:name=>'rft.jtitle', :autocomplete=>'off', :size=>'40', :class=>"title_search"} %>
+
+
+ <select name="umlaut.title_search_type" class="sfx_title_search">
+ <option value="contains">contains</option>
+ <option value="begins">begins
+ with</option>
+ <option value="exact">exact match</option>
+ </select>
+ &nbsp;&nbsp;&nbsp;&nbsp;ISSN:
+ <input type=text name="rft.issn" size="10" maxlength="9">
+
+
+ </td>
+
+ </tr>
+
+ </table>
+ </div>
+ <div class="citationLinker">
+ <table width="100%" border="0" cellspacing="0" cellpadding="5">
+ <tr>
+ <td><strong>Optional information - Enter as much as you know of the following: </strong></td>
+ </tr>
+ <tr>
+
+ <td width="46%">Date:
+ <%= date %>
+ &nbsp;&nbsp;&nbsp;Volume:
+ <input type=text name="rft.volume" size="5" maxlength="5" value="" class='volume'>&nbsp;&nbsp;&nbsp;Issue:
+ <input type=text name="rft.issue" size="5" value="" class="issue">
+ &nbsp;&nbsp;&nbsp;Start page:
+ <input type=text name="rft.spage" size="5" value="" class='spage'>
+</td>
+
+ </tr>
+ <tr>
+ <td><strong>DOI or Pubmed Identifier: </strong></td>
+ </tr>
+ <tr>
+ <td>
+
+ <select name='rft_id_type'>
+ <option value='doi'>DOI:</option>
+ <option value='pmid'>PMID:</option>
+ </select>&nbsp;&nbsp;&nbsp;
+ <input name="rft_id_value" type=text value="" size=25>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <p class="cl_submit">
+
+ <input type="submit" name="Generate_OpenURL2" value="Search">
+ </p>
+ </form>
+<div class="line2"></div>
+<p><strong><span id="helpicon">?</span> Having
+ Trouble?</strong></p>
+<p>&nbsp;</p>
+<ul class="bullets">
+ <li>Try entering less information
+ about your article. If one piece of information is wrong, it could be causing
+ the problem.</li>
+ <% if umlaut_config.help_url %>
+ <li>For technical support, including access problems, please <a href="<%= umlaut_config.help_url %>">contact us</a>.</li>
+ <% end %>
+ </ul>
+
+<p>&nbsp;</p>
+<!--close oneColumn-->
+ </div>
View
86 test/functional/resolve_controller_test.rb
@@ -0,0 +1,86 @@
+# encoding: UTF-8
+require 'test_helper'
+class ResolveControllerTest < ActionController::TestCase
+ extend TestWithCassette
+ fixtures :requests, :referents, :referent_values, :dispatched_services, :service_responses
+
+ setup do
+ @controller = ResolveController.new
+ end
+
+ test_with_cassette("nytimes by issn", :resolve, :match_requests_on => [:method, :uri_without_ctx_tim]) do
+ get :index, "umlaut.request_id" => 80
+ assert_response :success
+ assert_select "title", "Find It | The New York times"
+ assert_select "h1", "Find It"
+ assert_select "h1", "Find Resource"
+ assert_select ".umlaut_resolve .main_column .resource_info table table#citation" do |citation_tables|
+ assert_equal 1, citation_tables.size
+ citation_tables.each do |citation_table|
+ assert_select citation_table, "tr", 2
+ assert_select citation_table, "tr" do |trs|
+ assert_select trs.first, "td.largeTextb", :count => 1, :text => "Title:"
+ assert_select trs.first, "td.largeText", :count => 1, :text => "The New York times"
+ assert_select trs.last, "td div.smallTextb", :count => 1, :text => "ISSN:"
+ assert_select trs.last, "td span.smallText", :count => 1, :text => "0362-4331"
+ end
+ end
+ end
+ assert_select ".umlaut_resolve .main_column .umlaut_section.fulltext" do |sections|
+ assert_equal 1, sections.size
+ sections.each do |section|
+ assert_select section, ".response_list", 1
+ assert_select section, ".response_list" do |response_lists|
+ assert_select section, "li.response_item", 4
+ end
+ end
+ end
+ assert_select ".umlaut_resolve .main_column .umlaut_section.holding" do |sections|
+ assert_equal 1, sections.size
+ sections.each do |section|
+ assert_select section, "table", 1
+ end
+ end
+ assert_select ".umlaut_resolve .sidebar .umlaut_section.export_citation" do |sections|
+ assert_equal 1, sections.size
+ sections.each do |section|
+ assert_select section, ".response_list", 1
+ end
+ end
+ assert_select ".umlaut_resolve .sidebar .umlaut_section.highlighted_link" do |sections|
+ assert_equal 1, sections.size
+ sections.each do |section|
+ assert_select section, ".response_list", 1
+ end
+ end
+ end
+
+ test_with_cassette("fulltext with edition warning", :resolve, :match_requests_on => [:method, :uri_without_ctx_tim]) do
+ umlaut_request = requests(:momo)
+ get(:index, {'umlaut.request_id' => umlaut_request.id})
+ assert_response :success
+ assert_select 'div#fulltext ul.response_list li.response_item' do |elements|
+ assert_equal(1, elements.size)
+ elements.each do |element|
+ assert_select element, "a", {:count => 1, :href => "", :text => "the Internet Archive: Open Source Book"}
+ assert_select element, 'div.edition_warning', {:count => 1,
+ :text => "Edition information Momo, ovvero l&#x27;arcana storia dei ladri di tempo e della bambina che restituì agli uomini il tempo trafugato"}
+ end
+ end
+ end
+
+ test_with_cassette("no holdings", :resolve, :match_requests_on => [:method, :uri_without_ctx_tim]) do
+ umlaut_request = requests(:advocate)
+ get(:index, {'umlaut.request_id' => umlaut_request.id, "umlaut.institution" => "NYU"})
+ assert_response :success
+ assert_select 'div#fulltext ul.response_list li.response_item' do |elements|
+ assert_equal(1, elements.size)
+ elements.each do |element|
+ assert_select element, "a", {:count => 1, :href => "", :text => "Gale Cengage Newsstand"}
+ assert_select element, 'div.response_coverage_statement', {:count => 1, :text => "Available from 2009."}
+ end
+ end
+ # Assert no holdings
+ assert_select 'div#holding div.umlaut-holdings', :count => 0
+ end
+end
View
38 test/functional/search_controller_test.rb
@@ -0,0 +1,38 @@
+require 'test_helper'
+class SearchControllerTest < ActionController::TestCase
+ setup do
+ @controller = SearchController.new
+ end
+
+ test "index" do
+ get :index
+ assert_response :success
+ assert_select "title", "Find It | Journals"
+ assert_select ".citationLinker", 2
+ assert_select ".list", 0
+ end
+
+ # Tests don't currently support contains searching because sdalton can't/won't
+ # figure out FULLTEXT indexing in MySQL, so we'll test begins with searching.
+ test "journal search" do
+ get :journal_search, "rft.jtitle"=>"Account", "umlaut.title_search_type"=>"begins"
+ assert_response :success
+ assert_select "title", "Find It | Journal titles that begin with &#x27;Account&#x27;"
+ assert_select ".citationLinker", 1
+ assert_select ".list", 1
+ assert_select ".list .citation", 5
+ assert_select ".pagination", 2
+ assert_select ".azNav", 0
+ end
+
+ test "journal list" do
+ get :journal_list, :id => "A"
+ assert_response :success
+ assert_select "title", "Find It | Browse by Journal Title: A"
+ assert_select ".citationLinker", 1
+ assert_select ".list", 1
+ assert_select ".list .citation", 16
+ assert_select ".pagination", 2
+ assert_select ".azNav", 2
+ end
+end
View
117 test/vcr_cassettes/resolve/nytimes_by_issn.yml
@@ -0,0 +1,117 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://www.archive.org/advancedsearch.php?fl%5B0%5D=*&fmt=json&q=title:%22momo%22%20AND%20creator:(ende)%20AND%20(mediatype:texts%20OR%20mediatype:audio)&rows=999&xmlsearch=Search
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 302
+ message: Moved Temporarily
+ headers:
+ Server:
+ - nginx/1.1.19
+ Date:
+ - Thu, 14 Mar 2013 18:16:40 GMT
+ Content-Type:
+ - text/html
+ Content-Length:
+ - '161'
+ Connection:
+ - keep-alive
+ Location:
+ - http://archive.org/advancedsearch.php?fl%5B%5D=*&fmt=json&xmlsearch=Search&rows=999&q=title:%22momo%22+AND+creator:%28ende%29+AND+(mediatype:texts+OR+mediatype:audio)
+ Expires:
+ - Fri, 15 Mar 2013 00:16:40 GMT
+ Cache-Control:
+ - max-age=21600
+ body:
+ encoding: US-ASCII
+ string: ! "<html>\r\n<head><title>302 Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>302
+ Found</h1></center>\r\n<hr><center>nginx/1.1.19</center>\r\n</body>\r\n</html>\r\n"
+ http_version:
+ recorded_at: Thu, 14 Mar 2013 18:16:40 GMT
+- request:
+ method: get
+ uri: http://www.archive.org/advancedsearch.php?fl%5B0%5D=*&fmt=json&q=title:%22momo%22%20AND%20creator:(ende)%20AND%20(mediatype:texts%20OR%20mediatype:audio)&rows=999&xmlsearch=Search
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 302
+ message: Moved Temporarily
+ headers:
+ Server:
+ - nginx/1.1.19
+ Date:
+ - Thu, 14 Mar 2013 18:19:23 GMT
+ Content-Type:
+ - text/html
+ Content-Length:
+ - '161'
+ Connection:
+ - keep-alive
+ Location:
+ - http://archive.org/advancedsearch.php?fl%5B%5D=*&fmt=json&xmlsearch=Search&rows=999&q=title:%22momo%22+AND+creator:%28ende%29+AND+(mediatype:texts+OR+mediatype:audio)
+ Expires:
+ - Fri, 15 Mar 2013 00:19:23 GMT
+ Cache-Control:
+ - max-age=21600
+ body:
+ encoding: US-ASCII
+ string: ! "<html>\r\n<head><title>302 Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>302
+ Found</h1></center>\r\n<hr><center>nginx/1.1.19</center>\r\n</body>\r\n</html>\r\n"
+ http_version:
+ recorded_at: Thu, 14 Mar 2013 18:19:23 GMT
+- request:
+ method: get
+ uri: http://www.archive.org/advancedsearch.php?fl%5B0%5D=*&fmt=json&q=title:%22momo%22%20AND%20creator:(ende)%20AND%20(mediatype:texts%20OR%20mediatype:audio)&rows=999&xmlsearch=Search
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 302
+ message: Moved Temporarily
+ headers:
+ Server:
+ - nginx/1.1.19
+ Date:
+ - Thu, 14 Mar 2013 18:44:54 GMT
+ Content-Type:
+ - text/html
+ Content-Length:
+ - '161'
+ Connection:
+ - keep-alive
+ Location:
+ - http://archive.org/advancedsearch.php?fl%5B%5D=*&fmt=json&xmlsearch=Search&rows=999&q=title:%22momo%22+AND+creator:%28ende%29+AND+(mediatype:texts+OR+mediatype:audio)
+ Expires:
+ - Fri, 15 Mar 2013 00:44:54 GMT
+ Cache-Control:
+ - max-age=21600
+ body:
+ encoding: US-ASCII
+ string: ! "<html>\r\n<head><title>302 Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>302
+ Found</h1></center>\r\n<hr><center>nginx/1.1.19</center>\r\n</body>\r\n</html>\r\n"
+ http_version:
+ recorded_at: Thu, 14 Mar 2013 18:44:54 GMT
+recorded_with: VCR 2.4.0
Please sign in to comment.
Something went wrong with that request. Please try again.