Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Dec 23, 2024
1 parent dffb6a6 commit ea3eef4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/ieee/presentation_ref.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ def creatornames(bibitem)
.render1(RelatonBib::XMLParser.from_xml(bibitem.to_xml))
end

def bibliography_bibitem_number1(bibitem, idx)
def bibliography_bibitem_number1(bibitem, idx, normative)
bibitem.xpath(ns(".//docidentifier[@type = 'metanorma' or " \
"@type = 'metanorma-ordinal']")).each do |mn|
/^\[?B?\d\]?$/.match?(mn&.text) and mn.remove
end
unless bibliography_bibitem_number_skip(bibitem)
unless bibliography_bibitem_number_skip(bibitem) || normative
idx += 1
docidentifier_insert_pt(bibitem).next =
"<docidentifier type='metanorma-ordinal'>[B#{idx}]</docidentifier>"
Expand Down
2 changes: 1 addition & 1 deletion lib/metanorma/ieee/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Metanorma
module Ieee
VERSION = "1.3.6".freeze
VERSION = "1.3.7".freeze
end
end
6 changes: 2 additions & 4 deletions spec/isodoc/refs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,9 @@
<bibitem id="ref3">
<formattedref format="application/x-isodoc+xml">REF4</formattedref>
<docidentifier>REF4</docidentifier>
<docidentifier type="metanorma-ordinal">[B1]</docidentifier>
<docidentifier scope="biblio-tag">REF4</docidentifier>
<docnumber>4</docnumber>
<biblio-tag>[B1], REF4, </biblio-tag>
<biblio-tag>REF4, </biblio-tag>
</bibitem>
<bibitem type="book" id="ref2">
<formattedref>
Expand Down Expand Up @@ -365,9 +364,8 @@
<title type="title-main" format="text/plain">Indiana Jones and the Last Crusade</title>
<title type="main" format="text/plain">Indiana Jones and the Last Crusade</title>
<docidentifier type="ISO">ISO 639:1967</docidentifier>
<docidentifier type="metanorma-ordinal">[B3]</docidentifier>
<docidentifier scope="biblio-tag">ISO 639:1967</docidentifier>
<biblio-tag>[B3], ISO 639:1967, </biblio-tag>
<biblio-tag>ISO 639:1967, </biblio-tag>
</bibitem>
</references>
</sections>
Expand Down

0 comments on commit ea3eef4

Please sign in to comment.