forked from timwis/jkan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hazard ID and Exposure ID fields should render as links to respective pages. Requires changing id to dataset_id to not conflict with page ids.
- Loading branch information
1 parent
2e874a3
commit 9f04aca
Showing
9 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ creator: | |
email: [email protected] | ||
name: Isabelle Tingzon | ||
url: https://issa-tingzon.github.io/ | ||
dataset_id: ortho_DOM | ||
description: Building footprint polygons of Dominica with corresponding roof type | ||
and roof material attributes predicted from RGB orthophotos taken in 2018-2019, | ||
in the aftermath of Hurricane Maria. | ||
|
@@ -26,7 +27,6 @@ exposure: | |
quantity_kind: area | ||
taxonomy: Custom roof type and roof material taxonomy | ||
hazard: null | ||
id: ortho_DOM | ||
license: CC-BY-4.0 | ||
loss: null | ||
project: Digital Earth for Resilient Housing and Infrastructure in the Caribbean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ creator: | |
email: [email protected] | ||
name: Isabelle Tingzon | ||
url: https://issa-tingzon.github.io/ | ||
dataset_id: ortho_LCA | ||
description: 'Building footprint polygons of Saint Lucia with corresponding roof type | ||
and roof material attributes predicted from RGB orthophotos taken in 2022. ' | ||
details: 'The vector dataset depicts building footprint polygons of Saint Lucia with | ||
|
@@ -24,7 +25,6 @@ exposure: | |
quantity_kind: area | ||
taxonomy: Custom roof type and roof material taxonomy | ||
hazard: null | ||
id: ortho_LCA | ||
license: CC-BY-4.0 | ||
loss: null | ||
project: Digital Earth for Resilient Housing and Infrastructure in the Caribbean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<tr> | ||
{% assign field_name = include.field.field_name %} | ||
{% assign risk_data_type = page["risk_data_type"] | first %} | ||
{% if field_name == "hazard_id" %} | ||
{% assign linked_id = page[risk_data_type].hazard_id %} | ||
{% elsif field_name == "exposure_id" %} | ||
{% assign linked_id = page[risk_data_type].exposure_id %} | ||
{% endif %} | ||
|
||
{% assign linked_dataset = site.datasets | where:"dataset_id", linked_id | first %} | ||
{% if linked_dataset %} | ||
<th>{{ include.field.label | split:" " | first }}</th> | ||
<td class="{{field_name}}"> | ||
<a href="{{ linked_dataset.url }}">{{ linked_dataset.title }}</a> | ||
</td> | ||
{% else %} | ||
<th>{{ include.field.label }}</th> | ||
<td class="{{field_name}}"> | ||
{{ linked_id }} | ||
</td> | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters