Class: Relaton::Iso::ItemData
- Inherits:
-
Bib::ItemData
- Object
- Bib::ItemData
- Relaton::Iso::ItemData
- Defined in:
- lib/relaton/iso/item_data.rb
Instance Method Summary collapse
Instance Method Details
#create_id(without_date: false) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/relaton/iso/item_data.rb', line 4 def create_id(without_date: false) docid = docidentifier.find(&:primary) || docidentifier.first return unless docid if docid.content.is_a?(String) create_id_from_string(docid.content, without_date) else create_id_from_pubid(docid.content, without_date) end end |