isodoc 1.6.6 → 1.6.7

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: 6e13114c8da44d9c17bde29fc00a863856d92f156179d0e17cb68fe44acf15c6
4
- data.tar.gz: 48059fef1258601881461467f15ff9eddd2c3438569f4db009d4534df24705e0
3
+ metadata.gz: ffc474474290bb4fbd16f4e488e94366bd18e22d19c8041fbc5a01858fefb346
4
+ data.tar.gz: 753d8c7b604eb1afe6eaea153e58d1eec4a249676eec23b480181566a9f37557
5
5
  SHA512:
6
- metadata.gz: 111193af048da068dbf1f6fe6e687d7ceb16f828d5f34a65c09cb5a4a12ea8fc9e8818a7df5f507bb8aea7f76dcb07b76463d59285aad3e6b185a6dc43208775
7
- data.tar.gz: 6563bf3f6aa6693b8cea2bfb04962399bb5821d992f68cc981137a09a81bbc0c870a558b4f3de1c3c48ce4cb0a46b6e695af4f33c00ded7f0b29c334ca91077f
6
+ metadata.gz: 68977dc8fe66bc0d62cce9676dc55479a0789bcf68e6d5e0f12f2e7d586c777b1d37be754385fb71856ba80fa9aca60d2d3dbadeeee6f9ecbb7b47660c2fb57f
7
+ data.tar.gz: 54a4312fb6b6b353146e28a7844e7e0daaf77a19d5754c34e520d0514f8c73610be103986b61140b3605fa3d7bd6851f2c27eefe6c3101723e624fd87fead776
@@ -1,6 +1,7 @@
1
1
  module IsoDoc
2
2
  class PresentationXMLConvert < ::IsoDoc::Convert
3
3
  def bibdata(docxml)
4
+ docid_prefixes(docxml)
4
5
  a = bibdata_current(docxml) or return
5
6
  address_precompose(a)
6
7
  bibdata_i18n(a)
@@ -9,6 +10,12 @@ module IsoDoc
9
10
  "</localized-strings>"
10
11
  end
11
12
 
13
+ def docid_prefixes(docxml)
14
+ docxml.xpath(ns("//references/bibitem/docidentifier")).each do |i|
15
+ i.children = @xrefs.klass.docid_prefix(i["type"], i.text)
16
+ end
17
+ end
18
+
12
19
  def address_precompose(bib)
13
20
  bib.xpath(ns("//bibdata//address")).each do |b|
14
21
  next if b.at(ns("./formattedAddress"))
@@ -45,7 +45,6 @@ module IsoDoc
45
45
  end
46
46
 
47
47
  def references(docxml)
48
- docid_prefixes(docxml)
49
48
  end
50
49
 
51
50
  def docid_prefixes(docxml)
@@ -22,9 +22,9 @@ module IsoDoc
22
22
 
23
23
  def conversions(docxml)
24
24
  bibdata docxml
25
+ @xrefs.parse docxml
25
26
  section docxml
26
27
  block docxml
27
- @xrefs.parse docxml
28
28
  inline docxml
29
29
  end
30
30
 
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "1.6.6".freeze
2
+ VERSION = "1.6.7".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.