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: use surname/initials for author name #7510

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

jennifer-richards
Copy link
Member

This adds logic similar to what is used in xml2rfc's TextWriter to render an author name from the initials and/or surname fields when fullname is not present.

I've also updated places where we display the name to account for the possibility that the name is absent. If possible, I show the affiliation instead. This again matches what TextWriter does when rendering an RFC.

@russhousley

@russhousley
Copy link
Collaborator

Looks good to me.

Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question inline before approving

Comment on lines 13 to +14
{% for author in submission.authors %}
<button type="button"
class="author btn btn-primary mb-3"
data-name="{{ author.name }}"
data-email="{% if author.email %}{{ author.email }}{% endif %}">
{{ author.name }}
</button>
{% if author.name %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if author.name is None for all authors in submission.authors, does the form fail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, these buttons are just present to quick-fill the actual form field via javascript. If there are no buttons, then the submitter has to fill in the fields manually.

@rjsparks rjsparks merged commit da0a217 into ietf-tools:main Jun 6, 2024
7 checks passed
@jennifer-richards jennifer-richards deleted the no-full-name branch June 6, 2024 19:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants