diff --git a/sde_collections/models/collection.py b/sde_collections/models/collection.py index f930f5cb..75c64734 100644 --- a/sde_collections/models/collection.py +++ b/sde_collections/models/collection.py @@ -118,6 +118,20 @@ def server_url_test(self) -> str: encoded_payload = urllib.parse.quote(json.dumps(payload)) return f"{base_url}/app/nasa-sba-smd/#/search?query={encoded_payload}" + @property + def server_url_prod(self) -> str: + base_url = "https://sciencediscoveryengine.nasa.gov" + payload = { + "name": "query-smd-primary", + "scope": "All", + "text": "", + "advanced": { + "collection": f"/SDE/{self.config_folder}/", + }, + } + encoded_payload = urllib.parse.quote(json.dumps(payload)) + return f"{base_url}/app/nasa-sba-smd/#/search?query={encoded_payload}" + @property def curation_status_button_color(self) -> str: color_choices = { diff --git a/sde_indexing_helper/templates/sde_collections/collection_detail.html b/sde_indexing_helper/templates/sde_collections/collection_detail.html index de360fd1..35f6bf87 100644 --- a/sde_indexing_helper/templates/sde_collections/collection_detail.html +++ b/sde_indexing_helper/templates/sde_collections/collection_detail.html @@ -15,8 +15,8 @@

{{ collection.name }}

- - + +