<s> """<STR_LIT>""" <EOL> __docformat__ = "<STR_LIT>" <EOL> __author__ = "<STR_LIT>" <EOL> __version__ = "<STR_LIT>" <EOL> __needs__ = '<STR_LIT>' <EOL> import logging <EOL> style_logger = logging . getLogger ( '<STR_LIT>' ) <EOL> from . import shared <EOL> from . import default_templates <EOL> CITEREF_TEMPLATE = default_templates . DEFAULT_CITEREF_TEMPLATE . copy ( ) <EOL> """<STR_LIT>""" <EOL> CITATION_TEMPLATE = shared . CitationManager . default_citation_template <EOL> class CitationManager ( shared . CitationManager ) : <EOL> def format_inline_cite ( self , cite_key_list ) : <EOL> """<STR_LIT>""" <EOL> style_logger . debug ( '<STR_LIT>' ) <EOL> entry_list = self . find_entries ( cite_key_list , discard = False ) <EOL> """<STR_LIT>""" <EOL> return format_inline_cite ( entry_list , self ) <EOL> def get_citation_label ( self , entry , citation_template = None ) : <EOL> return '<STR_LIT>' + entry . citekey + '<STR_LIT>' <EOL> def sortkey ( self , bibentry ) : <EOL> return self . make_sort_key ( bibentry , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def format_inline_cite ( entry_list , citation_manager ) : <EOL> """<STR_LIT>""" <EOL> style_logger . debug ( "<STR_LIT>" ) <EOL> name_date_sep = '<STR_LIT:U+0020>' <EOL> formatted_list = [ ] <EOL> for entry in entry_list : <EOL> if not entry : <EOL> formatted_list . append ( '<STR_LIT:?>' ) <EOL> else : <EOL> year = entry [ '<STR_LIT>' ] <EOL> entry_formatter = citation_manager . entry_formatter <EOL> last_names = entry . get_names ( entry_formatter ) . get_last_names ( ) <EOL> if len ( last_names ) < <NUM_LIT:3> : <EOL> last_names = '<STR_LIT>' . join ( last_names ) <EOL> else : <EOL> last_names = last_names [ <NUM_LIT:0> ] + '<STR_LIT>' <EOL> formatted_list . append ( ( '<STR_LIT:%s>' + name_date_sep + '<STR_LIT:%s>' ) % ( last_names , year ) ) <EOL> style_logger . debug ( "<STR_LIT>" ) <EOL> return '<STR_LIT:(>' + CITEREF_TEMPLATE [ '<STR_LIT>' ] . join ( formatted_list ) + '<STR_LIT:)>' </s>
