From fb1d7c0a8c22e592b1ec0943df2350fd2361a717 Mon Sep 17 00:00:00 2001 From: Matthew Bernhardt Date: Mon, 22 Dec 2025 17:12:21 -0500 Subject: [PATCH 1/2] Call out format values in UI for debugging This is a sacrificial commit, meant to make further work easier to debug --- app/assets/stylesheets/partials/_results.scss | 11 +++++++++++ app/views/search/_result.html.erb | 2 +- app/views/search/_result_primo.html.erb | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/partials/_results.scss b/app/assets/stylesheets/partials/_results.scss index 8aabfc48..301b02f4 100644 --- a/app/assets/stylesheets/partials/_results.scss +++ b/app/assets/stylesheets/partials/_results.scss @@ -258,6 +258,17 @@ .pub-info { margin-bottom: 4px; + + .format { + border: 2px solid black; + + &.primo { + border-color: purple; + } + &.timdex { + border-color: red; + } + } } ul.contributors { diff --git a/app/views/search/_result.html.erb b/app/views/search/_result.html.erb index d0f91bd3..40e33507 100644 --- a/app/views/search/_result.html.erb +++ b/app/views/search/_result.html.erb @@ -11,7 +11,7 @@

- <%= result[:content_type]&.each { |type| type['value'] }&.join(' ; ') %> + <%= result[:content_type]&.each { |type| type['value'] }&.join(' ; ') %> <% if result[:date_range].present? %> <%= result[:date_range] %> diff --git a/app/views/search/_result_primo.html.erb b/app/views/search/_result_primo.html.erb index bdb96be3..3abdeda7 100644 --- a/app/views/search/_result_primo.html.erb +++ b/app/views/search/_result_primo.html.erb @@ -14,7 +14,7 @@