You are here

public function PARSEENTRIES::loadBibtexString in Bibliography Module 7

Same name and namespace in other branches
  1. 5 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::loadBibtexString()
  2. 6.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::loadBibtexString()
  3. 6 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::loadBibtexString()
  4. 7.3 plugins/biblio_style/bibtex/PARSEENTRIES.php \PARSEENTRIES::loadBibtexString()
  5. 7.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::loadBibtexString()

Load a bibtex string to parse it.

File

modules/bibtexParse/PARSEENTRIES.php, line 169

Class

PARSEENTRIES
// Parse a file $parse = NEW PARSEENTRIES(); $parse->expandMacro = TRUE; // $array = array("RMP" =>"Rev., Mod. Phys."); // $parse->loadStringMacro($array); // $parse->removeDelimit = FALSE; // …

Code

public function loadBibtexString($bibtex_string) {
  if (is_string($bibtex_string)) {

    // $bibtex_string = $this->searchReplaceText($this->transtab_latex_unicode, $bibtex_string, FALSE);.
    $this->bibtexString = explode("\n", $bibtex_string);
  }
  else {
    $this->bibtexString = $bibtex_string;
  }
  $this->parseFile = FALSE;
  $this->currentLine = 0;
}