lib/relaton_iso/document_identifier.rb in relaton-iso-1.12.0 vs lib/relaton_iso/document_identifier.rb in relaton-iso-1.12.1

- old
+ new

@@ -1,17 +1,16 @@ module RelatonIso class DocumentIdentifier < RelatonBib::DocumentIdentifier - attr_accessor :all_parts - def id + id_str = @id.to_s.sub(/\sED\d+/, "") if @all_parts if type == "URN" return "#{@id.urn}:ser" - else - return "#{@id} (all parts)" + else + return "#{id_str} (all parts)" end end - type == "URN" ? @id.urn.to_s : @id.to_s + type == "URN" ? @id.urn.to_s : id_str end def remove_part @id.part = nil end