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

remove duplicate data and fix abstract for Hindawi; #972

Merged
merged 2 commits into from Aug 21, 2016

Conversation

adam3smith
Copy link
Collaborator

Also switch test item to a better one.

(The actual data doesn't change apart from the improved abstract, so you can ignore the test changes)

…item to a better one.

(The actual data doesn't change apart from the improved abstract, so you can ignore the test changes)
@@ -49,6 +49,11 @@ function detectWeb(doc,url) {
return false;
}

function decodeEntities(doc, encodedString) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aurimasv -- I know you're super busy, but if you could take 2mins to look at this? Seems like this should be save because we're in a sandbox, but still want to be sure. Couldn't find a method of converting the html entitites without this, but maybe overlooking something simple.

Copy link
Contributor

Choose a reason for hiding this comment

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

ZU.unescapeHTML should do what you want

@aurimasv
Copy link
Contributor

aurimasv commented Jan 4, 2016

The actual data doesn't change apart from the improved abstract, so you can ignore the test changes

How come we are changing the test then?

}
}
}
item.abstractNote=abstract;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: space around =

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, might as well move all the abstract code here.

@adam3smith
Copy link
Collaborator Author

I changed tests because I wanted a better test case, so I switched them out.

@adam3smith
Copy link
Collaborator Author

OK, should be all good now.

item.extra = "";
//remove duplicate metadata
for (var i in item){
if (typeof item[i] == "string" && item[i].match(/^.+,/)){
Copy link
Contributor

Choose a reason for hiding this comment

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

Was the .match part necessary? More curious than anything, since I can't think of a reason why it should be.

@aurimasv
Copy link
Contributor

aurimasv commented Jan 7, 2016

Looks good. Feel free to merge.

@adam3smith adam3smith merged commit b3cca8a into zotero:master Aug 21, 2016
@adam3smith
Copy link
Collaborator Author

(this was still an issue, so merging)

zuphilip pushed a commit to zuphilip/translators that referenced this pull request Mar 28, 2018
* remove duplicate data and fix abstract for Hindawi; Also switch test item to a better one.
(The actual data doesn't change apart from the improved abstract, so you can ignore the test changes)
zuphilip pushed a commit to zuphilip/translators that referenced this pull request Mar 28, 2018
* remove duplicate data and fix abstract for Hindawi; Also switch test item to a better one.
(The actual data doesn't change apart from the improved abstract, so you can ignore the test changes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants