Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions invenio_records_rest/serializers/citeproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ class CiteprocSerializer(object):
method that returns the CSL-JSON/BibTeX result.
"""

_default_style = "harvard1"
"""The `citeproc-py` library supports by default the 'harvard1' style."""
_default_style = "harvard-cite-them-right"
"""The `citeproc-py` library supports by default the 'harvard-cite-them-right' style."""

_default_locale = "en-US"
"""The `citeproc-py` library supports by default the 'harvard1' style."""
"""The `citeproc-py` library supports by default the 'harvard-cite-them-right' style."""

_user_args = {
"style": fields.Str(load_default=_default_style),
Expand Down
4 changes: 2 additions & 2 deletions tests/test_serializer_citeproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_serializer_args():
assert "1." in data
assert "J. Doe," in data
assert "J. Smith," in data
assert "Citeproc test" in data
assert "Citeproc Test" in data
assert "(2016)" in data


Expand All @@ -94,7 +94,7 @@ def test_serializer_in_request(app):
assert "1." in data
assert "J. Doe," in data
assert "J. Smith," in data
assert "Citeproc test" in data
assert "Citeproc Test" in data
assert "(2016)" in data

with app.test_request_context(query_string={"style": "non-existent"}):
Expand Down
Loading