app/helpers/blacklight/url_helper_behavior.rb in blacklight-6.0.0.pre3 vs app/helpers/blacklight/url_helper_behavior.rb in blacklight-6.0.0.pre4

- old
+ new

@@ -10,21 +10,16 @@ def url_for_document(doc, options = {}) search_state.url_for_document(doc, options) end # link_to_document(doc, 'VIEW', :counter => 3) - # link_to_document(doc, :label=>'VIEW', :counter => 3) # Use the catalog_path RESTful route to create a link to the show page for a specific item. # catalog_path accepts a HashWithIndifferentAccess object. The solr query params are stored in the session, # so we only need the +counter+ param here. We also need to know if we are viewing to document as part of search results. def link_to_document(doc, field_or_opts = nil, opts={:counter => nil}) if field_or_opts.is_a? Hash opts = field_or_opts - if opts[:label] - Deprecation.warn self, "The second argument to link_to_document should now be the label." - field = opts.delete(:label) - end else field = field_or_opts end field ||= document_show_link_field(doc) @@ -149,10 +144,10 @@ link_to(render_search_to_s(params), search_action_path(params)) end # Get url parameters to a search within a grouped result set # - # @param [Blacklight::SolrResponse::Group] + # @param [Blacklight::Solr::Response::Group] # @return [Hash] def add_group_facet_params_and_redirect group search_state.add_facet_params_and_redirect(group.field, group.key) end