Skip to content

Commit

Permalink
price-code: #1232
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 29, 2024
1 parent ecc876c commit b4051e6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 35 deletions.
1 change: 1 addition & 0 deletions lib/metanorma/iso/front.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def metadata_ext_iso(node, xml)
@amd && a = node.attr("updates-document-type") and
xml.updates_document_type a
a = node.attr("fast-track") and xml.send "fast-track", a != "false"
a = node.attr("price-code") and xml.price_code a
end

STAGE_ERROR = [Pubid::Core::Errors::HarmonizedStageCodeInvalidError,
Expand Down
2 changes: 2 additions & 0 deletions spec/metanorma/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
:copyright-year: 2000
:horizontal: true
:fast-track: true
:price-code: XC
INPUT
output = <<~OUTPUT
<bibdata type="standard">
Expand Down Expand Up @@ -284,6 +285,7 @@
</structuredidentifier>
<stagename abbreviation="WD">Working Draft International Standard</stagename>
<fast-track>true</fast-track>
<price-code>XC</price-code>
</ext>
</bibdata>
OUTPUT
Expand Down
70 changes: 35 additions & 35 deletions spec/vcr_cassettes/docrels.yml

Large diffs are not rendered by default.

0 comments on commit b4051e6

Please sign in to comment.