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

Modify JsonLd.getTextValue to match algorithm outlined in spec #1133

Merged
merged 2 commits into from Oct 18, 2016

Conversation

jbaiter
Copy link
Collaborator

@jbaiter jbaiter commented Sep 22, 2016

This PR implements the algorithm outlined in "4.3. Language of Property Values" in the Presentation API 2.1 specification.

It maintains complete backwards compatibility with existing code (as far as I could tell from the unit tests).

In the present implementation the browser's language preferences (as available from window.navigator.languages) are used, although the language(s) passed to Mirador.JsonLd.getTextValue always take precedence over these.

@jbaiter jbaiter changed the title Modify JsonLd.getTextValue to match algorithm outlined in spec Modify JsonLd.getTextValue to match algorithm outlined in spec Sep 22, 2016
@rsinghal
Copy link
Collaborator

@jbaiter Can you switch this PR to 2.1.1?

@jbaiter jbaiter changed the base branch from master to 2.1.1 September 27, 2016 15:28
@aeschylus
Copy link
Collaborator

This looks good to me, but we need to rebase to 2.1.1.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 55.211% when pulling 8758bb3 on dbmdz:multilang-propval into ef2f224 on ProjectMirador:2.1.1.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 55.211% when pulling 8758bb3 on dbmdz:multilang-propval into ef2f224 on ProjectMirador:2.1.1.

@jbaiter
Copy link
Collaborator Author

jbaiter commented Oct 14, 2016

Done :-)

@rsinghal rsinghal merged commit 7704f28 into ProjectMirador:2.1.1 Oct 18, 2016
@morpheus-87 morpheus-87 deleted the multilang-propval branch November 3, 2016 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants