Commit afbcc27f authored by BODERE's avatar BODERE
Browse files

fix: atom

parent 091ea022
......@@ -53,6 +53,7 @@ class OpensearchResponseEntry(BaseModel):
class OpensearchResponseHeader(BaseModel):
id: str
title: str
updated: datetime = datetime.now()
total_results: int = 0
start_index: int = 0
items_per_page: int = 0
......
......@@ -26,9 +26,9 @@
<title>{{entry.title}}</title>
<id>{{entry.id}}</id>
<updated>{{entry.updated}}</updated>
<summary type="text">Granule metadata for {{entry.summary}}</summary>
<dc:date>{{entry.dc_date}}</dc:date>
<georss:box>{{entry.geobox}}</georss:box>
{% if entry.summary %}<summary type="text">Granule metadata for {{entry.summary}}</summary>{% endif %}
{% if entry.dc_date %}<dc:date>{{entry.dc_date}}</dc:date>{% endif %}
{% if entry.geobox %}<georss:box>{{entry.geobox}}</georss:box>{% endif %}
{% for link in entry.links -%}
<link rel= "enclosure" href="{{link.href}}" />
{% endfor %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment