Sha256: be2b5a6b8070fa202e6b7ee6cadd972eaa58dd5c47b94368a688ed823c2278e1

Contents?: true

Size: 1010 Bytes

Versions: 5

Compression:

Stored size: 1010 Bytes

Contents

xml.instruct! :xml, :version=>"1.0"
xml.tag! "OAI-PMH", :xmlns => "http://www.openarchives.org/OAI/2.0/",
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
  "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd" do
  xml.responseDate Time.zone.now.utc.iso8601
  xml.request manifestations_url(format: :oai), :verb => "GetRecord"
  xml.GetRecord do
    xml.record do
      xml.header do
        xml.identifier @manifestation.oai_identifier
        xml.datestamp @manifestation.updated_at.utc.iso8601
        @manifestation.series_statements.each do |series_statement|
          xml.setSpec series_statement.id
        end
      end
      xml.metadata do
        case @oai[:metadataPrefix]
        when 'oai_dc', nil
          render 'record_oai_dc', manifestation: @manifestation, xml_builder: xml
        when 'junii2'
          render 'record_junii2', manifestation: @manifestation, xml_builder: xml
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_oai-0.1.1 app/views/oai/get_record.xml.builder
enju_oai-0.1.0 app/views/oai/get_record.xml.builder
enju_oai-0.1.0.pre20 app/views/oai/get_record.xml.builder
enju_oai-0.1.0.pre19 app/views/manifestations/show.oai.builder
enju_oai-0.1.0.pre18 app/views/manifestations/show.oai.builder