Sha256: 363c5ea077abd170201a2f889c835f71ea624771532b3a5dac2e55228bd0b213
Contents?: true
Size: 1.1 KB
Versions: 46
Compression:
Stored size: 1.1 KB
Contents
require "isodoc" require_relative "metadata" require_relative "xref" require_relative "i18n" module IsoDoc module Ogc module Init def metadata_init(lang, script, labels) @meta = Metadata.new(lang, script, labels) end def xref_init(lang, script, klass, labels, options) html = HtmlConvert.new(language: lang, script: script) @xrefs = Xref.new(lang, script, html, labels, options) end def i18n_init(lang, script, i18nyaml = nil) @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml) end def fileloc(loc) File.join(File.dirname(__FILE__), loc) end def submittingorgs_path "//bibdata/contributor[role/@type = 'author']/organization/name" end def ogc_draft_ref?(ref) return unless ref.at( ns("./contributor[role/@type = 'publisher']/organization"\ "[name = 'Open Geospatial Consortium']")) status = ref.at(ns("./status/stage"))&.text or return return if %w(approved published deprecated retired).include? status true end end end end
Version data entries
46 entries across 46 versions & 1 rubygems