lib/isodoc/gb/metadata.rb in asciidoctor-gb-0.2.3 vs lib/isodoc/gb/metadata.rb in asciidoctor-gb-0.2.4

- old
+ new

@@ -127,21 +127,21 @@ when "identical" then set_metadata(:gbequivalence, "IDT") end end SCOPEPFX = { - local: "DB", - social: "T", - enterprise: "Q", + :local => "DB", + "social-group".to_sym => "T", + :enterprise => "Q", }.freeze def docidentifier(scope, prefix, mandate, docyear) docnum = get_metadata[:docnumber] dn = case scope when "local" "#{SCOPEPFX[scope.to_sym]}#{mandate_suffix(prefix, mandate)}/"\ "#{docnum}".gsub(%r{/([TZ])/}, "/\\1 ") - when "social", "enterprise" + when "social-group", "enterprise" "#{mandate_suffix(SCOPEPFX[scope.to_sym], mandate)}/"\ "#{prefix} #{docnum}" else "#{mandate_suffix(prefix, mandate)} #{docnum}" end