class BibCard::Getty::ScopeNote

Public Instance Methods

sources() click to toggle source
# File lib/bib_card/getty/scope_note.rb, line 9
def sources
  Spira.repository.query({subject: self.subject, predicate: DC_SOURCE}).map do |stmt|
    source = stmt.object.as(Source)
    source.type == BIBO_DOCUMENT_PART ? source.parent : source
  end
end