Module: RelatonW3c::BibXMLParser

Extended by:
RelatonBib::BibXMLParser, BibXMLParser
Included in:
BibXMLParser
Defined in:
lib/relaton_w3c/bibxml_parser.rb

Instance Method Summary collapse

Instance Method Details

#docids(reference, ver) ⇒ Object



17
18
19
20
21
22
# File 'lib/relaton_w3c/bibxml_parser.rb', line 17

def docids(reference, ver)
  ids = super
  ids.reject! &:primary
  id = "W3C #{reference[:target].split('/').last}"
  ids.unshift RelatonBib::DocumentIdentifier.new(id: id, type: "W3C", primary: true)
end

#pubid_type(_) ⇒ String

Return PubID type

Parameters:

  • _ (String)

    docidentifier

Returns:

  • (String)

    type



13
14
15
# File 'lib/relaton_w3c/bibxml_parser.rb', line 13

def pubid_type(_)
  "W3C"
end