diff --git a/app/models/normalize_primo_record.rb b/app/models/normalize_primo_record.rb index b142526a..9ea61873 100644 --- a/app/models/normalize_primo_record.rb +++ b/app/models/normalize_primo_record.rb @@ -11,6 +11,7 @@ def normalize api: 'primo', title:, creators:, + eyebrow:, source:, year:, format:, @@ -63,6 +64,14 @@ def creators author_list.uniq end + def eyebrow + if alma_record? + 'MIT Libraries Catalog' + else + 'Central Discovery Index' + end + end + def source 'Primo' end diff --git a/app/models/normalize_timdex_record.rb b/app/models/normalize_timdex_record.rb index d09cfafc..5a188686 100644 --- a/app/models/normalize_timdex_record.rb +++ b/app/models/normalize_timdex_record.rb @@ -11,6 +11,7 @@ def normalize api: 'timdex', title:, creators:, + eyebrow:, source:, year:, format:, @@ -45,6 +46,12 @@ def creators .map { |creator| { 'value' => creator['value'], 'link' => nil } } end + # Currently just using source as eyebrow. + # This will likely change to remap the source to more user-friendly values. + def eyebrow + source + end + def source return 'Unknown source' unless @record['source'] diff --git a/app/models/timdex_search.rb b/app/models/timdex_search.rb index c2dd9ee5..2af3aaf2 100644 --- a/app/models/timdex_search.rb +++ b/app/models/timdex_search.rb @@ -51,6 +51,7 @@ class TimdexSearch < TimdexBase records { timdexRecordId title + source contentType contributors { kind @@ -183,6 +184,7 @@ class TimdexSearch < TimdexBase records { timdexRecordId title + source contentType contributors { kind @@ -309,6 +311,7 @@ class TimdexSearch < TimdexBase records { timdexRecordId title + source contentType contributors { kind @@ -445,6 +448,7 @@ class TimdexSearch < TimdexBase records { timdexRecordId title + source contentType contributors { kind diff --git a/app/views/search/_result.html.erb b/app/views/search/_result.html.erb index a4579670..f29bfaed 100644 --- a/app/views/search/_result.html.erb +++ b/app/views/search/_result.html.erb @@ -1,6 +1,6 @@
  • -

    Eyebrow Text

    +

    <%= result[:eyebrow] %>

    Title: <%= link_to_result(result) %> diff --git a/app/views/search/_result_primo.html.erb b/app/views/search/_result_primo.html.erb index ce3da213..cf696c47 100644 --- a/app/views/search/_result_primo.html.erb +++ b/app/views/search/_result_primo.html.erb @@ -1,6 +1,6 @@
  • -

    Eyebrow Text

    +

    <%= result[:eyebrow] %>

    Title: <% if result[:links]&.find { |link| link['kind'] == 'full record' } %> diff --git a/test/vcr_cassettes/advanced_title_data.yml b/test/vcr_cassettes/advanced_title_data.yml index 42461e0b..846c4e8b 100644 --- a/test/vcr_cassettes/advanced_title_data.yml +++ b/test/vcr_cassettes/advanced_title_data.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/data.yml b/test/vcr_cassettes/data.yml index 1743bd4c..8158a7fb 100644 --- a/test/vcr_cassettes/data.yml +++ b/test/vcr_cassettes/data.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/data_from_ridiculous_start.yml b/test/vcr_cassettes/data_from_ridiculous_start.yml index 32a975b9..d44f4e75 100644 --- a/test/vcr_cassettes/data_from_ridiculous_start.yml +++ b/test/vcr_cassettes/data_from_ridiculous_start.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/data_page_2.yml b/test/vcr_cassettes/data_page_2.yml index 01df8c01..cba353f1 100644 --- a/test/vcr_cassettes/data_page_2.yml +++ b/test/vcr_cassettes/data_page_2.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geo_all.yml b/test/vcr_cassettes/geo_all.yml index 34cc3823..0032e733 100644 --- a/test/vcr_cassettes/geo_all.yml +++ b/test/vcr_cassettes/geo_all.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox.yml b/test/vcr_cassettes/geobox.yml index cc35b3f0..fa8d447a 100644 --- a/test/vcr_cassettes/geobox.yml +++ b/test/vcr_cassettes/geobox.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_and_geodistance.yml b/test/vcr_cassettes/geobox_and_geodistance.yml index f2f79613..eff29401 100644 --- a/test/vcr_cassettes/geobox_and_geodistance.yml +++ b/test/vcr_cassettes/geobox_and_geodistance.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_and_geodistance_many_decimals.yml b/test/vcr_cassettes/geobox_and_geodistance_many_decimals.yml index 33a2e957..5180ef16 100644 --- a/test/vcr_cassettes/geobox_and_geodistance_many_decimals.yml +++ b/test/vcr_cassettes/geobox_and_geodistance_many_decimals.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_and_geodistance_no_decimals.yml b/test/vcr_cassettes/geobox_and_geodistance_no_decimals.yml index 1c9d5dcf..937c785b 100644 --- a/test/vcr_cassettes/geobox_and_geodistance_no_decimals.yml +++ b/test/vcr_cassettes/geobox_and_geodistance_no_decimals.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_max_lat_range_limit.yml b/test/vcr_cassettes/geobox_max_lat_range_limit.yml index 09412408..2946d0b6 100644 --- a/test/vcr_cassettes/geobox_max_lat_range_limit.yml +++ b/test/vcr_cassettes/geobox_max_lat_range_limit.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_max_long_range_limit.yml b/test/vcr_cassettes/geobox_max_long_range_limit.yml index a0088e7a..44ee42a6 100644 --- a/test/vcr_cassettes/geobox_max_long_range_limit.yml +++ b/test/vcr_cassettes/geobox_max_long_range_limit.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_min_lat_range_limit.yml b/test/vcr_cassettes/geobox_min_lat_range_limit.yml index 5156bedd..97489fc3 100644 --- a/test/vcr_cassettes/geobox_min_lat_range_limit.yml +++ b/test/vcr_cassettes/geobox_min_lat_range_limit.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geobox_min_long_range_limit.yml b/test/vcr_cassettes/geobox_min_long_range_limit.yml index c0d74807..8a60fd81 100644 --- a/test/vcr_cassettes/geobox_min_long_range_limit.yml +++ b/test/vcr_cassettes/geobox_min_long_range_limit.yml @@ -21,7 +21,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance.yml b/test/vcr_cassettes/geodistance.yml index 8d9b0e20..0fc86204 100644 --- a/test/vcr_cassettes/geodistance.yml +++ b/test/vcr_cassettes/geodistance.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance_max_lat_range_limit.yml b/test/vcr_cassettes/geodistance_max_lat_range_limit.yml index ea929ac7..ee4dd20f 100644 --- a/test/vcr_cassettes/geodistance_max_lat_range_limit.yml +++ b/test/vcr_cassettes/geodistance_max_lat_range_limit.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance_max_long_range_limit.yml b/test/vcr_cassettes/geodistance_max_long_range_limit.yml index 117f7700..2ad1994a 100644 --- a/test/vcr_cassettes/geodistance_max_long_range_limit.yml +++ b/test/vcr_cassettes/geodistance_max_long_range_limit.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance_min_lat_range_limit.yml b/test/vcr_cassettes/geodistance_min_lat_range_limit.yml index bdbf00ef..5c2faaea 100644 --- a/test/vcr_cassettes/geodistance_min_lat_range_limit.yml +++ b/test/vcr_cassettes/geodistance_min_lat_range_limit.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance_min_long_range_limit.yml b/test/vcr_cassettes/geodistance_min_long_range_limit.yml index 2e745756..e953a977 100644 --- a/test/vcr_cassettes/geodistance_min_long_range_limit.yml +++ b/test/vcr_cassettes/geodistance_min_long_range_limit.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance_no_units.yml b/test/vcr_cassettes/geodistance_no_units.yml index 686924e9..fabcebb3 100644 --- a/test/vcr_cassettes/geodistance_no_units.yml +++ b/test/vcr_cassettes/geodistance_no_units.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/geodistance_units.yml b/test/vcr_cassettes/geodistance_units.yml index 3fae341d..48efc1a0 100644 --- a/test/vcr_cassettes/geodistance_units.yml +++ b/test/vcr_cassettes/geodistance_units.yml @@ -20,7 +20,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, sourceFilter: $sourceFilter, subjectsFilter: - $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/timdex_empty_search.yml b/test/vcr_cassettes/timdex_empty_search.yml index 2fb84628..b2ba7c43 100644 --- a/test/vcr_cassettes/timdex_empty_search.yml +++ b/test/vcr_cassettes/timdex_empty_search.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/timdex_error.yml b/test/vcr_cassettes/timdex_error.yml index b971fe5e..3b329e95 100644 --- a/test/vcr_cassettes/timdex_error.yml +++ b/test/vcr_cassettes/timdex_error.yml @@ -5,7 +5,7 @@ http_interactions: uri: https://FAKE_TIMDEX_HOST/graphql body: encoding: UTF-8 - string: '{"query":"query TimdexSearch__BaseQuery($q: String, $citation: String, $contributors: String, $fundingInformation: String, $identifiers: String, $locations: String, $subjects: String, $title: String, $index: String, $from: String, $booleanType: String, $accessToFilesFilter: [String!], $contentTypeFilter: [String!], $contributorsFilter: [String!], $formatFilter: [String!], $languagesFilter: [String!], $literaryFormFilter: String, $placesFilter: [String!], $sourceFilter: [String!], $subjectsFilter: [String!]) {\n search(searchterm: $q, citation: $citation, contributors: $contributors, fundingInformation: $fundingInformation, identifiers: $identifiers, locations: $locations, subjects: $subjects, title: $title, index: $index, from: $from, booleanType: $booleanType, accessToFilesFilter: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights {\n kind\n description\n uri\n }\n sourceLink\n summary\n }\n aggregations {\n accessToFiles {\n key\n docCount\n }\n contentType {\n key\n docCount\n }\n contributors {\n key\n docCount\n }\n format {\n key\n docCount\n }\n languages {\n key\n docCount\n }\n literaryForm {\n key\n docCount\n }\n places {\n key\n docCount\n }\n source {\n key\n docCount\n }\n subjects {\n key\n docCount\n }\n }\n }\n}","variables":{"from":"0","q":"poverty","booleanType":"AND","index":"FAKE_TIMDEX_INDEX"},"operationName":"TimdexSearch__BaseQuery"}' + string: '{"query":"query TimdexSearch__BaseQuery($q: String, $citation: String, $contributors: String, $fundingInformation: String, $identifiers: String, $locations: String, $subjects: String, $title: String, $index: String, $from: String, $booleanType: String, $accessToFilesFilter: [String!], $contentTypeFilter: [String!], $contributorsFilter: [String!], $formatFilter: [String!], $languagesFilter: [String!], $literaryFormFilter: String, $placesFilter: [String!], $sourceFilter: [String!], $subjectsFilter: [String!]) {\n search(searchterm: $q, citation: $citation, contributors: $contributors, fundingInformation: $fundingInformation, identifiers: $identifiers, locations: $locations, subjects: $subjects, title: $title, index: $index, from: $from, booleanType: $booleanType, accessToFilesFilter: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights {\n kind\n description\n uri\n }\n sourceLink\n summary\n }\n aggregations {\n accessToFiles {\n key\n docCount\n }\n contentType {\n key\n docCount\n }\n contributors {\n key\n docCount\n }\n format {\n key\n docCount\n }\n languages {\n key\n docCount\n }\n literaryForm {\n key\n docCount\n }\n places {\n key\n docCount\n }\n source {\n key\n docCount\n }\n subjects {\n key\n docCount\n }\n }\n }\n}","variables":{"from":"0","q":"poverty","booleanType":"AND","index":"FAKE_TIMDEX_INDEX"},"operationName":"TimdexSearch__BaseQuery"}' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 diff --git a/test/vcr_cassettes/timdex_no_results.yml b/test/vcr_cassettes/timdex_no_results.yml index 568c8dd9..02be332c 100644 --- a/test/vcr_cassettes/timdex_no_results.yml +++ b/test/vcr_cassettes/timdex_no_results.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights diff --git a/test/vcr_cassettes/timdex_null_search.yml b/test/vcr_cassettes/timdex_null_search.yml index 62e6dc05..a7cda72b 100644 --- a/test/vcr_cassettes/timdex_null_search.yml +++ b/test/vcr_cassettes/timdex_null_search.yml @@ -18,7 +18,7 @@ http_interactions: $accessToFilesFilter, contentTypeFilter: $contentTypeFilter, contributorsFilter: $contributorsFilter, formatFilter: $formatFilter, languagesFilter: $languagesFilter, literaryFormFilter: $literaryFormFilter, placesFilter: $placesFilter, sourceFilter: - $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n contentType\n contributors + $sourceFilter, subjectsFilter: $subjectsFilter) {\n hits\n records {\n timdexRecordId\n title\n source\n contentType\n contributors {\n kind\n value\n }\n publicationInformation\n dates {\n kind\n value\n }\n links {\n kind\n restrictions\n text\n url\n }\n notes {\n kind\n value\n }\n highlight {\n matchedField\n matchedPhrases\n }\n provider\n rights