class ONIX::RelatedMaterial
Public Instance Methods
alternative_format_products()
click to toggle source
alternative format products RelatedProduct
array @return [Array<RelatedProduct>]
# File lib/onix/related_material.rb, line 29 def alternative_format_products linking("AlternativeFormat") end
linking(human)
click to toggle source
@return [Array<RelatedProduct>]
# File lib/onix/related_material.rb, line 11 def linking(human) @related_products.select{|rp| rp.code.human==human} end
part_of_products()
click to toggle source
is part of products RelatedProduct
array @return [Array<RelatedProduct>]
# File lib/onix/related_material.rb, line 23 def part_of_products linking("IsPartOf") end
print_products()
click to toggle source
print products RelatedProduct
array @return [Array<RelatedProduct>]
# File lib/onix/related_material.rb, line 17 def print_products linking("EpublicationBasedOnPrintProduct") + self.alternative_format_products.select{|rp| rp.form && rp.form.code=~/^B/} end