Skip to content

Commit

Permalink
Do not facet shelfmark, physical description
Browse files Browse the repository at this point in the history
  • Loading branch information
mdholloway committed Jan 12, 2025
1 parent 10e2945 commit f414d8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def self.transform(claim, export_hash, config)
'recorded_value' => recorded_value,
'original_script' => original_script
}.compact.to_json],
"#{config['prefix']}_search" => [recorded_value, original_script].compact,
"#{config['prefix']}_facet" => [recorded_value]
"#{config['prefix']}_search" => [recorded_value, original_script].compact
}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ module DigitalScriptorium
claim = StatementRepresenter.new(Statement.new).from_json(json)
expected = {
'shelfmark_display' => ['{"recorded_value":"Oversize LJS 110"}'],
'shelfmark_search' => ['Oversize LJS 110'],
'shelfmark_facet' => ['Oversize LJS 110']
'shelfmark_search' => ['Oversize LJS 110']
}

it 'provides the recorded shelfmark in the display and search properties' do
Expand All @@ -29,8 +28,7 @@ module DigitalScriptorium
claim = StatementRepresenter.new(Statement.new).from_json(json)
expected = {
'physical_description_display' => ['{"recorded_value":"Extent: 1 parchment ; 170 x 245 mm."}'],
'physical_description_search' => ['Extent: 1 parchment ; 170 x 245 mm.'],
'physical_description_facet' => ['Extent: 1 parchment ; 170 x 245 mm.']
'physical_description_search' => ['Extent: 1 parchment ; 170 x 245 mm.']
}

it 'provides the recorded physical description in the display and search fields' do
Expand Down

0 comments on commit f414d8b

Please sign in to comment.