Skip to content

Commit

Permalink
More fun with century_int
Browse files Browse the repository at this point in the history
  • Loading branch information
mdholloway committed Jan 17, 2025
1 parent f8140ba commit 67c2a73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def int_props
def linked_term_for(authority)
{
'label' => authority.label('en'),
'facet' => century_int,
'facet_field' => 'century_int',
'facet_value' => century_int,
'source_url' => external_uri(authority) || wikidata_uri(authority)
}.compact
end
Expand Down
3 changes: 2 additions & 1 deletion spec/digital_scriptorium/date_claim_transformer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module DigitalScriptorium
'recorded_value' => '1358.',
'linked_terms' => [{
'label' => 'fourteenth century (dates CE)',
'facet' => 1301,
'facet_field' => 'century_int',
'facet_value' => 1301,
'source_url' => 'http://vocab.getty.edu/aat/300404506'
}]
}.to_json],
Expand Down

0 comments on commit 67c2a73

Please sign in to comment.