Class: ODDB::View::NotifyConfirm

Inherits:
ResultTemplate show all
Defined in:
src/view/notify_confirm.rb

Constant Summary

CONTENT =
NotifyConfirmComposite

Constants inherited from ResultTemplate

COMPONENTS, HEAD

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 inherited from ResultTemplate

#init

Methods inherited from PublicTemplate

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

Methods included from Custom::HeadMethods

#just_medical, #oekk_head

Instance Method Details

- (Object) http_headers



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'src/view/notify_confirm.rb', line 37

def http_headers
  headers = super
  args = {
    :search_query => @session.persistent_user_input(:search_query), 
    :search_type => @session.persistent_user_input(:search_type), 
  }.delete_if { |key, value| value.nil? }
  url = if(args.empty?)
          @lookandfeel._event_url(:home)
        else
          args.store(:zone, @session.zone)
          if @lookandfeel.disabled?(:best_result)
            @lookandfeel._event_url(:search, args)
          else
            @lookandfeel._event_url(:search, args, 'best_result')
          end
        end
  headers.store('Refresh', "5; URL=#{url}")
  headers
end