Skip to content

Commit

Permalink
Use extracted_dates instead of display_date with regex for detecting …
Browse files Browse the repository at this point in the history
…date ranges
  • Loading branch information
moseshll committed Mar 13, 2024
1 parent 4d8909b commit 643ac41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cgi/partial/bibdata.tt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tr>
<td><strong>Pub Date:</strong>
<span id="pubDateSpan"
[% IF data.bibdata.display_date.match('^\d+-\d*$') %]class="red"[% END %]>
[% IF data.bibdata.extracted_dates.size > 1 %]class="red"[% END %]>
[% data.bibdata.display_date %]
</span>
</td>
Expand Down
2 changes: 1 addition & 1 deletion cgi/partial/bibdata_commonwealth.tt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<tr>
<td><strong>Pub Date:</strong>
<span id="pub-date-span"
[% IF data.bibdata.display_date.match('^\d+-\d*$') %]class="red"[% END %]>
[% IF data.bibdata.extracted_dates.size > 1 %]class="red"[% END %]>
[% data.bibdata.display_date %]
</span>
</td>
Expand Down
2 changes: 1 addition & 1 deletion cgi/partial/bibdata_frontmatter.tt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<tr>
<td><strong>Pub Date:</strong>
<span id="pubDateSpan"
[% IF data.bibdata.display_date.match('^\d+-\d*$') %]class="red"[% END %]>
[% IF data.bibdata.extracted_dates.size > 1 %]class="red"[% END %]>
[% data.bibdata.display_date %]
</span>
</td>
Expand Down

0 comments on commit 643ac41

Please sign in to comment.