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

MDPI duplicates authors #1773

Closed
adam3smith opened this Issue Oct 30, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@adam3smith
Collaborator

adam3smith commented Oct 30, 2018

Reported here: https://forums.zotero.org/discussion/74354/enregistrement-depuis-la-plateforme-de-lediteur-mdpi-tous-les-auteurs-apparaissent-2x#latest

Example: https://www.mdpi.com/1420-3049/23/10/2454

authors are both in citation_author and in citation_authors -- need to decide if we'll just fix this in the MDPI translator (easy) or if this is worth addressing in EM (a bit harder)
@zuphilip do you have a view on this?

@zuphilip

This comment has been minimized.

Show comment
Hide comment
@zuphilip

zuphilip Nov 1, 2018

Collaborator

In the case that there are values for citation_author AND citation_authors, then it should be fine to just take one of this. The field citation_author seems to be more common. Thus, I would choose that one over the other.

Codewise I would suggest to change the lines:

	var authorNodes = getContent(doc, 'citation_author')
		.concat(getContent(doc, 'citation_authors'));

into

	var authorNodes = getContent(doc, 'citation_author');
	if (authorNodes.length == 0) {
		authorNodes = getContent(doc, 'citation_authors');
	}

@adam3smith Do you agree?

Collaborator

zuphilip commented Nov 1, 2018

In the case that there are values for citation_author AND citation_authors, then it should be fine to just take one of this. The field citation_author seems to be more common. Thus, I would choose that one over the other.

Codewise I would suggest to change the lines:

	var authorNodes = getContent(doc, 'citation_author')
		.concat(getContent(doc, 'citation_authors'));

into

	var authorNodes = getContent(doc, 'citation_author');
	if (authorNodes.length == 0) {
		authorNodes = getContent(doc, 'citation_authors');
	}

@adam3smith Do you agree?

@adam3smith

This comment has been minimized.

Show comment
Hide comment
@adam3smith

adam3smith Nov 1, 2018

Collaborator

Yes, thanks. Not just more common, but citation_author is more reliable (we don't have to rely on a comma split to identify individual authors and it can be use in lastname, firstname form). Can you put this into EM?

Collaborator

adam3smith commented Nov 1, 2018

Yes, thanks. Not just more common, but citation_author is more reliable (we don't have to rely on a comma split to identify individual authors and it can be use in lastname, firstname form). Can you put this into EM?

@zuphilip

This comment has been minimized.

Show comment
Hide comment
@zuphilip

zuphilip Nov 1, 2018

Collaborator

Oh, for MDPI only the citation_authors contain the initials. But we keep to generally prefer citation_author and only switch possibly for MDPI?

Collaborator

zuphilip commented Nov 1, 2018

Oh, for MDPI only the citation_authors contain the initials. But we keep to generally prefer citation_author and only switch possibly for MDPI?

@zuphilip zuphilip self-assigned this Nov 1, 2018

zuphilip added a commit to zuphilip/translators that referenced this issue Nov 1, 2018

Only use one of citation_author, citation_authors
Generally, we prefer citation_author with individual values
for each author. However in MDPI journals both metadata are
present but the initials are only part of citation_authors.

This fixes zotero#1773.

adam3smith added a commit that referenced this issue Nov 1, 2018

Only use one of citation_author, citation_authors (#1777)
Generally, we prefer citation_author with individual values
for each author. However in MDPI journals both metadata are
present but the initials are only part of citation_authors.

This fixes #1773.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment