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

Author list in dashboard is incorrectly formatted with multiple authors #10334

Closed
e-miz opened this issue Jul 19, 2024 · 2 comments · Fixed by #10352
Closed

Author list in dashboard is incorrectly formatted with multiple authors #10334

e-miz opened this issue Jul 19, 2024 · 2 comments · Fixed by #10352
Assignees
Labels
authors Issues related to author/affiliation normalization bug Something isn't working
Milestone

Comments

@e-miz
Copy link

e-miz commented Jul 19, 2024

Bug description

image

Steps to reproduce

---
title: "Test Dashboard"
author:
  - name: John Doe
    orcid: 0000-0000-0000-0000
    affilifation:
        name: My Institution
  - name: Jane Doe
    orcid: 0000-0000-0000-0001
    affilifation:
        name: My Institution

---

##

Dashboard Test

Expected behavior

I would expect a comma-separated list of authors when a dashboard is authored by multiple people.

For example: John Doe, Jane Doe

My use case for this is attempting to produce a dynamic "poster" presentation using the dashboard. So far I think it might work with a couple workarounds!

Actual behavior

Author names are concatenated with no punctuation. Trailing spaces which are included in the author name field are removed (which is expected), meaning at best I'd probably write a bit of javascript to capture the author field and format the author list.

Your environment

IDE: VSCode 1.91.1
OS: Windows 10 WSL2

Quarto check output

Quarto 1.5.55
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.55
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2023.10
      Chromium: 869685

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/emiz/.TinyTeX/bin/x86_64-linux
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.7 (Conda)
      Path: /home/emiz/miniconda3/bin/python
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with conda install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
@e-miz e-miz added the bug Something isn't working label Jul 19, 2024
@cscheid
Copy link
Collaborator

cscheid commented Jul 19, 2024

Yikes, that's not a great look on our part 😬.

It seems that when Quarto sees a "fancy" author list like that, the author metadata key that is visible in the Lua filters is a plain concatenation of the author names. This happens in every format, not only in dashboards. In other formats, though, Quarto uses the fancy author list to synthesize the title block.

We'll fix this for sure, thanks for reporting!

@cscheid cscheid self-assigned this Jul 19, 2024
@cscheid cscheid added the authors Issues related to author/affiliation normalization label Jul 19, 2024
@cscheid cscheid added this to the v1.6 milestone Jul 19, 2024
@cscheid
Copy link
Collaborator

cscheid commented Jul 19, 2024

As a temporary workaround, you can do the following:

---
title: "Test Dashboard"
author:
  - name: John Doe
    orcid: 0000-0000-0000-0000
    affilifation:
        name: My Institution
  - name: Jane Doe
    orcid: 0000-0000-0000-0001
    affilifation:
        name: My Institution
filters:
  - fix_author.lua
---

##

Dashboard Test

fix_author.lua

function Meta(meta)
  meta.author = "John Doe, Jane Doe" -- or whatever else you need
  return meta
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authors Issues related to author/affiliation normalization bug Something isn't working
Projects
None yet
2 participants