app/helpers/local_catalog_helper.rb
# Function from Blacklight function that generates a linked doc title
# to include in the search results list. We over-ride to use our own custom
# HTML, that adds a span for an #anchor, and adds some additional display.
Function from Blacklight function that generates a linked doc title
to include in the search results list. We over-ride to use our own custom
HTML, that adds a span for an #anchor, and adds some additional display.
Function from Blacklight function that generates a linked doc title to include in the search results list . We over - ride to use our own custom HTML that adds a span for an #anchor and adds some additional display .
def jhu_link_to_document(doc, label, opts)
    span_with_anchor = if opts && opts[:counter]
      content_tag("span", "", :id => "doc_counter_#{opts[:counter]}")
    else
      "".html_safe
    end
    suffix = content_tag("span", :class => "index-title-subhead") do
      content_tag("span", heading_type_str(doc), :class => "types") +
      if (languages = heading_language_str(doc))
        " in ".html_safe + content_tag("span", languages, :class => "languages")
      else
        ""
      end
    end
    link = link_to label, url_for_document(doc), document_link_params(doc, opts)
    return  safe_join([span_with_anchor, link_to_document(doc, label, opts), suffix], " ")
  end
def jhu_link_to_document ( doc , label , opts ) span_with_anchor = if opts && opts [ :counter ] content_tag ( "span" , "" , :id => "doc_counter_#{opts[:counter]}" ) else "" . html_safe end suffix = content_tag ( "span" , :class => "index-title-subhead" ) do content_tag ( "span" , heading_type_str ( doc ) , :class => "types" ) + if ( languages = heading_language_str ( doc ) ) " in " . html_safe + content_tag ( "span" , languages , :class => "languages" ) else "" end end link = link_to label , url_for_document ( doc ) , document_link_params ( doc , opts ) return safe_join ( [ span_with_anchor , link_to_document ( doc , label , opts ) , suffix ] , " " ) end
Function from Blacklight function that generates a linked doc title
to include in the search results list.
Function from Blacklight function that generates a linked doc title to include in the search results list .
# let's add in formats and languages
doc
<not_specific>
label
<not_specific>
opts
<not_specific>