-
Notifications
You must be signed in to change notification settings - Fork 185
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
Indicate Corresponding Author / Review Commons Compatibility #470
Conversation
AppVeyor build 1.0.283 for commit 8b1d9ee is now complete. Found 51 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
AppVeyor build 1.0.284 for commit 8526cd4 is now complete. Found 51 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
Ok, this build had corresponding set in the metadata.yaml file: This one does not: I didn't find a test suite, but hopefully this can suffice to demonstrate backwards compatibility. I'll add one more commit to put the flag back on in the rootstock so that the demo is complete. |
AppVeyor build 1.0.285 for commit bb1177d is now complete. Found 51 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content/00.front-matter.md
Outdated
@@ -49,3 +49,12 @@ on {{manubot.date}}. | |||
{%- endif %} | |||
</small> | |||
{% endfor %} | |||
|
|||
{% if manubot.authors|map(attribute='corresponding')|select|first %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, so if no authors have corresponding set to true, the entire block is skipped.
content/00.front-matter.md
Outdated
To whom correspondence should be addressed: | ||
{% for author in manubot.authors %} | ||
{% if author.corresponding is defined and author.corresponding is not none %} | ||
{{author.initials}}: {{author.email}} | ||
{% endif %} | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC the indentation here is causing the corresponding author text to be treated as a code block:
If we want a code block, I think the triple backtick syntax is more explicit. But a code block is probably the wrong formatting.
It might be worth looking through some of the existing corresponding author formats manuscripts have used (noted at #469 (comment)) for inspiration on the best format for here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that we probably want some other formatting besides a code block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose a hybrid of what is implemented here and what we had for this version of meta review:
- https://greenelab.github.io/meta-review/v/aa78ba9cbb2d874789cbfc9462dfb9aad19f655f/
- https://github.com/greenelab/meta-review/blob/aa78ba9cbb2d874789cbfc9462dfb9aad19f655f/content/00.front-matter.md?plain=1#L53-L56
We add a hard-coded symbol next to each corresponding author. Then, we show that symbol in the conditional text block that lists the author contact information.
We should also update the "Manuscript metadata" section of USAGE before merging.
content/00.front-matter.md
Outdated
To whom correspondence should be addressed: | ||
{% for author in manubot.authors %} | ||
{% if author.corresponding is defined and author.corresponding is not none %} | ||
{{author.initials}}: {{author.email}} | ||
{% endif %} | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that we probably want some other formatting besides a code block.
AppVeyor build 1.0.286 for commit 4f4f899 is now complete. Found 51 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
as of 4f4f899, here is what it looks like with 1, 2, and 0 corresponding authors: Nice thing is that the names and emails can be copied directly into gmail and it's parsed correctly. Versions built on CI will link to GitHub Issues. How does this format look? Also considering inline code around each author name + email. Could also use mailto links. I feel like the inline code might be slightly protected against spambots detecting the email address. |
That format looks very nice. I think it looks better this way than with inline code, and it's unclear to me how much protection those provide against bots. |
* front-matter corresponding author support merges manubot/rootstock#470 closes manubot/rootstock#469 Co-authored-by: Daniel Himmelstein <[email protected]> * SETUP.md: remove redundant 'not' merges manubot/rootstock#475 * front-matter: skip line break when no author ids merges manubot/rootstock#477 * GH actions: schedule workflow support merges manubot/rootstock#476 Made possible by recent changes to the GitHub context for schedule workflows in https://github.com/orgs/community/discussions/12269#discussioncomment-3747667 Commented out by default. * Update Manubot on 2022-11-12 & date published support merges manubot/rootstock#478 * Update Manubot on 2022-11-12 * front-matter: conditionally show publication date only if it differs from generated date * GH actions: update action dependencies * Upgrade environment on 2022-11-22 merges manubot/rootstock#481 Includes Python 3.11 & Pandoc 2.19.2 * Upgrade Manubot to fix pubmed API calls Upgrades Manubot to latest version on 2022-11-28. Critical for PubMed citations to get the fix for manubot/manubot#354. Co-authored-by: Casey Greene <[email protected]> Co-authored-by: Daniel Himmelstein <[email protected]> Co-authored-by: C. Titus Brown <[email protected]> Co-authored-by: Milton Pividori <[email protected]>
merges manubot/rootstock#470 closes manubot/rootstock#469 Co-authored-by: Daniel Himmelstein <[email protected]>
merges manubot/rootstock#470 closes manubot/rootstock#469 Co-authored-by: Daniel Himmelstein <[email protected]>
This PR aims to close #469.