From 643ac41da79069cbd1545918275b9f4fc8d538b2 Mon Sep 17 00:00:00 2001 From: Brian Moses Hall Date: Wed, 13 Mar 2024 15:23:06 -0400 Subject: [PATCH] Use extracted_dates instead of display_date with regex for detecting date ranges --- cgi/partial/bibdata.tt | 2 +- cgi/partial/bibdata_commonwealth.tt | 2 +- cgi/partial/bibdata_frontmatter.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cgi/partial/bibdata.tt b/cgi/partial/bibdata.tt index 9187a057..0c5391a1 100644 --- a/cgi/partial/bibdata.tt +++ b/cgi/partial/bibdata.tt @@ -7,7 +7,7 @@ Pub Date: + [% IF data.bibdata.extracted_dates.size > 1 %]class="red"[% END %]> [% data.bibdata.display_date %] diff --git a/cgi/partial/bibdata_commonwealth.tt b/cgi/partial/bibdata_commonwealth.tt index 4cca850b..f5da7a95 100644 --- a/cgi/partial/bibdata_commonwealth.tt +++ b/cgi/partial/bibdata_commonwealth.tt @@ -5,7 +5,7 @@ Pub Date: + [% IF data.bibdata.extracted_dates.size > 1 %]class="red"[% END %]> [% data.bibdata.display_date %] diff --git a/cgi/partial/bibdata_frontmatter.tt b/cgi/partial/bibdata_frontmatter.tt index 9c21ecb3..2a5f1388 100644 --- a/cgi/partial/bibdata_frontmatter.tt +++ b/cgi/partial/bibdata_frontmatter.tt @@ -6,7 +6,7 @@ Pub Date: + [% IF data.bibdata.extracted_dates.size > 1 %]class="red"[% END %]> [% data.bibdata.display_date %]