relaton-render 3.0.0.pre.alpha.33 → 3.0.0.pre.alpha.34

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: 4f60dbd78e23c39885f24c3228ee357e87403531f06e9383337648f5f958e512
4
- data.tar.gz: 66e522c7127639c738ff30874836094655948746a259a92829f29a578526fdad
3
+ metadata.gz: '00382747d147cd5b989c4233a23f0fdaa8bd3e524a6a115d5418819ec0b8924b'
4
+ data.tar.gz: fc17121ece9f630269b54eb2f8729b7878869218dcfdecbc804d1d4a6cdf53c8
5
5
  SHA512:
6
- metadata.gz: 516518c28ea8a160ff658c8e1b4459ccfba92084c39cddb9358f617433a749253d904baf568feecb04ecc392923f7d2cc88550a6527d1fc5aa643134065d4f3d
7
- data.tar.gz: cc3bbbb3475890477b3a6d3a7960791a8eebba0a6b1234c5f751d47a1a9d4047badf1743bc3e51b031791fb51842e222723a555acef218b0e1f9ad0c92a579d2
6
+ metadata.gz: 84031ca7bcbdfd2b34e499a27793bbdbcf0a1ed7f26bc5f6c71a53c647f0f8fbdf4df2f07b27d03210bd44fc78758fbd1b5913e9c21c0d4f7590c00024e001a3
7
+ data.tar.gz: e2fe7991124254b4c4009053070eba05bab6cf520bf79127da9c137f28a35f4fae113a607a567d9876b9997c0d2ccf74a34ba8f5e377f904701f51cdb626d25d
@@ -289,7 +289,7 @@ is a rule to promote:
289
289
  |===
290
290
  |Flavor override |Becomes rule
291
291
 
292
- |`ItuIdentifier` |`identifier: itu`
292
+ |`ItuIdentifier` |**[impl]** promoted: `identifier: itu_identifier`
293
293
  |`NistIdentifier`, `NistCreator`, `NistDate`, `SerialDate`, `NistSeries`, `NistComponentPart`, `NistPublisher`, `Draft` |the NIST author-year rule set
294
294
  |`IeeeIdentifier`, `IeeeComponentPart`, `IeeeAccess`, `IeeeMedium` |**[impl]** promoted: `ieee_identifier`, `ieee_component_part`, `ieee_access`, `ieee_medium`
295
295
  |`BipmCreator`, `BipmComponentPart`, `BipmProduction`, `BipmExtent`, `BipmMedium`, `BipmEdition`, `BipmVolume` |the BIPM rule set
@@ -93,8 +93,22 @@ module Relaton
93
93
  end
94
94
  end
95
95
 
96
+ # The ITU identifiers: ISBN and ISSN carry their kind label
97
+ # with a colon ("ISBN 92-61-12521-9")
98
+ class ItuIdentifier < Elements::Identifier
99
+ private
100
+
101
+ def render_id(docidentifier)
102
+ return "#{docidentifier.type}: #{docidentifier.content}" if
103
+ %w[ISBN ISSN].include?(docidentifier.type)
104
+
105
+ super
106
+ end
107
+ end
108
+
96
109
  REGISTRY = {
97
110
  "status_bare" => BareStatus,
111
+ "itu_identifier" => ItuIdentifier,
98
112
  "ieee_identifier" => IeeeIdentifier,
99
113
  "ieee_component_part" => IeeeComponentPart,
100
114
  "ieee_access" => IeeeAccess,
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "3.0.0.pre.alpha.33".freeze
3
+ VERSION = "3.0.0.pre.alpha.34".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-render
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.alpha.33
4
+ version: 3.0.0.pre.alpha.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.