Skip to content

Commit e32c01e

Browse files
committed
Add FGDC attribute source contribution
1 parent 25e51b7 commit e32c01e

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

lib/xslt/fgdc2html.xsl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,12 @@
494494
</dl>
495495
</dd>
496496
</xsl:for-each>
497+
<xsl:for-each select="srccontr">
498+
<dt>Contribution</dt>
499+
<dd>
500+
<xsl:value-of select="." />
501+
</dd>
502+
</xsl:for-each>
497503
</dl>
498504
<xsl:for-each select="procstep">
499505
<dt>Process Step</dt>

spec/features/fgdc2html_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@
4747
expect(page).to have_tag '#fgdc-metadata-reference-info'
4848
end
4949
end
50+
5051
describe 'Point of Contact' do
5152
it 'has contact info' do
5253
expect(page).to have_tag '#fgdc-identification-info'
5354
end
5455
end
56+
5557
context 'with fgdc metadata from another institution' do
5658
let(:page) { GeoCombine::Fgdc.new(princeton_fgdc).to_html }
5759

@@ -83,5 +85,10 @@
8385
expect(page).not_to have_tag 'button'
8486
expect(page).to have_tag 'dd', text: 'Desert Southwest'
8587
end
88+
89+
it 'has a attribute source contribution' do
90+
expect(page).to have_tag 'dt', text: 'Contribution'
91+
expect(page).to have_tag 'dd', text: 'Net-Zero America report, 2020'
92+
end
8693
end
8794
end

0 commit comments

Comments
 (0)