metanorma-generic 3.1.4 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28240604233a01b6fe0040e0764123ac77a6ab9fb6893b1d760f5786425bc8d3
4
- data.tar.gz: 879de0d79f7cd020c0e6cbef606bbb301779794278d43a8ae1e1dbaf4ed60b04
3
+ metadata.gz: 318f94629076866149fc5d16da650508942e6bfa093d42e66a26198d408c707f
4
+ data.tar.gz: 5f3c48fc5ad1edd4515317c49682c7f69b02a5c431baba2c9fd2748f9a8d61a6
5
5
  SHA512:
6
- metadata.gz: cabbd0463f13c372ad5fe3627a87ec55b62268a2f3e9aa09d1ecf2325b4035bf92a231d5d8dcbb3229535c74d2a061493304f91330f088002af2b864aaff99d3
7
- data.tar.gz: 5fae636b2e3c53a1402c30f90141f85f34fa43d9be3d4ae3523d3327f2847d283d3066b7348bf388851612a5bced79854d9b05547317123a64809aad3eb73290
6
+ metadata.gz: b340bf90d5f82273008d558d81317ffcc95bbd86361953f7932eec08ab36bff3ae54c38a372faf7c1036a3f371a1348b75d13946939938a64a7d3f41b959f17a
7
+ data.tar.gz: be8ad207e0e535cb65ba3980e1baab650969be80d620cdcc4068ed0aa96ca907b56b0e19ea85f0cdff578c0f34689635958310bf0d254809158d1e79e3e307fc
@@ -26,7 +26,7 @@ module Metanorma
26
26
  def docidentifier_from_template(xmldoc)
27
27
  b = boilerplate_isodoc(xmldoc) or return
28
28
  template = configuration.docid_template ||
29
- "{{ organization_name_short }} {{ docnumeric }}"
29
+ "{{ agency }} {{ docnumeric }}"
30
30
  b.populate_template(template, nil)
31
31
  end
32
32
 
@@ -35,8 +35,9 @@ module Metanorma
35
35
  end
36
36
 
37
37
  def metadata_id(node, xml)
38
- xml.docidentifier primary: "true",
39
- type: configuration.organization_name_short do |i|
38
+ id_type = node.attr("publisher_abbr") || node.attr("publisher") ||
39
+ configuration.organization_name_short
40
+ xml.docidentifier primary: "true", type: id_type do |i|
40
41
  i << (node.attr("docidentifier") || "")
41
42
  end
42
43
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Generic
3
- VERSION = "3.1.4".freeze
3
+ VERSION = "3.1.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-generic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-15 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc