Method: GoogleBookSearch#remove_query_context
- Defined in:
- app/service_adaptors/google_book_search.rb
#remove_query_context(url) ⇒ Object
Google gives us URL to the book that contains a ‘dq’ param with the original query, which for us is an ISSN/LCCN/OCLCnum query, which we don’t actually want to leave in there.
474 475 476 |
# File 'app/service_adaptors/google_book_search.rb', line 474 def remove_query_context(url) url.sub(/&dq=[^&]+/, '') end |