Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
meteor
dataless-host
Commits
c837c71a
Commit
c837c71a
authored
Jul 01, 2020
by
Fabrice PEIX
Browse files
Add operator website management
parent
01eba676
Changes
2
Hide whitespace changes
Inline
Side-by-side
gendbirdv2/jsondbird.py
View file @
c837c71a
...
...
@@ -75,6 +75,7 @@ def init_station(station):
"site_name"
:
station
.
toponyme
(),
"contact"
:
station
.
observatory
().
network_contact
(),
"owner"
:
station
.
observatory
().
description
(),
"owner_website"
:
station
.
observatory
().
url
(),
"comments"
:
[],
"locations"
:
[],
"sensors"
:
[],
...
...
gendbirdv2/templates/ydbird.tmpl
View file @
c837c71a
...
...
@@ -6,9 +6,9 @@ author:
% for author in authors
- &{{author.dbird_code()}} [ ["{{author.author().firstname()}} {{author.author().lastname()}}"], [], [{{author.author().contact().email_list()|join(",")}}], [{{author.author().contact().phone_list() | join(",")}}] ]
% endfor
% else
% else
author: []
%endif
%endif
network:
comment:
...
...
@@ -28,7 +28,8 @@ station:
definition: [ "{{station.iris_code()}}", "{{station.install_date() | dbirddate}}", "{{station.close_date() | dbirddate}}", [{{station.latitude()}}, {{station.latitude_min_err() | optional_value("null")}},{{station.latitude_plus_err() | optional_value("null")}}], [{{station.longitude()}}, {{station.longitude_min_err() | optional_value("null")}},{{station.longitude_plus_err() | optional_value("null")}}], [{{station.altitude() * station.altitude_unit().mksa()}}, {{station.altitude_min_err() | optional_value("null")}},{{station.altitude_plus_err() | optional_value("null")}}], "{{station.toponyme()}}" ]
contact: "{{station.observatory().network_contact()}}"
owner: "{{station.observatory().description()}}"
owner_website: "{{station.observatory().url()}}"
% if station.comment() is not empty or station.selected_channel_comment() is not empty
comment:
% for comment in station.comment()
...
...
@@ -37,7 +38,7 @@ station:
% for comment in station.selected_channel_comment()
- &{{station.iris_code()}}_{{ comment.dbird_code() }} [ "{{ comment.comment().value() }}", "{{ comment.comment().begin_time()|dbirddate }}", "{{ comment.comment().end_time()|dbirddate }}", [ {{ comment.author_list() | prefix_list_elt("*") | join(",") }} ], "C" ]
% endfor
% else
% else
comment: []
% endif
location:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment