Skip to content

feat: use surname/initials for author name#7510

Merged
rjsparks merged 3 commits intoietf-tools:mainfrom
jennifer-richards:no-full-name
Jun 6, 2024
Merged

feat: use surname/initials for author name#7510
rjsparks merged 3 commits intoietf-tools:mainfrom
jennifer-richards:no-full-name

Conversation

@jennifer-richards
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

Looks good to me.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants