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

Support raw citations #74

Merged
merged 5 commits into from
Oct 23, 2018
Merged

Support raw citations #74

merged 5 commits into from
Oct 23, 2018

Conversation

dhimmel
Copy link
Member

@dhimmel dhimmel commented Oct 18, 2018

Closes #62

TODO:

  • greater testing
  • doc updates where needed (didn't see any places in this repo needing doc updates, although USAGE.md from rootstock will need updates post merge.
  • investigate effect on manubot cite. Done, opened Cite command error handling #77 to create more succinct error messages here
  • enforce raw citation is in manual-references.json

Copy link
Member

@agitter agitter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. See one optional comment.

Once this is merged, we should update the manubot-rootstock USAGE.md (edit: I see you already noted this above).

@@ -268,6 +270,12 @@ def generate_csl_items(args, citation_df):
if citation in manual_refs:
csl_items.append(manual_refs[citation])
continue
elif citation.startswith('raw:'):
logging.error(
f'CSL JSON data with a standard_citation of {citation} not found in manual-references.json. '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data has been capitalized in other instances of CSL JSON Data.

manubot/process/util.py Outdated Show resolved Hide resolved
@dhimmel dhimmel merged commit 25a8faa into manubot:master Oct 23, 2018
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.

2 participants