Module: RelatonIso::HashConverter
- Extended by:
- HashConverter
- Includes:
- RelatonIsoBib::HashConverter
- Included in:
- HashConverter
- Defined in:
- lib/relaton_iso/hash_converter.rb
Instance Method Summary collapse
Instance Method Details
#create_docid(**args) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/relaton_iso/hash_converter.rb', line 6 def create_docid(**args) begin args[:id] = Pubid::Iso::Identifier.parse args[:id] if args[:id].is_a?(String) && args[:primary] rescue StandardError Util.warn "Unable to create a Pubid::Iso::Identifier from `#{args[:id]}`" end DocumentIdentifier.new(**args) end |