Method: RelatonBib::StructuredIdentifier#remove_date
- Defined in:
- lib/relaton_bib/structured_identifier.rb
#remove_date ⇒ Object
154 155 156 157 158 159 160 161 |
# File 'lib/relaton_bib/structured_identifier.rb', line 154 def remove_date if @type == "Chinese Standard" @docnumber.sub!(/-[12]\d\d\d/, "") else @docnumber.sub!(/:[12]\d\d\d/, "") end @year = nil end |