Sha256: 7e7fcd01d223eb9c465e94b8ee4e8d1df9e1ff1ddca4c160db51e74609c829ff

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

xml.instruct!
xml.explain("xmlns" => "http://explain.z3950.org/dtd/2.0/") do

  # Made up protocol "http-cql", oh well.
  xml.serverInfo("protocol" => "http-cql") do
    xml.host request.host
    xml.port request.port
    xml.database url_for(:controller => "/catalog", :action => "index", :search_field => BlacklightCql::SolrHelperExtension.pseudo_search_field[:key])
  end

  xml.indexInfo do
    xml.set(:name => CqlRuby.to_solr_defaults[:solr_field_prefix], 
            :identifier => 
              url_for(:controller => "/catalog", 
                      :action => "index",
                      :anchor => "local_solr_field",
                      :only_path => false))
    xml.set(:name => CqlRuby.to_solr_defaults[:blacklight_field_prefix],
            :identifier => 
              url_for(:controller => "/catalog", 
                      :action => "index",
                      :anchor => "local_app_field",
                      :only_path => false))
    #context set for our solr.dismax relation
    xml.set(:name => "solr", :identifier => "http://purl.org/net/cql-context-set/solr")

    blacklight_config_to_explain_index(xml)
    luke_to_explain_index(xml)  
  end
end            

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blacklight_cql-1.2.1 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.2.0 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.1.0 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.0.1 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.0.0 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.0.0pre3 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-0.9.1 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.0.0pre2 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-1.0.0pre1 app/views/blacklight_cql/explain/explain.xml.builder
blacklight_cql-0.9.0 app/views/blacklight_cql/explain/explain.xml.builder