Sha256: 746ff197f53c354b50ea58e359ffbb839912f9de6ac81d04caab9fdd6b1f56cd
Contents?: true
Size: 500 Bytes
Versions: 9
Compression:
Stored size: 500 Bytes
Contents
module RelatonIso class DocumentIdentifier < RelatonBib::DocumentIdentifier def id id_str = @id.to_s.sub(/\sED\d+/, "") if @all_parts if type == "URN" return "#{@id.urn}:ser" else return "#{id_str} (all parts)" end end type == "URN" ? @id.urn.to_s : id_str end def remove_part @id.part = nil end def remove_date @id.year = nil end def all_parts @all_parts = true end end end
Version data entries
9 entries across 9 versions & 1 rubygems