relaton 3.1.11 → 3.1.13
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 +4 -4
- data/lib/relaton/iho/docidentifier.rb +8 -0
- data/lib/relaton/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0e9e614c96fd48f04ddfbe700a96f6238ebf97570359cf2711ec121ded29bb8
|
|
4
|
+
data.tar.gz: e9dcf14e9ae34f4aba742754e61d08d2bebded84600922c804ed47c9a77f6cdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8229626e52a56d7a43525b8895bc7c4bcc36cd1830c1e2be56ec1144c32fdf1da42da6aa8a48dde913d26e325ca3150aea95aa307ae8cb390733ac092698b4f0
|
|
7
|
+
data.tar.gz: df0b1359fb378ed3c14efd55856786ad0c9bca9ccffbbaba1f76dc7ea05319223ef9c65b163dbde369c0c2dbb771e28ad13503e6accbb3e88521456e3c4e8181
|
|
@@ -12,6 +12,14 @@ module Relaton
|
|
|
12
12
|
|
|
13
13
|
def content=(value)
|
|
14
14
|
super
|
|
15
|
+
# URN-typed docidentifiers carry the MRN form
|
|
16
|
+
# (urn:mrn:iho:pub:spec:...), not a Pubid-parseable face — the
|
|
17
|
+
# parse would raise on every bibdata read (metanorma-iho#573,
|
|
18
|
+
# #603 emit these for S-4 update units and S-158:1xx primaries).
|
|
19
|
+
# Detected from the value: type may not be assigned yet when the
|
|
20
|
+
# setter fires during initialize.
|
|
21
|
+
return if value.to_s.start_with?("urn:")
|
|
22
|
+
|
|
15
23
|
@pubid = ::Pubid::Iho::Identifier.parse(value) if value
|
|
16
24
|
end
|
|
17
25
|
|
data/lib/relaton/version.rb
CHANGED