Module: OaiPmh::Goes::Camping

Defined in:
lib/oaipmh/extensions/camping.rb

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/oaipmh/extensions/camping.rb', line 7

def self.included(mod)
  instance_eval(%{module ::#{mod}::Controllers
    class Oai
      def get
        @headers['Content-Type'] = 'text/xml'
        provider = OaiPmh::Provider.new
        provider.process_verb(@input.delete('verb'), @input.merge(:url => "http:"+URL(Oai).to_s))
      end
    end
  end
  })
end