Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ add white paper and doi #38

Merged
merged 2 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# GBIF - Extinct

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.12599947.svg)](https://doi.org/10.5281/zenodo.12599947)

<p align="center">
<img width="180" height="180" src="/assets/icons/apple-touch-icon-180x180.png">
</p>
Expand Down Expand Up @@ -46,6 +48,25 @@ Above the table you find a filter form. You can filter by taxon name, taxonomic
- **Synonym**: The synonym of the taxon. Link redirecting to GBIF taxon page.
- **Taxa**: The taxonomy of the taxon.

## Reference and Citation

You can download our white paper please see [gbif-extinct-white-paper](/assets/gbif-extinct-white-paper.pdf). If you use GBIF-Extinct in your research, please cite the following:

> Oberreiter, H. und Duenser, A. (2024) „HannesOberreiter/gbif-extinct: v1.3.1“. Zenodo. doi: 10.5281/zenodo.12599948.

```bibtex
@software{oberreiter_2024_12599948,
author = {Oberreiter, Hannes and Duenser, Anna},
title = {HannesOberreiter/gbif-extinct: v1.3.1},
month = jun,
year = 2024,
publisher = {Zenodo},
version = {v1.3.1},
doi = {10.5281/zenodo.12599948},
url = {https://doi.org/10.5281/zenodo.12599948}
}
```

## Development

The project is open-source and contributions are welcome [github.com/HannesOberreiter/gbif-extinct](https://github.com/HannesOberreiter/gbif-extinct). The project is written in Go and uses Echo as a web framework. HTMX, Tailwind CSS and templ are used to build the frontend. As database we use DuckDB as it can be deployed as binary inside the go application and offers fast self-joining queries.
Expand Down
Binary file added assets/gbif-extinct-white-paper.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ func cronFetch() {

// Utility function to render a template
func render(c echo.Context, status int, t templ.Component) error {
ctx, cancel := context.WithTimeout(c.Request().Context(), 25*time.Second)
defer cancel()
c.Response().Writer.WriteHeader(status)
err := t.Render(context.Background(), c.Response().Writer)
err := t.Render(ctx, c.Response().Writer)
if err != nil {
return c.String(http.StatusInternalServerError, "failed to render response template")
}
Expand Down
Loading