Class: ODDB::View::Drugs::Search

Inherits:
PublicTemplate show all
Includes:
Custom::Head
Defined in:
src/view/drugs/search.rb

Constant Summary

CONTENT =
View::Drugs::GoogleAdSenseComposite
CSS_CLASS =
'composite'
HEAD =
View::WelcomeHead

Constants inherited from PublicTemplate

COMPONENTS, CONTENT, CSS_CLASS, DOJO_DEBUG, DOJO_ENCODING, DOJO_PARSE_WIDGETS, DOJO_PREFIX, DOJO_REQUIRE, FOOT, HEAD, HTTP_HEADERS, META_TAGS

Instance Method Summary (collapse)

Methods included from Custom::Head

#head

Methods included from Custom::HeadMethods

#just_medical, #oekk_head

Methods inherited from PublicTemplate

#content, #css_link, #dynamic_html_headers, #foot, #head, #init, #javascripts, #title, #title_part_three, #topfoot

Instance Method Details

- (Object) other_html_headers(context)



17
18
19
20
21
22
23
24
25
26
27
# File 'src/view/drugs/search.rb', line 17

def other_html_headers(context)
  headers = super 
  @session.valid_values(:channel).each { |channel|
    if(@lookandfeel.enabled?(channel.gsub('.', '_').to_sym))
      url = @lookandfeel._event_url(:rss, :channel => channel)
      headers << context.link(:href => url, :type => "application/rss+xml",
                              :title => channel, :rel => "alternate")
    end
  }
  headers
end