module Exlibris::Primo::WebService::Response::Facets

Public Instance Methods

facets() click to toggle source
# File lib/exlibris/primo/web_service/response/facets.rb, line 6
def facets
  @facets ||= (facet_list) ? facet_list.xpath("//search:FACET", response_namespaces).collect { |facet|
    accurate = (facet.parent["ACCURATE_COUNTERS"].eql? "true")
    Exlibris::Primo::Facet.new(:raw_xml => facet.to_xml, :accurate => accurate)
  } : []
end

Private Instance Methods

facet_list() click to toggle source
# File lib/exlibris/primo/web_service/response/facets.rb, line 13
def facet_list
  @facet_list ||= xml.at_xpath("//search:FACETLIST", response_namespaces)
end