From 2a5e8a4c9f25aece71e41cc03be22b9f06149484 Mon Sep 17 00:00:00 2001 From: Carolyn Caron Date: Thu, 5 Oct 2023 21:50:12 -0600 Subject: [PATCH] Fixed formatting for required columns in input file --- .../Plugin/TripalImporter/GermplasmAccessionImporter.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trpcultivate_germplasm/src/Plugin/TripalImporter/GermplasmAccessionImporter.php b/trpcultivate_germplasm/src/Plugin/TripalImporter/GermplasmAccessionImporter.php index f60f824..a000825 100644 --- a/trpcultivate_germplasm/src/Plugin/TripalImporter/GermplasmAccessionImporter.php +++ b/trpcultivate_germplasm/src/Plugin/TripalImporter/GermplasmAccessionImporter.php @@ -56,12 +56,14 @@ public function describeUploadFileFormat() { 'Synonyms' => 'Any synonyms of the accession. (e.g. Redberry)', ]; - $required_col = ['Germplasm Name', 'Accession Number', 'Germplasm Species']; + $required_col = ['Germplasm Name', 'External Database', 'Accession Number', 'Germplasm Species']; + // @TODO: Make this red, but Drupal makes it difficult :) + $required_markup = '*'; $output .= '
    '; foreach ($columns as $title => $definition) { if (in_array($title, $required_col)) { - $output .= '
  1. ' . $title . '*: ' . $definition . '
  2. '; + $output .= '
  3. ' . $title . $required_markup . ': ' . $definition . '
  4. '; } else { $output .= '
  5. ' . $title . ': ' . $definition . '
  6. ';