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

Open Journal Systems: Get metadata for articles in galley view (need for OJS 3) #1767

Merged
merged 6 commits into from Oct 12, 2018

Conversation

Projects
None yet
2 participants
@jrwiebe
Contributor

jrwiebe commented Oct 12, 2018

In Open Journal Systems an article will have a landing page, which might link to galleys of the article in one or more formats (e.g., PDF, HTML). In OJS 2 the galley-view page included full metadata about the article; in OJS 3 it does not. I believe this is an inadvertent omission, although I haven't delved into the OJS version history to verify this.

I updated the OJS translator to fetch the metadata from the article landing page. It does this regardless of the OJS version, since a) I didn't initially realize that this was specifically an OJS 3 issue, and b) it makes for simpler code. (One could load the 'web' translator in doWeb(), translate, and test for an element like item.volume to see if fetching the landing page is necessary.)

I have also opened an issue about this with OJS (pkp/pkp-lib#4141). If it gets addressed on that end, and this pull request is accepted, we could be in a position where the OJS translator is doing extra work to accommodate for a small percentage of OJS installs. (It seems like the majority "in the wild" are still on OJS 2.)

jrwiebe and others added some commits Oct 4, 2018

Updates for compatibility with recent version of OJS and expanded
use of Dublin Core metadata (some OJS-specific).

@adam3smith adam3smith merged commit d844751 into zotero:master Oct 12, 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 Oct 12, 2018

Collaborator

Thanks! You'll do yourself a favor if you make pull requests from feature branches -- all sorts of nasty merge conflicts otherwise.

Collaborator

adam3smith commented Oct 12, 2018

Thanks! You'll do yourself a favor if you make pull requests from feature branches -- all sorts of nasty merge conflicts otherwise.

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