Skip to content

Commit b256df6

Browse files
committed
chore: add ShortDescription
1 parent 0ca4c2d commit b256df6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/eodash_catalog/generate_indicators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ def add_to_catalog(
458458
link.extra_fields["endpointtype"] = endpoint["Name"]
459459
if collection_config.get("Subtitle"):
460460
link.extra_fields["subtitle"] = collection_config["Subtitle"]
461+
if collection_config.get("ShortDescription"):
462+
link.extra_fields["shortdescription"] = collection_config["ShortDescription"]
461463
link.extra_fields["title"] = collection.title
462464
if collection_config.get("EodashIdentifier"):
463465
link.extra_fields["code"] = collection_config["EodashIdentifier"]

src/eodash_catalog/stac_handling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ def add_collection_information(
313313

314314
if collection_config.get("Subtitle"):
315315
collection.extra_fields["subtitle"] = collection_config["Subtitle"]
316+
317+
if collection_config.get("ShortDescription"):
318+
collection.extra_fields["shortdescription"] = collection_config["ShortDescription"]
319+
316320
if collection_config.get("Legend"):
317321
collection.add_asset(
318322
"legend",

0 commit comments

Comments
 (0)