Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUpade DeGruyter #1393
+133
−95
Conversation
zuphilip
added some commits
Aug 26, 2017
zuphilip
changed the title from
DeGruyter: Copy HighWire tags from body to head
to
Upade DeGruyter
Aug 27, 2017
adam3smith
reviewed
Aug 27, 2017
One question and potential nit; otherwise looks good, thanks!
DeGruyter.js
@@ -94,113 +94,133 @@ function doWeb(doc, url) { | ||
} | ||
function scrapeRIS(doc, url) { | ||
urlRIS = ZU.xpathText(doc,'//li[@class="cite"]/a/@href'); | ||
var urlCite = ZU.xpathText(doc,'(//li[@class="cite"])[1]/a/@href'); | ||
var productId = urlCite.replace('?nojs=true', '').replace('/dg/cite/', ''); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
adam3smith
Aug 27, 2017
Collaborator
shouldn't we just do a blanket replace on [?#].+
to be safe(r)?
adam3smith
Aug 27, 2017
Collaborator
shouldn't we just do a blanket replace on [?#].+
to be safe(r)?
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
Please have a look at the new version. |
adam3smith
merged commit 523aca8
into
zotero:master
Aug 31, 2017
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
Great, thanks! |
zuphilip
deleted the
zuphilip:degruyter-meta
branch
Aug 31, 2017
added a commit
to zuphilip/translators
that referenced
this pull request
Mar 28, 2018
added a commit
to zuphilip/translators
that referenced
this pull request
Mar 28, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zuphilip commentedAug 26, 2017
This makes sure that EM translator will find these meta
tags. However, the translator seems only to fix the
journal articles from DeGruyter. Only the test cases
for journal articles are updated.
Relates to #1390.