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

Create species links file #165

Open
SanderDevisscher opened this issue May 28, 2024 · 9 comments · Fixed by #193
Open

Create species links file #165

SanderDevisscher opened this issue May 28, 2024 · 9 comments · Fixed by #193
Assignees
Labels
enhancement New feature or request

Comments

@SanderDevisscher
Copy link
Collaborator

At species_information > more there is a subtab links. This subtab is currently empty.

@mvarewyck How do we best populate it ?

  1. create a .csv under UAT_direct with gbiftaxonkey, url, link_text, description
  2. knit a pdf per species with taxonkey as filename and place it under UAT_direct
  3. knit a html per species with taxonkey as filename and place it under UAT_direct
@mvarewyck
Copy link
Collaborator

A knitted html file is the best option. It is more flexible in formatting the content than a csv file and is more convenient to include in a UI than a pdf.

Template file: test.md
can be rendered using rmarkdown::render("test.md")

@mvarewyck
Copy link
Collaborator

mvarewyck commented May 30, 2024

Additional note: I don't think we even have to upload these files to the S3 bucket if they don't change too often.

Like we do for the trias risk maps, we can retrieve the data from GIT directly:

mvarewyck added a commit to inbo/alien-species-portal that referenced this issue May 30, 2024
@SanderDevisscher
Copy link
Collaborator Author

@soriadelva will you create a example page for vespa velutina with:

@SanderDevisscher SanderDevisscher removed their assignment Jun 7, 2024
@soriadelva
Copy link
Contributor

@mvarewyck we would like to have these HTML files in three languages (NL, EN, FR). What would be the best way to do that? Should I upload three different HTML files?

@SanderDevisscher
Copy link
Collaborator Author

SanderDevisscher commented Jun 26, 2024

@soriadelva can you also create a page for Lithobates catesbeianus (2427091)
some usefull links:

@mvarewyck
Copy link
Collaborator

@mvarewyck we would like to have these HTML files in three languages (NL, EN, FR). What would be the best way to do that? Should I upload three different HTML files?

If the files share a lot of info, then it's better to keep everything in a single .Rmd file with a parameter for the language.
This will help you in the future so you don't have to update it in every language/file.
Example file: test.txt

  1. Change the extension of the file to .Rmd
  2. Render using rmarkdown::render("test.Rmd") default English or rmarkdown::render("test.Rmd", params = list(language = "nl")) for Dutch

@SanderDevisscher
Copy link
Collaborator Author

SanderDevisscher commented Jun 26, 2024

the ecopedia page should be included when available.
In case of aziatische hoornaar it is: https://www.ecopedia.be/dieren/aziatische-hoornaar

@soriadelva soriadelva linked a pull request Jun 28, 2024 that will close this issue
@mvarewyck
Copy link
Collaborator

mvarewyck commented Jul 4, 2024

@soriadelva Can you change the output format to output: html_fragment like my template? Otherwise there are warnings in the app because both the html and app define <html><head><title><body> etc.

Another question: will there be a merge with main branch or should I retrieve the files from uat or main depending on where the app is deployed?

@mvarewyck mvarewyck reopened this Jul 4, 2024
@SanderDevisscher
Copy link
Collaborator Author

SanderDevisscher commented Jul 4, 2024

Another question: will there be a merge with main branch or should I retrieve the files from uat or main depending on where the app is deployed?

I think 'retrieving the files from uat or main depending on where the app is deployed' is the best solution. This keeps the testing step.

mvarewyck added a commit to inbo/alien-species-portal that referenced this issue Jul 5, 2024
mvarewyck added a commit to inbo/alien-species-portal that referenced this issue Sep 27, 2024
mvarewyck added a commit to inbo/alien-species-portal that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants