Class: ONIX::Collection

Inherits:
SubsetDSL show all
Defined in:
lib/onix/descriptive_detail.rb

Instance Method Summary collapse

Methods inherited from SubsetDSL

_ancestor_registered_scopes, _ancestors_registered_elements, ancestor_registered_scopes, ancestors_registered_elements, element, elements, get_class, #initialize, #parse, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported

Methods inherited from Subset

parse, #parse, tag_match, #tag_match, #unsupported

Constructor Details

This class inherits a constructor from ONIX::SubsetDSL

Instance Method Details

#collection_title_elementObject



115
116
117
118
119
120
121
122
# File 'lib/onix/descriptive_detail.rb', line 115

def collection_title_element
  distinctive_title=@title_details.distinctive_title.first
  #select { |td| td.type.human=~/DistinctiveTitle/}.first
  if distinctive_title
    distinctive_title.title_elements.collection_level.first
        #select { |te| te.level.human=~/CollectionLevel/ or te.level.human=~/Subcollection/ }.first
  end
end

#identifiersObject



91
92
93
# File 'lib/onix/descriptive_detail.rb', line 91

def identifiers
  @collection_identifiers
end

#sequencesObject



95
96
97
# File 'lib/onix/descriptive_detail.rb', line 95

def sequences
  @collection_sequences
end

#subtitleObject

:category: High level collection subtitle string



109
110
111
112
113
# File 'lib/onix/descriptive_detail.rb', line 109

def subtitle
  if collection_title_element
    collection_title_element.subtitle
  end
end

#titleObject

:category: High level collection title string



101
102
103
104
105
# File 'lib/onix/descriptive_detail.rb', line 101

def title
  if collection_title_element
    collection_title_element.title
  end
end

#typeObject

shortcuts



87
88
89
# File 'lib/onix/descriptive_detail.rb', line 87

def type
  @collection_type
end