metanorma-standoc 2.0.5.3 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0dc54789f419f00172644d6e4a9fe3bbba74e962ff0abd452ef4f2ad4277c695
4
- data.tar.gz: 0f76a11d0488e02438a625f8b0d050a1ce5199e209af3e5a3eb392834c996c38
3
+ metadata.gz: d902ad2befbbd472837eceebed5f29e138d9c10a6dd2a7dc4c465addc6e5bb14
4
+ data.tar.gz: e84f81d8e37fde67646aac29bfda98a48ed9d5e851318dfb3acfdefca0872d12
5
5
  SHA512:
6
- metadata.gz: eae38aaec6ee444c7652de6ea7792fb21299ba8cc970ed74441a241810a46a408c90ce01310d5c832a6e212e1a566560d1b38f098c3e15cb507372831a5b3337
7
- data.tar.gz: ba50432c6fe3a54e2bb77f2b527f2c6b162b7fcd2febbf008cab773658447c0a9f585aa903c3f7eadff43f0cdffedb61844e5c3919216b32e3460feb4f60375a
6
+ metadata.gz: 07d40940c3dac1176e80861e39b1fa527c9ae5c028cbde11624677c85f17645160c230725d1c010de16121a47031360c354a62db164534d6fba7d2d5456af8bf
7
+ data.tar.gz: 8f2220572c54be5e184d63fa694ce031be239a10d06888c92ac91f028ffa5bee9d2cf516e043df921dc5d932529d9686fadcb4b0547a5604717b14f261650310
@@ -108,7 +108,7 @@ module Metanorma
108
108
  bib.uri code[:key].sub(/\.[a-zA-Z0-9]+$/, ""), **{ type: "URI" }
109
109
  bib.uri code[:key].sub(/\.[a-zA-Z0-9]+$/, ""), **{ type: "citation" }
110
110
  end
111
- code[:id].sub!(/[:-](19|20)[0-9][0-9]$/, "")
111
+ # code[:id].sub!(/[:-](19|20)[0-9][0-9]$/, "")
112
112
  docid(bib, match[:usrlbl]) if match[:usrlbl]
113
113
  docid(bib, /^\d+$/.match?(code[:id]) ? "[#{code[:id]}]" : code[:id])
114
114
  code[:type] == "repo" and
@@ -123,7 +123,8 @@ module Metanorma
123
123
  end
124
124
  yr_match = /[:-](?<year>(?:19|20)[0-9][0-9])\b/.match(code[:id])
125
125
  refitem_render1(match, code, t)
126
- docnumber(t, code[:id]) unless /^\d+$|^\(.+\)$/.match?(code[:id])
126
+ /^\d+$|^\(.+\)$/.match?(code[:id]) or
127
+ docnumber(t, code[:id].sub(/[:-](19|20)[0-9][0-9]$/, ""))
127
128
  conditional_date(t, yr_match || match, false)
128
129
  end
129
130
  end
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "2.0.5.3".freeze
22
+ VERSION = "2.0.6".freeze
23
23
  end
24
24
  end
@@ -970,7 +970,7 @@ RSpec.describe Metanorma::Standoc do
970
970
  <formattedref format='application/x-isodoc+xml'>
971
971
  <em>Standard</em>
972
972
  </formattedref>
973
- <docidentifier type='ISO'>ISO/IEC TR 12382</docidentifier>
973
+ <docidentifier type='ISO'>ISO/IEC TR 12382:1992</docidentifier>
974
974
  <docnumber>12382</docnumber>
975
975
  <date type='published'><on>1992</on></date>
976
976
  </bibitem>
@@ -1820,7 +1820,7 @@ RSpec.describe Metanorma::Standoc do
1820
1820
  <em>Standard</em>
1821
1821
  </formattedref>
1822
1822
  <docidentifier type='metanorma'>[1]</docidentifier>
1823
- <docidentifier>XYZ 123</docidentifier>
1823
+ <docidentifier>XYZ 123:1966</docidentifier>
1824
1824
  <docnumber>123</docnumber>
1825
1825
  <date type='published'>
1826
1826
  <on>1966</on>