Class: BibCard::Getty::ScopeNote

Inherits:
Spira::Base
  • Object
show all
Defined in:
lib/bib_card/getty/scope_note.rb

Instance Method Summary collapse

Instance Method Details

#sourcesObject



9
10
11
12
13
14
# 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