Class: Relaton::Render::Jis::Parse
- Inherits:
-
Iso::Parse
- Object
- Iso::Parse
- Relaton::Render::Jis::Parse
- Defined in:
- lib/relaton/render-jis/parse.rb
Instance Method Summary collapse
Instance Method Details
#home_standard(_doc, pubs) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/relaton/render-jis/parse.rb', line 13 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 |
#simple_or_host_xml2hash(doc, host) ⇒ Object
7 8 9 10 11 |
# File 'lib/relaton/render-jis/parse.rb', line 7 def simple_or_host_xml2hash(doc, host) ret = super ret.merge(home_standard: home_standard(doc, ret[:publisher_raw] || ret[:author_raw])) end |