docs: def extract_references_from_string(source,
                                     is_only_references=True,
                                     recid=None,
                                     reference_format="{title} {volume} ({year}) {page}",
                                     linker_callback=None,
                                     override_kbs_files=None):
      """Extract references from a raw string.
  
      The first parameter is the path to the file.
      It returns a tuple (references, stats).
  
      If the string does not only contain references, improve accuracy by
      specifing ``is_only_references=False``.
  
      The standard reference format is: {title} {volume} ({year}) {page}.
  
      E.g. you can change that by passing the reference_format:
  
      >>> extract_references_from_string(path, reference_format="{title},{volume},{page}")
  
      If you want to also link each reference to some other resource (like a record),
      you can provide a linker_callback function to be executed for every reference
      element found.
  
      To override KBs for journal names etc., use ``override_kbs_files``:
  
      >>> extract_references_from_string(path, override_kbs_files={'journals': 'my/path/to.kb'})
      """
      docbody = source.split('\n')
      if not is_only_references:
          reflines, dummy, dummy = extract_references_from_fulltext(docbody)
      else:
          refs_info = get_reference_section_beginning(docbody)
          if not refs_info:
              refs_info, dummy = find_numeration_in_body(docbody)
              refs_info['start_line'] = 0
              refs_info['end_line'] = len(docbody) - 1,
  
          reflines = rebuild_reference_lines(
              docbody, refs_info['marker_pattern'])
      parsed_refs, stats = parse_references(
          reflines,
          recid=recid,
          reference_format=reference_format,
          linker_callback=linker_callback,
          override_kbs_files=override_kbs_files,
      )
      return parsed_refs