Class: Relaton::Iso::ItemData
- Inherits:
-
Bib::ItemData
- Object
- Bib::ItemData
- Relaton::Iso::ItemData
- Defined in:
- lib/relaton/iso/item_data.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Bib::ItemData
Bib::ItemData::ATTRIBUTES, Bib::ItemData::COLLECTION_ATTRBUTES, Bib::ItemData::COLLECTION_WRITE_ONLY_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Bib::ItemData
Instance Method Summary collapse
Methods inherited from Bib::ItemData
#abstract, #create_relation, #deep_clone, #delete_title_part!, #ext_remove_date, #ext_to_all_parts!, #initialize, #relation, #schema, #source, #title, #title_update_main, #to_all_parts, #to_asciibib, #to_bibtex, #to_h, #to_json, #to_most_recent_reference, #to_relation_item, #to_rfcxml, #to_xml, #to_yaml
Methods included from Bib::NamespaceHelper
Methods included from Core::ArrayWrapper
Constructor Details
This class inherits a constructor from Relaton::Bib::ItemData
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 |