Class: LocSearch::DCRecord

Inherits:
LocSearch show all
Defined in:
app/models/loc_search.rb

Constant Summary collapse

DC_NS =
{ "dc" => "http://purl.org/dc/elements/1.1/" }

Constants inherited from LocSearch

LOC_SRU_BASEURL

Instance Method Summary collapse

Methods inherited from LocSearch

import_from_sru_response, #initialize, make_sru_request_uri, search

Constructor Details

This class inherits a constructor from LocSearch

Instance Method Details

#creatorObject



55
56
# File 'app/models/loc_search.rb', line 55

def creator
end

#lccnObject



52
53
54
# File 'app/models/loc_search.rb', line 52

def lccn
  @node.xpath('.//dc:identifier[@type="lccn"]', DC_NS).first.content
end

#titleObject



49
50
51
# File 'app/models/loc_search.rb', line 49

def title
  @node.xpath('.//dc:title', DC_NS).first.content
end