Skip to content

Commit

Permalink
remove BCP identifier from rendering of references: #95
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Feb 1, 2024
1 parent f504b45 commit 8f9a597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/relaton/render/parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ def creatornames1(doc)
super
end

# add BCP number
# do not add BCP number, it is not included in IETF practice
def authoritative_identifier(doc)
ret = super
if bcp = doc.series.detect { |s| s.title.title.content == "BCP" }
ret.unshift("BCP #{bcp.number}")
end
#if bcp = doc.series.detect { |s| s.title.title.content == "BCP" }
#ret.unshift("BCP #{bcp.number}")
#end
ret.reject { |x| /^(rfc-anchor|Internet-Draft)/.match? (x) }
end

Expand Down
1 change: 0 additions & 1 deletion spec/isodoc/ref_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@
</front>
<format target="https://www.rfc-editor.org/info/rfc2119" type="src"/>
<seriesInfo value=" 10.17487/RFC2119" name="DOI"/>
<seriesInfo value="14" name="BCP"/>
<seriesInfo value="2119" name="RFC"/>
</reference>
<reference anchor='ISO712'>
Expand Down

0 comments on commit 8f9a597

Please sign in to comment.