Skip to content

Commit a0a0965

Browse files
committed
TIMDEX summary to sym
1 parent e48f6f5 commit a0a0965

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/models/normalize_timdex_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def normalize
1616
links:,
1717
citation:,
1818
identifier:,
19-
'summary' => summary,
19+
summary:,
2020
'publisher' => publisher,
2121
'location' => location,
2222
'subjects' => subjects,

app/views/search/_result_geo.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</ul>
2020
<% end %>
2121

22-
<% if result_geo['summary'].present? %>
22+
<% if result_geo[:summary].present? %>
2323
<p class="result-summary truncate-list">
24-
<span class="sr">Summary: </span><%= result_geo['summary'] %>
24+
<span class="sr">Summary: </span><%= result_geo[:summary] %>
2525
</p>
2626
<% end %>
2727

test/models/normalize_timdex_record_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def minimal_record
115115
test 'normalizes summary' do
116116
normalized = NormalizeTimdexRecord.new(full_record, 'test').normalize
117117
assert_equal 'This is a comprehensive test record with all possible fields populated for testing normalization.',
118-
normalized['summary']
118+
normalized[:summary]
119119
end
120120

121121
test 'handles missing summary' do
122122
normalized = NormalizeTimdexRecord.new(minimal_record, 'test').normalize
123-
assert_nil normalized['summary']
123+
assert_nil normalized[:summary]
124124
end
125125

126126
test 'extracts publisher from contributors' do

0 commit comments

Comments
 (0)