Sha256: 849f3d86da5127c72f1d7b7102dbe8b4d1ccaf7ab7c93984e5fdca5931a76824
Contents?: true
Size: 733 Bytes
Versions: 5
Compression:
Stored size: 733 Bytes
Contents
require "metanorma-iso" module Relaton module Render module JIS class Parse < ::Relaton::Render::Iso::Parse def simple_or_host_xml2hash(doc, host) ret = super ret.merge(home_standard: home_standard(doc, ret[:publisher_raw] || ret[:author_raw])) end def home_standard(_doc, pubs) pubs&.any? do |r| ["International Organization for Standardization", "ISO", "International Electrotechnical Commission", "IEC", "一般財団法人 日本規格協会", "Japanese Industrial Standards"] .include?(r[:nonpersonal]) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems