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

Sciencedirect book main pages #1720

Merged
merged 4 commits into from Aug 24, 2018

Conversation

Projects
None yet
2 participants
@mbwhitfield
Contributor

mbwhitfield commented Aug 21, 2018

Changed target to make "science/" in URL optional, to hopefully accomodate old and new sciencedirect non-article pages.

Also added code to ZU.xpath to identify chapters on book main pages. (This also fixed detectweb on book main pages, which requires getArticleList to not be empty in order to return "multiple".)

mbwhitfield added some commits Aug 21, 2018

@mbwhitfield mbwhitfield changed the title from Book main pages to Sciencedirect book main pages Aug 21, 2018

@adam3smith

This comment has been minimized.

Show comment
Hide comment
@adam3smith

adam3smith Aug 21, 2018

Collaborator

thanks! could you post a url to which this applies?

Collaborator

adam3smith commented Aug 21, 2018

thanks! could you post a url to which this applies?

@mbwhitfield

This comment has been minimized.

Show comment
Hide comment
Contributor

mbwhitfield commented Aug 21, 2018

@mbwhitfield

This comment has been minimized.

Show comment
Hide comment
@mbwhitfield

mbwhitfield Aug 22, 2018

Contributor

By coincidence, I found a problem with the code to identify whether there is an RIS export button on the page (probably b/c of changes in the sciencedirect website). I made the edit to my fork, not realizing it would automatically add to the pull request (github newbie). Hope that's not a problem.
Example URL: https://www.sciencedirect.com/science/article/pii/S0921042300800180
I simply removed the class from the button element on line 477. Since it's underneath div[@class="ExportCitation"], I don't think that will break anything.

Contributor

mbwhitfield commented Aug 22, 2018

By coincidence, I found a problem with the code to identify whether there is an RIS export button on the page (probably b/c of changes in the sciencedirect website). I made the edit to my fork, not realizing it would automatically add to the pull request (github newbie). Hope that's not a problem.
Example URL: https://www.sciencedirect.com/science/article/pii/S0921042300800180
I simply removed the class from the button element on line 477. Since it's underneath div[@class="ExportCitation"], I don't think that will break anything.

@adam3smith adam3smith merged commit 2b85a07 into zotero:master Aug 24, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@adam3smith

This comment has been minimized.

Show comment
Hide comment
@adam3smith

adam3smith Aug 24, 2018

Collaborator

Thanks!

Collaborator

adam3smith commented Aug 24, 2018

Thanks!

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