Sha256: f8e2a5e2037576e938aba139cd54602e684470e36a269787759edce30ebfb96f

Contents?: true

Size: 497 Bytes

Versions: 27

Compression:

Stored size: 497 Bytes

Contents

module RelatonW3c
  module BibXMLParser
    extend RelatonBib::BibXMLParser
    extend BibXMLParser

    #
    # Return PubID type
    #
    # @param [String] _ docidentifier
    #
    # @return [String] type
    #
    def pubid_type(_)
      "W3C"
    end

    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
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
relaton-w3c-1.20.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.19.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.18.1 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.18.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.17.3 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.17.2 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.17.1 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.17.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.16.1 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.16.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.14.3 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.14.2 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.14.1 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.14.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.13.1 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.13.0 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.12.4 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.12.3 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.12.2 lib/relaton_w3c/bibxml_parser.rb
relaton-w3c-1.12.1 lib/relaton_w3c/bibxml_parser.rb