Skip to content

Commit

Permalink
xrefs refactor: metanorma/isodoc#606
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 5, 2024
1 parent 07e7d23 commit c7d5ca8
Show file tree
Hide file tree
Showing 4 changed files with 702 additions and 1,148 deletions.
2 changes: 1 addition & 1 deletion Gemfile.devel
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "main"
gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "fix/presxml-oct24"
gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "fix/refactor-xrefs-oct24"
2 changes: 1 addition & 1 deletion lib/isodoc/ieee/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def metadata_init(lang, script, locale, i18n)
end

def xref_init(lang, script, _klass, i18n, options)
html = PresentationXMLConvert.new(language: lang, script: script)
html = HtmlConvert.new(language: lang, script: script)
options = options.merge(hierarchicalassets: @hierarchical_assets)
@xrefs = Xref.new(lang, script, html, i18n, options)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/metanorma/refs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@
<bibitem id="ref2" type="standard">
<docidentifier type="ISO" primary="true">ISO 10642</docidentifier>
<docidentifier type="iso-reference">ISO 10642(E)</docidentifier>
<docidentifier type="URN">urn:iso:std:iso:10642:stage-90.93</docidentifier>
<docidentifier type="URN">urn:iso:std:iso:10642:stage-90.92</docidentifier>
<note type="Availability">
<p id="_">ISO publications are available from the ISO Central Secretariat (http://www.iso.org/). ISO publications are also available in the United States from the American National Standards Institute (http://www.ansi.org/).</p>
</note>
Expand Down
1,844 changes: 699 additions & 1,145 deletions spec/vcr_cassettes/availability.yml

Large diffs are not rendered by default.

0 comments on commit c7d5ca8

Please sign in to comment.