Skip to content

Commit

Permalink
Fixes for reserved participation
Browse files Browse the repository at this point in the history
  • Loading branch information
klakegg committed Feb 9, 2024
1 parent b777fcd commit 74d473f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/process-fields
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ removed = config.fetch('removed', [])

source['xmlStructure'] = source['xmlStructure'].map do |obj|
if removed.include? obj['id']
puts obj['id']
#puts obj['id']
obj['active'] = false
else
obj['active'] = true
Expand All @@ -107,7 +107,7 @@ end

source['fields'] = source['fields'].map do |obj|
if removed.include? obj['id']
puts obj['id']
#puts obj['id']
obj['forbidden'] = {
'value' => false,
'severity' => 'ERROR',
Expand Down
8 changes: 6 additions & 2 deletions src/fields/national.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ removed:
# Other Requirements
- BG-705
- BT-1379
# - BT-71-Lot
# - BT-71-Part
# - BT-79-Lot
- BT-578-Lot
- BT-78-Lot
Expand All @@ -102,6 +100,12 @@ removed:
- GR-Lot-Requirements2SecurityClearance1
- GR-Lot-SecurityClearance2
- GR-Nda
- ND-LotReservedParticipation
- ND-LotReservedParticipation_BT-71-Lot
- ND-PartReservedParticipation_BT-71-Part
- BT-71-Lot
- BT-71-Part


# Group Framework Maximum Value
- BG-556
Expand Down
1 change: 0 additions & 1 deletion src/tests/national/test/2023-100298-varmeanlegg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Errors:
EFORMS-NOR-R801
BR-BT-00022-0175
ND-NonUBLTenderingTerms-16
Warnings:
BR-OPP-00050-0022 x 2
Expand Down
2 changes: 1 addition & 1 deletion src/xslt/sch-cleanup-national.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<xsl:template match="sch:rule[@context = '/*/cac:AdditionalNoticeLanguage/cbc:ID']" />

<!-- Remove removed fields -->
<xsl:template match="sch:assert[@diagnostics = $removed_parsed or @id = $removed_parsed]"/>
<xsl:template match="sch:assert[@diagnostics = $removed_parsed or @id = $removed_parsed]" priority="1000"/>

<!-- Remove schema types -->
<xsl:template match="sch:rule[contains(@context, 'noticeSubType = ''1''')]" priority="100"/>
Expand Down

0 comments on commit 74d473f

Please sign in to comment.