lib/iso_bib_item/iso_bibliographic_item.rb
def to_all_parts
      me = DeepClone.clone(self)
      me.disable_id_attribute
      @relations << DocumentRelation.new(type: "partOf", identifier: nil, url: nil, bibitem: me)
      @title.each(&:remove_part)
      @abstract = []
      @docidentifier.each(&:remove_part)
      @docidentifier.each(&:all_parts)
      @all_parts = true
    end
def to_all_parts
      me = DeepClone.clone(self)
      me.disable_id_attribute
      @relations << DocumentRelation.new(type: "partOf", identifier: nil, url: nil, bibitem: me)
      @title.each(&:remove_part)
      @abstract = []
      @docidentifier.each(&:remove_part)
      @docidentifier.each(&:all_parts)
      @all_parts = true
    end
def to_all_parts me = DeepClone . clone ( self ) me . disable_id_attribute @relations << DocumentRelation . new ( type : "partOf" , identifier : nil , url : nil , bibitem : me ) @title . each ( :remove_part ) @abstract = [ ] @docidentifier . each ( :remove_part ) @docidentifier . each ( :all_parts ) @all_parts = true end
remove title part components and abstract
remove title part components and abstract