Sha256: 9f5cd98f5ba13e4a7fc2814a9dc9ecf58115355a3acbd2865382e5d2e577f5b8

Contents?: true

Size: 1.46 KB

Versions: 27

Compression:

Stored size: 1.46 KB

Contents

xml.instruct! :xml, version: "1.0"
xml.rdf(:RDF,
        'xmlns'  => "http://purl.org/rss/1.0/",
        'xmlns:rdf'  => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        'xmlns:dc' => "http://purl.org/dc/elements/1.1/",
        'xmlns:dcterms' => "http://purl.org/dc/terms/",
        'xmlns:dcndl' => "http://ndl.go.jp/dcndl/terms/",
        'xmlns:foaf' => "http://xmlns.com/foaf/0.1/",
        'xmlns:prism' => "http://prismstandard.org/namespaces/basic/2.0/",
        'xmlns:rdfs' =>"http://www.w3.org/2000/01/rdf-schema#"){
  xml.channel("rdf:about" => manifestations_url(params: filtered_params.merge(format: 'rdf', only_path: true))){
    xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
    xml.link "#{request.protocol}#{request.host_with_port}#{url_for(filtered_params.merge(format: nil, only_path: true))}"
    xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
    xml.language @locale.to_s
    xml.ttl "60"
    if @manifestations
      xml.items do
        xml.tag! "rdf:Seq" do
          @manifestations.each do |manifestation|
            xml.tag! "rdf:li", 'rdf:resource' => manifestation_url(manifestation)
          end
        end
      end
    end
  }
  @manifestations.each do |manifestation|
    xml.item('rdf:about' => manifestation_url(manifestation)) do
      xml << render('manifestations/show', manifestation: manifestation)
    end
  end
}

Version data entries

27 entries across 26 versions & 2 rubygems

Version Path
enju_biblio-0.3.12 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.11 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.10 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.10.rc.3 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.10.rc.2 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.10.rc.1 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.9 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.8 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.7 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.6 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.5 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.4 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.3 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.2 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.1 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.0 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.0.rc.1 app/views/manifestations/index.rdf.builder
enju_biblio-0.3.0.beta.2 app/views/manifestations/index.rdf.builder
enju_biblio-0.2.5 app/views/manifestations/index.rdf.builder
enju_biblio-0.2.4 app/views/manifestations/index.rdf.builder