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

Fix author names for new(ish) layout #2173

Merged
merged 1 commit into from May 10, 2020
Merged

Conversation

@adam3smith
Copy link
Collaborator

adam3smith commented May 10, 2020

https://forums.zotero.org/discussion/82934/connector-on-amazon-not-saving-authors-names#latest

(no tests from that thread since issue also affects existing tests)

@adam3smith adam3smith merged commit 2edce8d into zotero:master May 10, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@dstillman
Copy link
Member

dstillman commented May 10, 2020

Thanks!

if (baseNode) {
var authors = ZU.xpath(baseNode, './/span[@id="artistBlurb"]/a');
authors = ZU.xpath(baseNode, './/span[@id="artistBlurb"]/a');

This comment has been minimized.

Copy link
@dstillman

dstillman May 10, 2020

Member

Just to note, unless a variable is used outside a block, we prefer to use let inside the block rather than var outside — lets you easily know that a variable's scope is limited to the current block. (We also try to avoid multi-variable initialization, since it makes for worse diffs.)

This comment has been minimized.

Copy link
@adam3smith

adam3smith May 10, 2020

Author Collaborator

got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.