# Path: pubs/endecoder.py
#     BP_ID_KEY = 'ID'
#     BP_ENTRYTYPE_KEY = 'ENTRYTYPE'
#     BP_ID_KEY = 'id'
#     BP_ENTRYTYPE_KEY = 'type'
# BIBFIELD_ORDER = ['author', 'title', 'journal', 'institution', 'publisher',
#                   'year', 'month', 'number', 'volume', 'pages', 'url', 'link',
#                   'doi', 'note', 'abstract']
# def sanitize_citekey(record):
# def customizations(record):
#         def __init__(self, error_msg, bibdata):
#     def encode_metadata(self, metadata):
#     def decode_metadata(self, metadata_raw):
#     def encode_bibdata(self, bibdata, ignore_fields=[]):
#     def _entry_to_bp_entry(self, key, entry, ignore_fields=[]):
#     def decode_bibdata(self, bibstr):
#     def _format_parsing_error(cls, e):
# class EnDecoder(object):
#     class BibDecodingError(Exception):


import dotdot
import str_fixtures
from pubs import endecoder
# -*- coding: utf-8 -*-

from __future__ import unicode_literals


coder = endecoder.EnDecoder()

franny_bib = """@article{Franny1961,
    author = "Salinger, J. D.",
    title = "Franny and Zooey",
    year = "1961",
}
"""

doe_bib = """
@article{Doe2013,
    author = "Doe, John",

# Path: pubs/endecoder.py
#     BP_ID_KEY = 'ID'
#     BP_ENTRYTYPE_KEY = 'ENTRYTYPE'
#     BP_ID_KEY = 'id'
#     BP_ENTRYTYPE_KEY = 'type'
# BIBFIELD_ORDER = ['author', 'title', 'journal', 'institution', 'publisher',
#                   'year', 'month', 'number', 'volume', 'pages', 'url', 'link',
#                   'doi', 'note', 'abstract']
# def sanitize_citekey(record):
# def customizations(record):
#         def __init__(self, error_msg, bibdata):
#     def encode_metadata(self, metadata):
#     def decode_metadata(self, metadata_raw):
#     def encode_bibdata(self, bibdata, ignore_fields=[]):
#     def _entry_to_bp_entry(self, key, entry, ignore_fields=[]):
#     def decode_bibdata(self, bibstr):
#     def _format_parsing_error(cls, e):
# class EnDecoder(object):
#     class BibDecodingError(Exception):


# Path: tests/fixtures.py
import dotdot
import str_fixtures
from pubs import endecoder

# -*- coding: utf-8 -*-

from __future__ import unicode_literals


coder = endecoder.EnDecoder()

franny_bib = """@article{Franny1961,
    author = "Salinger, J. D.",
    title = "Franny and Zooey",
    year = "1961",
}
"""

doe_bib = """
@article{Doe2013,
    author = "Doe, John",

    title = "Nice Title",